Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="IDEAS_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",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/Complex 4.0.0+maint.om/package.mo): time 0.004844/0.004844, allocations: 186.2 kB / 7.46 MB, free: 2.246 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7852/0.7852, allocations: 133.5 MB / 141.4 MB, free: 15.71 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.807/1.807, allocations: 221.3 MB / 395 MB, free: 10.2 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 103 kB / 477.8 MB, free: 10.78 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5489/0.5503, allocations: 88.43 MB / 0.5529 GB, free: 89.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.7662, allocations: 82.3 MB / 0.6333 GB, free: 14.01 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.369/2.135, allocations: 382.2 MB / 1.007 GB, free: 251.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/2.135, allocations: 86.52 kB / 1.007 GB, free: 251.8 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 1.252/3.388, allocations: 421.7 MB / 1.418 GB, free: 101.5 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/3.388, allocations: 12 kB / 1.418 GB, free: 101.5 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001792/3.39, allocations: 225.5 kB / 1.419 GB, free: 101.3 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005947/3.396, allocations: 2.149 MB / 1.421 GB, free: 99.12 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.878e-05/3.396, allocations: 44 kB / 1.421 GB, free: 99.08 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006412/3.396, allocations: 95.91 kB / 1.421 GB, free: 98.99 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00344/3.4, allocations: 1.63 MB / 1.422 GB, free: 97.36 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003606/3.404, allocations: 1.684 MB / 1.424 GB, free: 95.61 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.964e-05/3.404, allocations: 7.938 kB / 1.424 GB, free: 95.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003248/3.404, allocations: 0 / 1.424 GB, free: 95.6 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.144e-05/3.404, allocations: 39.98 kB / 1.424 GB, free: 95.56 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01029/3.414, allocations: 7.194 MB / 1.431 GB, free: 88.17 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/3.416, allocations: 1.251 MB / 1.432 GB, free: 86.92 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006563/3.416, allocations: 0.6322 MB / 1.433 GB, free: 86.29 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00446/3.421, allocations: 3.455 MB / 1.436 GB, free: 82.55 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/3.421, allocations: 43.34 kB / 1.436 GB, free: 82.5 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=86): time 2.505e-06/3.421, allocations: 0 / 1.436 GB, free: 82.5 MB / 0.6823 GB Notification: Performance of matching and sorting (n=86): time 0.002408/3.423, allocations: 1.172 MB / 1.438 GB, free: 81.32 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/3.423, allocations: 60.19 kB / 1.438 GB, free: 81.25 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001736/3.425, allocations: 1.266 MB / 1.439 GB, free: 79.98 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001249/3.425, allocations: 25.7 kB / 1.439 GB, free: 79.95 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003903/3.426, allocations: 0.6075 MB / 1.44 GB, free: 79.32 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002903/3.426, allocations: 299.6 kB / 1.44 GB, free: 79.03 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.303e-05/3.426, allocations: 0 / 1.44 GB, free: 79.03 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001147/3.426, allocations: 366.8 kB / 1.44 GB, free: 78.66 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008002/3.427, allocations: 0.6676 MB / 1.441 GB, free: 78 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009219/3.428, allocations: 1.002 MB / 1.442 GB, free: 76.86 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002685/3.431, allocations: 1.267 MB / 1.443 GB, free: 75.59 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.413e-06/3.431, allocations: 4 kB / 1.443 GB, free: 75.58 MB / 0.6823 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004378/3.435, allocations: 2.223 MB / 1.445 GB, free: 73.35 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006985/3.436, allocations: 3.479 MB / 1.449 GB, free: 69.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/3.436, allocations: 15.91 kB / 1.449 GB, free: 69.58 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.246e-05/3.436, allocations: 19.98 kB / 1.449 GB, free: 69.56 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/3.437, allocations: 331.5 kB / 1.449 GB, free: 69.24 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.284e-05/3.437, allocations: 23.92 kB / 1.449 GB, free: 69.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001775/3.439, allocations: 154.3 kB / 1.449 GB, free: 69.06 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/3.439, allocations: 63.98 kB / 1.449 GB, free: 69 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/3.439, allocations: 4 kB / 1.449 GB, free: 69 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003868/3.443, allocations: 2.062 MB / 1.451 GB, free: 66.93 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/3.443, allocations: 11.98 kB / 1.451 GB, free: 66.92 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/3.443, allocations: 16.09 kB / 1.451 GB, free: 66.91 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/3.444, allocations: 343.5 kB / 1.452 GB, free: 66.57 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/3.444, allocations: 27.86 kB / 1.452 GB, free: 66.54 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/3.446, allocations: 126.8 kB / 1.452 GB, free: 66.42 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/3.446, allocations: 63.98 kB / 1.452 GB, free: 66.36 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003191/3.446, allocations: 136.4 kB / 1.452 GB, free: 66.21 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002978/3.447, allocations: 134.3 kB / 1.452 GB, free: 66.08 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002492/3.449, allocations: 1.302 MB / 1.453 GB, free: 64.77 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/3.449, allocations: 11.98 kB / 1.453 GB, free: 64.76 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/3.449, allocations: 4 kB / 1.453 GB, free: 64.76 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001678/3.451, allocations: 1.372 MB / 1.455 GB, free: 63.3 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004616/3.455, allocations: 2.809 MB / 1.457 GB, free: 60.46 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/3.455, allocations: 3.938 kB / 1.457 GB, free: 60.45 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000845/3.456, allocations: 175.9 kB / 1.458 GB, free: 60.28 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-05/3.456, allocations: 4 kB / 1.458 GB, free: 60.28 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.565e-05/3.456, allocations: 19.98 kB / 1.458 GB, free: 60.26 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/3.456, allocations: 4 kB / 1.458 GB, free: 60.25 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/3.456, allocations: 0 / 1.458 GB, free: 60.25 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002719/3.459, allocations: 2.016 MB / 1.46 GB, free: 58.2 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003331/3.462, allocations: 3.096 MB / 1.463 GB, free: 55.06 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000815/3.463, allocations: 387.1 kB / 1.463 GB, free: 54.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002124/3.464, allocations: 15.98 kB / 1.463 GB, free: 54.65 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007665/3.464, allocations: 35.81 kB / 1.463 GB, free: 54.61 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.238e-05/3.464, allocations: 44.7 kB / 1.463 GB, free: 54.57 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.292e-05/3.464, allocations: 39.97 kB / 1.463 GB, free: 54.53 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.001275/3.466, allocations: 0.9771 MB / 1.464 GB, free: 53.55 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004133/3.47, allocations: 1.052 MB / 1.465 GB, free: 52.5 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001052/3.471, allocations: 485.7 kB / 1.466 GB, free: 52.04 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.003014/3.474, allocations: 2.313 MB / 1.468 GB, free: 49.73 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/3.474, allocations: 0 / 1.468 GB, free: 49.73 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000567/3.475, allocations: 0.5064 MB / 1.468 GB, free: 49.23 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003033/3.478, allocations: 0.6019 MB / 1.469 GB, free: 48.63 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005443/3.483, allocations: 3.067 MB / 1.472 GB, free: 45.52 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/3.485, allocations: 1.858 MB / 1.474 GB, free: 43.64 MB / 0.6823 GB Notification: Performance of SimCode: time 1.032e-06/3.485, allocations: 4 kB / 1.474 GB, free: 43.63 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)