Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfWater.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.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",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.07393/0.07393, allocations: 15.27 MB / 22.55 MB, free: 1.102 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.0009349/0.0009348, allocations: 191.4 kB / 27.31 MB, free: 6.188 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 221.4 MB / 253.3 MB, free: 10.66 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.0008951/0.0008953, allocations: 92.47 kB / 308.4 MB, free: 10.62 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2095/0.2105, allocations: 60.73 MB / 369.1 MB, free: 54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0801/0.2906, allocations: 54.63 MB / 423.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2729/0.5635, allocations: 98.88 MB / 0.5104 GB, free: 8.203 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001645/0.5637, allocations: 67.8 kB / 0.5104 GB, free: 8.203 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.03541/0.5991, allocations: 15.87 MB / 0.5259 GB, free: 6.043 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.5992, allocations: 7.812 kB / 0.5259 GB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004052/0.5996, allocations: 94.59 kB / 0.526 GB, free: 6.004 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006903/0.6003, allocations: 392.6 kB / 0.5264 GB, free: 5.715 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.6003, allocations: 15.59 kB / 0.5264 GB, free: 5.715 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.734e-05/0.6004, allocations: 27.41 kB / 0.5265 GB, free: 5.715 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000889/0.6013, allocations: 0.7777 MB / 0.5272 GB, free: 5.633 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005952/0.6019, allocations: 457.8 kB / 0.5276 GB, free: 5.535 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.602, allocations: 0 / 0.5276 GB, free: 5.535 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/0.602, allocations: 0 / 0.5276 GB, free: 5.535 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.507e-06/0.602, allocations: 14.88 kB / 0.5277 GB, free: 5.535 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.6042, allocations: 1.818 MB / 0.5294 GB, free: 20.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005267/0.6048, allocations: 0.4887 MB / 0.5299 GB, free: 20.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.605, allocations: 219.4 kB / 0.5301 GB, free: 20.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.6051, allocations: 92.75 kB / 0.5302 GB, free: 20.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/0.6051, allocations: 42.05 kB / 0.5303 GB, free: 20.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.874e-06/0.6052, allocations: 0 / 0.5303 GB, free: 20.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.01933/0.6245, allocations: 3.508 MB / 0.5337 GB, free: 19.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.6246, allocations: 55.69 kB / 0.5337 GB, free: 19.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.6248, allocations: 237.8 kB / 0.534 GB, free: 18.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.221e-05/0.6248, allocations: 25.7 kB / 0.534 GB, free: 18.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.546e-05/0.6249, allocations: 218.4 kB / 0.5342 GB, free: 18.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.625, allocations: 170 kB / 0.5344 GB, free: 18.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.6251, allocations: 0 / 0.5344 GB, free: 18.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.6252, allocations: 344.9 kB / 0.5347 GB, free: 18.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.6255, allocations: 344.5 kB / 0.535 GB, free: 18.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003667/0.6259, allocations: 426.4 kB / 0.5354 GB, free: 18.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008428/0.6268, allocations: 456.9 kB / 0.5359 GB, free: 18.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.6268, allocations: 3.844 kB / 0.5359 GB, free: 18.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.005391/0.6322, allocations: 1.355 MB / 0.5372 GB, free: 17.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.6322, allocations: 4.469 kB / 0.5372 GB, free: 17.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.6322, allocations: 7.734 kB / 0.5372 GB, free: 17.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004393/0.6366, allocations: 0.5512 MB / 0.5377 GB, free: 17.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003943/0.637, allocations: 88.64 kB / 0.5378 GB, free: 17.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00694/0.644, allocations: 4.463 MB / 0.5422 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006197/0.6446, allocations: 39.23 kB / 0.5422 GB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.436e-05/0.6447, allocations: 22.14 kB / 0.5422 GB, free: 14.12 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: liquidWater.z:DUMMY_STATE(unit = "1" protected = true ) "Charge number of ion" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 47 * 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 {(3,77.8%) 5} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001816/0.6449, allocations: 116.8 kB / 0.5423 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.645e-05/0.645, allocations: 35.03 kB / 0.5424 GB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006849/0.6518, allocations: 1.388 MB / 0.5437 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006555/0.6584, allocations: 1.278 MB / 0.545 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.6584, allocations: 0 / 0.545 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.6585, allocations: 7.828 kB / 0.545 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008412/0.6669, allocations: 2.476 MB / 0.5474 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.6669, allocations: 3.969 kB / 0.5474 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.6672, allocations: 73.19 kB / 0.5475 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006117/0.6734, allocations: 0.6323 MB / 0.5481 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.152e-05/0.6734, allocations: 19.45 kB / 0.5481 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007714/0.6811, allocations: 4.61 MB / 0.5526 GB, free: 8.441 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004855/0.686, allocations: 1.96 MB / 0.5545 GB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007626/0.6937, allocations: 2.056 MB / 0.5565 GB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008508/0.7022, allocations: 2.86 MB / 0.5593 GB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001803/0.7024, allocations: 114.6 kB / 0.5594 GB, free: 4.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.7025, allocations: 13.42 kB / 0.5595 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004928/0.703, allocations: 22.55 kB / 0.5595 GB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/0.7031, allocations: 51.09 kB / 0.5595 GB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.11e-05/0.7031, allocations: 22.64 kB / 0.5595 GB, free: 4.543 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000202/0.7033, allocations: 177.8 kB / 0.5597 GB, free: 4.457 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001625/0.705, allocations: 311.4 kB / 0.56 GB, free: 4.418 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($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 (41): * Single equations (assignments): 38 * 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 {(3,77.8%) 5} * Non-linear torn systems: 2 {1 1,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000621/0.7056, allocations: 306.9 kB / 0.5603 GB, free: 4.258 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.7076, allocations: 1.04 MB / 0.5613 GB, free: 3.699 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.7076, allocations: 0 / 0.5613 GB, free: 3.699 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001102/0.7087, allocations: 0.6593 MB / 0.562 GB, free: 3.273 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005344/0.7092, allocations: 92.02 kB / 0.5621 GB, free: 3.227 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.7111, allocations: 0.979 MB / 0.563 GB, free: 2.547 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005919/0.7117, allocations: 0.9075 MB / 0.5639 GB, free: 1.75 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.7118, allocations: 0 / 0.5639 GB, free: 1.75 MB / 378.7 MB (rm -f Chemical_Chemical.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)