Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.4/1.4, allocations: 289.8 MB / 297.1 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001033/0.001034, allocations: 185.3 kB / 366.3 MB, free: 1.984 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.145/1.145, allocations: 205.1 MB / 0.6256 GB, free: 7.461 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008093/0.0008093, allocations: 83.36 kB / 0.7395 GB, free: 39.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2134/0.2142, allocations: 122.4 MB / 0.8591 GB, free: 13.51 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4772/0.6914, allocations: 116.3 MB / 0.9726 GB, free: 76.47 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1522/0.8437, allocations: 142.7 MB / 1.112 GB, free: 7.844 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/0.8439, allocations: 89.25 kB / 1.112 GB, free: 7.758 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.03148/0.8754, allocations: 13.12 MB / 1.125 GB, free: 10.64 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.8754, allocations: 8 kB / 1.125 GB, free: 10.63 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.8756, allocations: 99.72 kB / 1.125 GB, free: 10.54 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007231/0.8763, allocations: 0.5143 MB / 1.126 GB, free: 9.977 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.8764, allocations: 24 kB / 1.126 GB, free: 9.953 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.961e-05/0.8765, allocations: 48 kB / 1.126 GB, free: 9.906 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000871/0.8773, allocations: 483.9 kB / 1.126 GB, free: 9.434 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.8784, allocations: 0.6121 MB / 1.127 GB, free: 8.801 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.8784, allocations: 0 / 1.127 GB, free: 8.801 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.786e-05/0.8785, allocations: 0 / 1.127 GB, free: 8.801 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.8785, allocations: 20 kB / 1.127 GB, free: 8.781 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003162/0.8817, allocations: 2.264 MB / 1.129 GB, free: 6.465 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.8827, allocations: 0.5257 MB / 1.129 GB, free: 5.926 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003716/0.8831, allocations: 246.1 kB / 1.13 GB, free: 5.684 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.558e-05/0.8831, allocations: 20.34 kB / 1.13 GB, free: 5.664 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004262/0.8836, allocations: 270.7 kB / 1.13 GB, free: 5.391 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=57): time 2.886e-06/0.8836, allocations: 0 / 1.13 GB, free: 5.391 MB / 0.7292 GB Notification: Performance of matching and sorting (n=57): time 0.0007786/0.8844, allocations: 452.4 kB / 1.13 GB, free: 4.941 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.683e-05/0.8844, allocations: 137 kB / 1.13 GB, free: 4.777 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004567/0.8849, allocations: 409.3 kB / 1.131 GB, free: 4.367 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.047e-05/0.8849, allocations: 29.7 kB / 1.131 GB, free: 4.332 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.8851, allocations: 296 kB / 1.131 GB, free: 4.039 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.8853, allocations: 169.5 kB / 1.131 GB, free: 3.871 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.093e-05/0.8853, allocations: 4.844 kB / 1.131 GB, free: 3.867 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.8854, allocations: 374.6 kB / 1.132 GB, free: 3.492 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002997/0.8857, allocations: 169.3 kB / 1.132 GB, free: 3.328 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.8861, allocations: 276.4 kB / 1.132 GB, free: 3.027 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003117/0.8864, allocations: 187.2 kB / 1.132 GB, free: 2.844 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.8865, allocations: 0 / 1.132 GB, free: 2.844 MB / 0.7292 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008107/0.8873, allocations: 0.5109 MB / 1.133 GB, free: 2.328 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001413/0.8874, allocations: 366.6 kB / 1.133 GB, free: 1.941 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.8874, allocations: 0 / 1.133 GB, free: 1.941 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.8875, allocations: 8.75 kB / 1.133 GB, free: 1.934 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007003/0.8882, allocations: 167.8 kB / 1.133 GB, free: 1.77 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.8882, allocations: 4 kB / 1.133 GB, free: 1.766 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005831/0.8888, allocations: 139.4 kB / 1.133 GB, free: 1.629 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.51e-05/0.8888, allocations: 17.33 kB / 1.133 GB, free: 1.613 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.981e-06/0.8888, allocations: 4 kB / 1.133 GB, free: 1.609 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006713/0.8895, allocations: 402.3 kB / 1.134 GB, free: 1.219 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-06/0.8895, allocations: 3.938 kB / 1.134 GB, free: 1.215 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.811e-06/0.8895, allocations: 4.844 kB / 1.134 GB, free: 1.211 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005659/0.8901, allocations: 133.4 kB / 1.134 GB, free: 1.082 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.8901, allocations: 7.938 kB / 1.134 GB, free: 1.074 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004776/0.8906, allocations: 103.5 kB / 1.134 GB, free: 0.9727 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/0.8906, allocations: 20 kB / 1.134 GB, free: 0.9531 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.TRoo.T_start,TRoo.T_start,$PRE.TRoo.count,TRoo.count,$PRE.m_flow.T_start,m_flow.T_start,$PRE.m_flow.count,m_flow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 2 * 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.000133/0.8908, allocations: 112.9 kB / 1.134 GB, free: 0.8359 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.848e-05/0.8909, allocations: 63.23 kB / 1.134 GB, free: 0.7734 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007917/0.8917, allocations: 470.7 kB / 1.135 GB, free: 316 kB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.8917, allocations: 4 kB / 1.135 GB, free: 312 kB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.8917, allocations: 5.406 kB / 1.135 GB, free: 308 kB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.8917, allocations: 7.984 kB / 1.135 GB, free: 300 kB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001428/0.8931, allocations: 1.174 MB / 1.136 GB, free: 15.07 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.8932, allocations: 0 / 1.136 GB, free: 15.07 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006828/0.8938, allocations: 161.3 kB / 1.136 GB, free: 14.92 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.8939, allocations: 0 / 1.136 GB, free: 14.92 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.695e-05/0.8939, allocations: 4 kB / 1.136 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.8939, allocations: 0 / 1.136 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.8939, allocations: 4 kB / 1.136 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001202/0.8951, allocations: 0.8044 MB / 1.137 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001655/0.8968, allocations: 1.453 MB / 1.138 GB, free: 12.62 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.8969, allocations: 140.3 kB / 1.138 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.222e-05/0.897, allocations: 4 kB / 1.138 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005482/0.8976, allocations: 95.92 kB / 1.138 GB, free: 12.36 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.8977, allocations: 48.41 kB / 1.139 GB, free: 12.32 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.882e-05/0.8977, allocations: 18.06 kB / 1.139 GB, free: 12.3 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0003605/0.8981, allocations: 315 kB / 1.139 GB, free: 12 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.001871/0.9, allocations: 250.6 kB / 1.139 GB, free: 11.75 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (conMix.conHea.I.y,conMix.conCoo.I.y,conMix.conFloRat.I.y) * Number of discrete variables: 9 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (m_flow.count,TRoo.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001746/0.9002, allocations: 119.1 kB / 1.139 GB, free: 11.62 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001191/0.9014, allocations: 0.7904 MB / 1.14 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.9014, allocations: 0 / 1.14 GB, free: 10.81 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003574/0.9017, allocations: 237.8 kB / 1.14 GB, free: 10.58 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005512/0.9023, allocations: 94.48 kB / 1.14 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.9041, allocations: 0.8873 MB / 1.141 GB, free: 9.57 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007133/0.9049, allocations: 1.009 MB / 1.142 GB, free: 8.539 MB / 0.7448 GB Notification: Performance of SimCode: time 3.6e-07/0.9049, allocations: 0 / 1.142 GB, free: 8.539 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.fmu > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1)