Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.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.Fluid.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter") [: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.8051/0.8051, allocations: 141.8 MB / 149.1 MB, free: 12.29 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 189.4 kB / 182 MB, free: 9.086 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 221.3 MB / 436 MB, free: 1.438 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.001078/0.001078, allocations: 102.9 kB / 0.507 GB, free: 10.33 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001981/0.001981, allocations: 290.2 kB / 0.5885 GB, free: 7.156 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 7.795e-06/7.835e-06, allocations: 0 / 0.6759 GB, free: 13.52 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4412/0.4413, allocations: 82.78 MB / 0.7567 GB, free: 138.3 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7009/1.142, allocations: 371.7 MB / 1.12 GB, free: 14.59 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/1.143, allocations: 94.88 kB / 1.12 GB, free: 14.54 MB / 0.6669 GB Notification: Performance of FrontEnd: time 0.701/1.844, allocations: 171 MB / 1.287 GB, free: 163.7 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 4.089e-05/1.844, allocations: 12 kB / 1.287 GB, free: 163.7 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00107/1.845, allocations: 0.6686 MB / 1.288 GB, free: 162.9 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/1.845, allocations: 8.031 kB / 1.288 GB, free: 162.9 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/1.845, allocations: 47.44 kB / 1.288 GB, free: 162.9 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03575/1.881, allocations: 14.66 MB / 1.302 GB, free: 148.3 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/1.881, allocations: 7.906 kB / 1.302 GB, free: 148.3 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.633e-05/1.881, allocations: 12 kB / 1.302 GB, free: 148.2 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002426/1.881, allocations: 100.6 kB / 1.302 GB, free: 148.1 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/1.881, allocations: 135.9 kB / 1.302 GB, free: 148 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/1.881, allocations: 3.938 kB / 1.302 GB, free: 148 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.853e-05/1.881, allocations: 0 / 1.302 GB, free: 148 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/1.881, allocations: 4 kB / 1.302 GB, free: 148 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001123/1.883, allocations: 0.8053 MB / 1.303 GB, free: 147.1 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/1.883, allocations: 98.61 kB / 1.303 GB, free: 147 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.588e-05/1.883, allocations: 56.78 kB / 1.303 GB, free: 147 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002559/1.883, allocations: 340.4 kB / 1.303 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/1.883, allocations: 34.56 kB / 1.303 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=12): time 2.034e-06/1.883, allocations: 0 / 1.303 GB, free: 146.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=12): time 0.0004138/1.884, allocations: 133.3 kB / 1.304 GB, free: 146.4 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.967e-05/1.884, allocations: 51.41 kB / 1.304 GB, free: 146.3 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/1.884, allocations: 250.1 kB / 1.304 GB, free: 146.1 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/1.884, allocations: 25.7 kB / 1.304 GB, free: 146 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 5.575e-05/1.884, allocations: 152.2 kB / 1.304 GB, free: 145.9 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 2.801e-05/1.884, allocations: 39.39 kB / 1.304 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-06/1.884, allocations: 0 / 1.304 GB, free: 145.8 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.524e-05/1.884, allocations: 342.8 kB / 1.304 GB, free: 145.5 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.438e-05/1.884, allocations: 28.2 kB / 1.304 GB, free: 145.5 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.048e-05/1.884, allocations: 86.73 kB / 1.305 GB, free: 145.3 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/1.884, allocations: 39.97 kB / 1.305 GB, free: 145.3 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.884, allocations: 4 kB / 1.305 GB, free: 145.3 MB / 0.6982 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000253/1.885, allocations: 145.2 kB / 1.305 GB, free: 145.2 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 5.447e-05/1.885, allocations: 184.9 kB / 1.305 GB, free: 145 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/1.885, allocations: 4 kB / 1.305 GB, free: 145 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/1.885, allocations: 0 / 1.305 GB, free: 145 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/1.885, allocations: 39.92 kB / 1.305 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/1.885, allocations: 0 / 1.305 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/1.885, allocations: 27.88 kB / 1.305 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/1.885, allocations: 8 kB / 1.305 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 7.554e-06/1.885, allocations: 4 kB / 1.305 GB, free: 144.9 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001953/1.885, allocations: 79.92 kB / 1.305 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-06/1.885, allocations: 0 / 1.305 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.307e-06/1.885, allocations: 0 / 1.305 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/1.885, allocations: 27.98 kB / 1.305 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-06/1.886, allocations: 0 / 1.305 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/1.886, allocations: 27.97 kB / 1.305 GB, free: 144.8 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/1.886, allocations: 11.91 kB / 1.305 GB, free: 144.7 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 6.69e-05/1.886, allocations: 108.9 kB / 1.305 GB, free: 144.6 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.273e-05/1.886, allocations: 35.61 kB / 1.305 GB, free: 144.6 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003752/1.886, allocations: 192.5 kB / 1.305 GB, free: 144.4 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/1.886, allocations: 3.984 kB / 1.305 GB, free: 144.4 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/1.886, allocations: 0 / 1.305 GB, free: 144.4 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/1.886, allocations: 0 / 1.305 GB, free: 144.4 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006158/1.887, allocations: 0.5323 MB / 1.306 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/1.887, allocations: 0 / 1.306 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/1.887, allocations: 28.08 kB / 1.306 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/1.887, allocations: 4 kB / 1.306 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/1.887, allocations: 3.938 kB / 1.306 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/1.887, allocations: 4 kB / 1.306 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.887, allocations: 0 / 1.306 GB, free: 143.8 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002991/1.887, allocations: 316.9 kB / 1.306 GB, free: 143.4 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/1.887, allocations: 128.6 kB / 1.306 GB, free: 143.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.411e-05/1.888, allocations: 0 / 1.306 GB, free: 143.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/1.888, allocations: 27.97 kB / 1.306 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/1.888, allocations: 7.984 kB / 1.306 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/1.888, allocations: 15.84 kB / 1.306 GB, free: 143.2 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001477/1.888, allocations: 196.6 kB / 1.307 GB, free: 143 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0005843/1.889, allocations: 163.7 kB / 1.307 GB, free: 142.9 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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.0006511/1.889, allocations: 296.5 kB / 1.307 GB, free: 142.6 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0002516/1.889, allocations: 148.4 kB / 1.307 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.89, allocations: 0 / 1.307 GB, free: 142.5 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 8.744e-05/1.89, allocations: 60.11 kB / 1.307 GB, free: 142.4 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006547/1.89, allocations: 125.2 kB / 1.307 GB, free: 142.3 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007186/1.891, allocations: 367.1 kB / 1.308 GB, free: 141.9 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003117/1.891, allocations: 0.842 MB / 1.309 GB, free: 141 MB / 0.6982 GB Notification: Performance of SimCode: time 2.71e-07/1.891, allocations: 0 / 1.309 GB, free: 141 MB / 0.6982 GB Notification: Performance of Templates: time 0.01157/1.903, allocations: 6.245 MB / 1.315 GB, free: 134.9 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)