Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.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.Actuators.Valves.Validation.ThreeWayValveParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization") translateModel(BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization") [: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.7512/0.7512, allocations: 141.8 MB / 149.1 MB, free: 13.07 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.001178/0.001179, allocations: 183.4 kB / 181.9 MB, free: 9.75 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.383/1.383, allocations: 221.4 MB / 436 MB, free: 2.164 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.001005/0.001005, allocations: 97.03 kB / 0.507 GB, free: 10.95 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001879/0.001879, allocations: 276.5 kB / 0.5884 GB, free: 7.773 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 9.738e-06/9.758e-06, allocations: 4 kB / 0.6759 GB, free: 14.12 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.446/0.446, allocations: 82.77 MB / 0.7567 GB, free: 139 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.748/1.194, allocations: 387.6 MB / 1.135 GB, free: 15.75 MB / 0.6825 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/1.194, allocations: 105.8 kB / 1.135 GB, free: 15.7 MB / 0.6825 GB Notification: Performance of FrontEnd: time 4.39/5.584, allocations: 1.122 GB / 2.258 GB, free: 69.39 MB / 0.7294 GB Notification: Performance of Transformations before backend: time 0.0002209/5.585, allocations: 72.27 kB / 2.258 GB, free: 69.39 MB / 0.7294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.005179/5.59, allocations: 2.331 MB / 2.26 GB, free: 68.62 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/5.59, allocations: 8.312 kB / 2.26 GB, free: 68.62 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000707/5.591, allocations: 268.8 kB / 2.26 GB, free: 68.49 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0038/5.594, allocations: 1.658 MB / 2.262 GB, free: 68.11 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.777e-05/5.595, allocations: 40.88 kB / 2.262 GB, free: 68.11 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/5.595, allocations: 89.3 kB / 2.262 GB, free: 68.11 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00158/5.596, allocations: 0.9126 MB / 2.263 GB, free: 68.1 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/5.598, allocations: 0.9379 MB / 2.264 GB, free: 68.02 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/5.598, allocations: 2.375 kB / 2.264 GB, free: 68.02 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.301e-05/5.598, allocations: 0 / 2.264 GB, free: 68.02 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/5.598, allocations: 29.59 kB / 2.264 GB, free: 68.02 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0084/5.606, allocations: 5.997 MB / 2.27 GB, free: 65.45 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009006/5.607, allocations: 0.5702 MB / 2.27 GB, free: 65.41 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005026/5.608, allocations: 364.6 kB / 2.271 GB, free: 65.4 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005166/5.608, allocations: 0.5063 MB / 2.271 GB, free: 64.84 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/5.608, allocations: 41.09 kB / 2.271 GB, free: 64.8 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=58): time 5.3e-06/5.608, allocations: 0 / 2.271 GB, free: 64.8 MB / 0.7294 GB Notification: Performance of matching and sorting (n=58): time 0.002148/5.61, allocations: 0.8634 MB / 2.272 GB, free: 64.67 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/5.611, allocations: 55.78 kB / 2.272 GB, free: 64.61 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/5.612, allocations: 1.315 MB / 2.273 GB, free: 64.39 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001193/5.613, allocations: 29.58 kB / 2.273 GB, free: 64.36 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004471/5.613, allocations: 0.5879 MB / 2.274 GB, free: 64.11 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/5.613, allocations: 198.1 kB / 2.274 GB, free: 63.98 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.839e-05/5.613, allocations: 0 / 2.274 GB, free: 63.98 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.0001125/5.613, allocations: 350.9 kB / 2.275 GB, free: 63.68 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006497/5.614, allocations: 398.1 kB / 2.275 GB, free: 63.68 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00082/5.615, allocations: 0.7172 MB / 2.276 GB, free: 63.34 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008874/5.616, allocations: 0.4955 MB / 2.276 GB, free: 63.32 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/5.616, allocations: 2.25 kB / 2.276 GB, free: 63.32 MB / 0.7294 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002067/5.618, allocations: 1.274 MB / 2.277 GB, free: 63.17 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002109/5.618, allocations: 0.9212 MB / 2.278 GB, free: 62.21 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/5.618, allocations: 2.969 kB / 2.278 GB, free: 62.21 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/5.618, allocations: 9.812 kB / 2.278 GB, free: 62.21 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/5.619, allocations: 283.5 kB / 2.279 GB, free: 62.21 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.837e-05/5.62, allocations: 11.98 kB / 2.279 GB, free: 62.21 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/5.622, allocations: 186.1 kB / 2.279 GB, free: 62.16 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001372/5.622, allocations: 62.34 kB / 2.279 GB, free: 62.16 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 9.608e-06/5.622, allocations: 6.281 kB / 2.279 GB, free: 62.16 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001727/5.623, allocations: 1.002 MB / 2.28 GB, free: 62.13 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/5.623, allocations: 9.219 kB / 2.28 GB, free: 62.12 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/5.623, allocations: 6.781 kB / 2.28 GB, free: 62.12 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/5.625, allocations: 279.8 kB / 2.28 GB, free: 62.12 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/5.625, allocations: 11.66 kB / 2.28 GB, free: 62.12 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/5.627, allocations: 160.6 kB / 2.28 GB, free: 62.09 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/5.627, allocations: 61.97 kB / 2.28 GB, free: 62.09 MB / 0.7294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 146 * 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.0002349/5.627, allocations: 134.5 kB / 2.28 GB, free: 61.98 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002625/5.627, allocations: 179.3 kB / 2.281 GB, free: 61.88 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00238/5.63, allocations: 1.053 MB / 2.282 GB, free: 61.81 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/5.63, allocations: 14.12 kB / 2.282 GB, free: 61.81 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/5.63, allocations: 0 / 2.282 GB, free: 61.81 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/5.63, allocations: 3.422 kB / 2.282 GB, free: 61.81 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/5.633, allocations: 2.217 MB / 2.284 GB, free: 61.44 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/5.633, allocations: 2.75 kB / 2.284 GB, free: 61.44 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000626/5.634, allocations: 138.8 kB / 2.284 GB, free: 61.44 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/5.634, allocations: 3.281 kB / 2.284 GB, free: 61.44 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/5.634, allocations: 21.06 kB / 2.284 GB, free: 61.44 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/5.634, allocations: 5.688 kB / 2.284 GB, free: 61.44 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/5.634, allocations: 7.844 kB / 2.284 GB, free: 61.44 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00129/5.635, allocations: 1.093 MB / 2.285 GB, free: 60.98 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006344/5.636, allocations: 355 kB / 2.285 GB, free: 60.78 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002528/5.636, allocations: 7.266 kB / 2.285 GB, free: 60.78 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/5.637, allocations: 102.9 kB / 2.285 GB, free: 60.77 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/5.637, allocations: 49.58 kB / 2.286 GB, free: 60.77 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.164e-05/5.637, allocations: 25.72 kB / 2.286 GB, free: 60.77 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.001204/5.639, allocations: 0.9594 MB / 2.286 GB, free: 60.62 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.002793/5.641, allocations: 0.9809 MB / 2.287 GB, free: 60.5 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001532/5.643, allocations: 0.9969 MB / 2.288 GB, free: 60.24 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.002256/5.645, allocations: 1.577 MB / 2.29 GB, free: 60.22 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/5.645, allocations: 0 / 2.29 GB, free: 60.22 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004511/5.646, allocations: 390.1 kB / 2.29 GB, free: 60.21 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004344/5.65, allocations: 0.8835 MB / 2.291 GB, free: 60.2 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004529/5.655, allocations: 2.27 MB / 2.293 GB, free: 59.5 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/5.656, allocations: 1.625 MB / 2.295 GB, free: 58.76 MB / 0.7294 GB Notification: Performance of SimCode: time 8.82e-07/5.656, allocations: 0 / 2.295 GB, free: 58.76 MB / 0.7294 GB Notification: Performance of Templates: time 0.06612/5.722, allocations: 41.69 MB / 2.336 GB, free: 57.44 MB / 0.7294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe 2>&1)