Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfAlcohol.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.HeatingOfAlcohol,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfAlcohol",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfAlcohol,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfAlcohol",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07596/0.07596, allocations: 15.26 MB / 22.55 MB, free: 1.113 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000976/0.000976, allocations: 183.4 kB / 27.31 MB, free: 12 kB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.168/1.168, allocations: 221.4 MB / 253.3 MB, free: 10.64 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000878/0.000878, allocations: 92.66 kB / 308.4 MB, free: 10.7 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2105/0.2114, allocations: 60.73 MB / 369.1 MB, free: 53.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07969/0.2911, allocations: 54.63 MB / 423.8 MB, free: 14.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2734/0.5646, allocations: 99 MB / 0.5105 GB, free: 8.328 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001675/0.5648, allocations: 69.75 kB / 0.5106 GB, free: 8.328 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.05611/0.6209, allocations: 25.99 MB / 0.5359 GB, free: 2.602 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.6209, allocations: 11.41 kB / 0.536 GB, free: 2.602 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005866/0.6215, allocations: 174.3 kB / 0.5361 GB, free: 2.527 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006935/0.6222, allocations: 0.5002 MB / 0.5366 GB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.6223, allocations: 22.88 kB / 0.5366 GB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.098e-05/0.6224, allocations: 38.03 kB / 0.5367 GB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001389/0.6238, allocations: 1.397 MB / 0.538 GB, free: 2.043 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009172/0.6247, allocations: 0.8055 MB / 0.5388 GB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.6247, allocations: 7.922 kB / 0.5388 GB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/0.6248, allocations: 9.875 kB / 0.5388 GB, free: 1.844 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.6248, allocations: 19.23 kB / 0.5389 GB, free: 1.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.6283, allocations: 2.962 MB / 0.5418 GB, free: 16.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000994/0.6293, allocations: 1.023 MB / 0.5428 GB, free: 16.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004271/0.6298, allocations: 479.7 kB / 0.5432 GB, free: 16.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001867/0.63, allocations: 168.4 kB / 0.5434 GB, free: 16.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.63, allocations: 42.84 kB / 0.5434 GB, free: 16.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 1.984e-06/0.63, allocations: 0 / 0.5434 GB, free: 16.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.0231/0.6531, allocations: 5.187 MB / 0.5485 GB, free: 14.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.6532, allocations: 65.66 kB / 0.5485 GB, free: 14.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003724/0.6535, allocations: 317.3 kB / 0.5488 GB, free: 14.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.679e-05/0.6536, allocations: 25.7 kB / 0.5489 GB, free: 14.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.6538, allocations: 254.8 kB / 0.5491 GB, free: 14.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002545/0.654, allocations: 313.8 kB / 0.5494 GB, free: 13.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.6541, allocations: 0 / 0.5494 GB, free: 13.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6542, allocations: 367.2 kB / 0.5498 GB, free: 13.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007115/0.6549, allocations: 0.5815 MB / 0.5503 GB, free: 13.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008051/0.6558, allocations: 0.6995 MB / 0.551 GB, free: 13.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.6577, allocations: 0.7839 MB / 0.5518 GB, free: 13.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.6577, allocations: 0.6875 kB / 0.5518 GB, free: 13.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00726/0.665, allocations: 2.075 MB / 0.5538 GB, free: 12.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.665, allocations: 4.5 kB / 0.5538 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.665, allocations: 8 kB / 0.5538 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004751/0.6698, allocations: 0.6158 MB / 0.5544 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008145/0.6706, allocations: 176.8 kB / 0.5546 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008186/0.6788, allocations: 5.077 MB / 0.5595 GB, free: 7.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009007/0.6797, allocations: 53.3 kB / 0.5596 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.6799, allocations: 43.91 kB / 0.5596 GB, free: 7.492 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Ethanol.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Ethanol.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 2 {1 4,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002327/0.6801, allocations: 132.7 kB / 0.5598 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.6802, allocations: 54.12 kB / 0.5598 GB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008908/0.6892, allocations: 2.187 MB / 0.5619 GB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008571/0.6977, allocations: 2.012 MB / 0.5639 GB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.6978, allocations: 4 kB / 0.5639 GB, free: 5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.6978, allocations: 3.984 kB / 0.5639 GB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/0.7098, allocations: 4.285 MB / 0.5681 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.7098, allocations: 8 kB / 0.5681 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006/0.7105, allocations: 151.7 kB / 0.5683 GB, free: 448 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006757/0.7172, allocations: 0.7751 MB / 0.569 GB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/0.7174, allocations: 20.05 kB / 0.569 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009216/0.7266, allocations: 5.369 MB / 0.5743 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005753/0.7324, allocations: 2.178 MB / 0.5764 GB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009441/0.7418, allocations: 3.338 MB / 0.5797 GB, free: 4.086 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01047/0.7523, allocations: 4.518 MB / 0.5841 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.7526, allocations: 152.3 kB / 0.5842 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/0.7528, allocations: 11.98 kB / 0.5842 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000705/0.7535, allocations: 35.91 kB / 0.5843 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.7536, allocations: 72.38 kB / 0.5843 GB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.392e-05/0.7537, allocations: 47.91 kB / 0.5844 GB, free: 14.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002586/0.754, allocations: 244.6 kB / 0.5846 GB, free: 14.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00232/0.7563, allocations: 0.5309 MB / 0.5851 GB, free: 14.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 3 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 9} * Non-linear torn systems: 2 {1 4,4 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009194/0.7572, allocations: 0.5049 MB / 0.5856 GB, free: 13.7 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00264/0.7599, allocations: 1.6 MB / 0.5872 GB, free: 12.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.7599, allocations: 0 / 0.5872 GB, free: 12.08 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.7613, allocations: 0.9676 MB / 0.5881 GB, free: 11.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007311/0.7621, allocations: 129 kB / 0.5883 GB, free: 10.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002625/0.7647, allocations: 1.539 MB / 0.5898 GB, free: 9.324 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007607/0.7655, allocations: 1.037 MB / 0.5908 GB, free: 8.262 MB / 410.7 MB Notification: Performance of SimCode: time 4.1e-07/0.7655, allocations: 4 kB / 0.5908 GB, free: 8.258 MB / 410.7 MB (rm -f Chemical_Chemical.Examples.HeatingOfAlcohol.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfAlcohol.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfAlcohol.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfAlcohol.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_HeatingOfAlcohol_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HeatingOfAlcohol.fmu > Chemical_Chemical.Examples.HeatingOfAlcohol.pipe 2>&1)