Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterProperties") translateModel(BuildingSystems.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterProperties") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.811/0.811, allocations: 141.8 MB / 149.1 MB, free: 4.363 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 180 kB / 181.9 MB, free: 68 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 221.3 MB / 436 MB, free: 9.219 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 90.8 kB / 0.507 GB, free: 24.27 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0018/0.0018, allocations: 278.4 kB / 0.5884 GB, free: 12.25 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.221e-05/1.226e-05, allocations: 7.938 kB / 0.6759 GB, free: 2.621 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.542/0.542, allocations: 82.77 MB / 0.7567 GB, free: 112.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7975/1.34, allocations: 351 MB / 1.099 GB, free: 12.36 MB / 0.6357 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/1.34, allocations: 71.94 kB / 1.1 GB, free: 12.33 MB / 0.6357 GB Notification: Performance of FrontEnd: time 0.05/1.39, allocations: 19.85 MB / 1.119 GB, free: 12.46 MB / 0.6513 GB Notification: Performance of Transformations before backend: time 1.871e-05/1.39, allocations: 4 kB / 1.119 GB, free: 12.46 MB / 0.6513 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008992/1.391, allocations: 473 kB / 1.119 GB, free: 11.96 MB / 0.6513 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/1.391, allocations: 11.97 kB / 1.119 GB, free: 11.95 MB / 0.6513 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/1.391, allocations: 19.81 kB / 1.119 GB, free: 11.93 MB / 0.6513 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002936/1.391, allocations: 217.5 kB / 1.12 GB, free: 11.69 MB / 0.6513 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/1.391, allocations: 4 kB / 1.12 GB, free: 11.68 MB / 0.6513 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/1.392, allocations: 11.91 kB / 1.12 GB, free: 11.67 MB / 0.6513 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000535/1.392, allocations: 411.9 kB / 1.12 GB, free: 11.34 MB / 0.6513 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003191/1.392, allocations: 220.1 kB / 1.12 GB, free: 11.15 MB / 0.6513 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/1.392, allocations: 3.938 kB / 1.12 GB, free: 11.15 MB / 0.6513 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/1.392, allocations: 4 kB / 1.12 GB, free: 11.14 MB / 0.6513 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-05/1.392, allocations: 11.97 kB / 1.12 GB, free: 11.13 MB / 0.6513 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/1.394, allocations: 0.9544 MB / 1.121 GB, free: 10.19 MB / 0.6513 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/1.394, allocations: 138.5 kB / 1.121 GB, free: 10.07 MB / 0.6513 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.669e-05/1.394, allocations: 48.14 kB / 1.121 GB, free: 10.03 MB / 0.6513 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00177/1.396, allocations: 1.926 MB / 1.123 GB, free: 7.785 MB / 0.6513 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/1.396, allocations: 38.38 kB / 1.123 GB, free: 7.742 MB / 0.6513 GB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/1.396, allocations: 0 / 1.123 GB, free: 7.742 MB / 0.6513 GB Notification: Performance of matching and sorting (n=15): time 0.0005542/1.396, allocations: 132.9 kB / 1.123 GB, free: 7.617 MB / 0.6513 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/1.397, allocations: 51.41 kB / 1.123 GB, free: 7.555 MB / 0.6513 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/1.397, allocations: 137.6 kB / 1.124 GB, free: 7.426 MB / 0.6513 GB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/1.397, allocations: 33.64 kB / 1.124 GB, free: 7.387 MB / 0.6513 GB Notification: Performance of collectInitialEqns (initialization): time 9.312e-05/1.397, allocations: 138.4 kB / 1.124 GB, free: 7.254 MB / 0.6513 GB Notification: Performance of collectInitialBindings (initialization): time 3.94e-05/1.397, allocations: 51.09 kB / 1.124 GB, free: 7.211 MB / 0.6513 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.025e-06/1.397, allocations: 3.938 kB / 1.124 GB, free: 7.207 MB / 0.6513 GB Notification: Performance of setup shared object (initialization): time 0.0001427/1.397, allocations: 326.6 kB / 1.124 GB, free: 6.883 MB / 0.6513 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.042e-05/1.397, allocations: 31.56 kB / 1.124 GB, free: 6.859 MB / 0.6513 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/1.397, allocations: 130.4 kB / 1.124 GB, free: 6.699 MB / 0.6513 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/1.398, allocations: 87.17 kB / 1.124 GB, free: 6.625 MB / 0.6513 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/1.398, allocations: 0 / 1.124 GB, free: 6.625 MB / 0.6513 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005574/1.398, allocations: 200.2 kB / 1.125 GB, free: 6.445 MB / 0.6513 GB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/1.398, allocations: 8.469 kB / 1.125 GB, free: 6.438 MB / 0.6513 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/1.398, allocations: 8 kB / 1.125 GB, free: 6.43 MB / 0.6513 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/1.398, allocations: 4 kB / 1.125 GB, free: 6.426 MB / 0.6513 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/1.398, allocations: 55.91 kB / 1.125 GB, free: 6.371 MB / 0.6513 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/1.398, allocations: 15.84 kB / 1.125 GB, free: 6.355 MB / 0.6513 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/1.399, allocations: 23.77 kB / 1.125 GB, free: 6.332 MB / 0.6513 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/1.399, allocations: 14 kB / 1.125 GB, free: 6.324 MB / 0.6513 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 1 * 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.0001147/1.399, allocations: 112.8 kB / 1.125 GB, free: 6.207 MB / 0.6513 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.452e-05/1.399, allocations: 11.91 kB / 1.125 GB, free: 6.195 MB / 0.6513 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005792/1.399, allocations: 186.9 kB / 1.125 GB, free: 6.035 MB / 0.6513 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/1.399, allocations: 4 kB / 1.125 GB, free: 6.031 MB / 0.6513 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/1.399, allocations: 0 / 1.125 GB, free: 6.031 MB / 0.6513 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/1.4, allocations: 0 / 1.125 GB, free: 6.031 MB / 0.6513 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/1.4, allocations: 185.2 kB / 1.125 GB, free: 5.828 MB / 0.6513 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/1.4, allocations: 0 / 1.125 GB, free: 5.828 MB / 0.6513 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/1.4, allocations: 35.91 kB / 1.125 GB, free: 5.793 MB / 0.6513 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/1.4, allocations: 0 / 1.125 GB, free: 5.793 MB / 0.6513 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/1.4, allocations: 11.94 kB / 1.125 GB, free: 5.781 MB / 0.6513 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/1.4, allocations: 0 / 1.125 GB, free: 5.781 MB / 0.6513 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.4, allocations: 4 kB / 1.125 GB, free: 5.777 MB / 0.6513 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005022/1.4, allocations: 238.1 kB / 1.125 GB, free: 5.547 MB / 0.6513 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/1.401, allocations: 125.8 kB / 1.126 GB, free: 5.414 MB / 0.6513 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.996e-05/1.401, allocations: 0 / 1.126 GB, free: 5.414 MB / 0.6513 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/1.401, allocations: 19.98 kB / 1.126 GB, free: 5.395 MB / 0.6513 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.699e-05/1.401, allocations: 11.92 kB / 1.126 GB, free: 5.383 MB / 0.6513 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.837e-05/1.401, allocations: 15.73 kB / 1.126 GB, free: 5.371 MB / 0.6513 GB Notification: Performance of sort global known variables: time 7.791e-05/1.401, allocations: 103.7 kB / 1.126 GB, free: 5.277 MB / 0.6513 GB Notification: Performance of remove unused functions: time 0.0004592/1.401, allocations: 75.78 kB / 1.126 GB, free: 5.207 MB / 0.6513 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0003996/1.402, allocations: 190.3 kB / 1.126 GB, free: 5.012 MB / 0.6513 GB Notification: Performance of simCode: created initialization part: time 0.0002795/1.402, allocations: 112.3 kB / 1.126 GB, free: 4.918 MB / 0.6513 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.402, allocations: 0 / 1.126 GB, free: 4.918 MB / 0.6513 GB Notification: Performance of simCode: created simulation system equations: time 7.5e-05/1.402, allocations: 38.69 kB / 1.126 GB, free: 4.887 MB / 0.6513 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/1.403, allocations: 24.84 kB / 1.126 GB, free: 4.867 MB / 0.6513 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006394/1.403, allocations: 174.3 kB / 1.126 GB, free: 4.684 MB / 0.6513 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005876/1.404, allocations: 0.7427 MB / 1.127 GB, free: 3.914 MB / 0.6513 GB Notification: Performance of SimCode: time 8.32e-07/1.404, allocations: 0 / 1.127 GB, free: 3.914 MB / 0.6513 GB Notification: Performance of Templates: time 0.008762/1.413, allocations: 3.334 MB / 1.13 GB, free: 0.6484 MB / 0.6513 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.sim & ./BuildingSystems_BuildingSystems.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe 2>&1)