Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.791/1.791, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009844/0.0009844, allocations: 173.4 kB / 487 MB, free: 5.398 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.168/1.168, allocations: 221.3 MB / 0.7819 GB, free: 1.391 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008646/0.0008645, allocations: 102 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4329/0.4338, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.195/0.6288, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5084/1.137, allocations: 153.1 MB / 1.355 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/1.138, allocations: 80.66 kB / 1.355 GB, free: 15.91 MB / 0.8073 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.02893/1.166, allocations: 12.86 MB / 1.367 GB, free: 9.668 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/1.167, allocations: 8 kB / 1.367 GB, free: 9.66 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/1.167, allocations: 94.88 kB / 1.368 GB, free: 9.566 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006297/1.167, allocations: 0.5006 MB / 1.368 GB, free: 9.145 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/1.167, allocations: 27.94 kB / 1.368 GB, free: 9.117 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.108e-05/1.167, allocations: 40 kB / 1.368 GB, free: 9.078 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007874/1.168, allocations: 465.2 kB / 1.369 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008662/1.169, allocations: 0.6023 MB / 1.369 GB, free: 8.379 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/1.169, allocations: 7.922 kB / 1.369 GB, free: 8.371 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.718e-05/1.169, allocations: 4 kB / 1.369 GB, free: 8.367 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/1.169, allocations: 16 kB / 1.369 GB, free: 8.352 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/1.172, allocations: 2.205 MB / 1.371 GB, free: 6.68 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007464/1.172, allocations: 0.5077 MB / 1.372 GB, free: 6.34 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000299/1.173, allocations: 261.2 kB / 1.372 GB, free: 6.191 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/1.173, allocations: 7.094 kB / 1.372 GB, free: 6.188 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003194/1.173, allocations: 261.2 kB / 1.372 GB, free: 6.004 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=57): time 1.813e-06/1.173, allocations: 4 kB / 1.372 GB, free: 6 MB / 0.8073 GB Notification: Performance of matching and sorting (n=57): time 0.0005847/1.174, allocations: 426.1 kB / 1.373 GB, free: 5.691 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/1.174, allocations: 140.8 kB / 1.373 GB, free: 5.523 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003181/1.174, allocations: 380.9 kB / 1.373 GB, free: 5.238 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/1.174, allocations: 29.7 kB / 1.373 GB, free: 5.203 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 9.975e-05/1.174, allocations: 280.7 kB / 1.374 GB, free: 4.957 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.547e-05/1.174, allocations: 176.1 kB / 1.374 GB, free: 4.805 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.463e-05/1.174, allocations: 4 kB / 1.374 GB, free: 4.801 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.634e-05/1.174, allocations: 367.5 kB / 1.374 GB, free: 4.457 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002314/1.175, allocations: 167.8 kB / 1.374 GB, free: 4.363 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/1.175, allocations: 261.6 kB / 1.374 GB, free: 4.164 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002353/1.175, allocations: 186.7 kB / 1.375 GB, free: 4.059 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.175, allocations: 0 / 1.375 GB, free: 4.059 MB / 0.8073 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006145/1.176, allocations: 496.9 kB / 1.375 GB, free: 3.703 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 5.632e-05/1.176, allocations: 360.5 kB / 1.375 GB, free: 3.332 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/1.176, allocations: 4 kB / 1.375 GB, free: 3.328 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/1.176, allocations: 0 / 1.375 GB, free: 3.328 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005906/1.176, allocations: 169.9 kB / 1.376 GB, free: 3.168 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/1.176, allocations: 7.984 kB / 1.376 GB, free: 3.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005037/1.177, allocations: 131.5 kB / 1.376 GB, free: 3.031 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/1.177, allocations: 22.69 kB / 1.376 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.088e-06/1.177, allocations: 0 / 1.376 GB, free: 3.016 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004964/1.177, allocations: 381.8 kB / 1.376 GB, free: 2.766 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-06/1.177, allocations: 8.094 kB / 1.376 GB, free: 2.758 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.007e-06/1.178, allocations: 4 kB / 1.376 GB, free: 2.754 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004712/1.178, allocations: 130.7 kB / 1.376 GB, free: 2.629 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.976e-06/1.178, allocations: 4 kB / 1.376 GB, free: 2.625 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004118/1.178, allocations: 103.5 kB / 1.376 GB, free: 2.523 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.094e-05/1.178, allocations: 19.38 kB / 1.376 GB, free: 2.512 MB / 0.8073 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 9.301e-05/1.179, allocations: 133.7 kB / 1.377 GB, free: 2.375 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.892e-05/1.179, allocations: 55.25 kB / 1.377 GB, free: 2.32 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006002/1.179, allocations: 453.3 kB / 1.377 GB, free: 2.02 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/1.179, allocations: 8 kB / 1.377 GB, free: 2.012 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/1.179, allocations: 0 / 1.377 GB, free: 2.012 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/1.179, allocations: 3.938 kB / 1.377 GB, free: 2.008 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009807/1.18, allocations: 1.122 MB / 1.378 GB, free: 1.172 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/1.18, allocations: 0 / 1.378 GB, free: 1.172 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005756/1.181, allocations: 159.3 kB / 1.378 GB, free: 1.023 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/1.181, allocations: 4 kB / 1.378 GB, free: 1.02 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/1.181, allocations: 4 kB / 1.378 GB, free: 1.016 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/1.181, allocations: 4 kB / 1.378 GB, free: 1.012 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/1.181, allocations: 0 / 1.378 GB, free: 1.012 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008247/1.182, allocations: 0.772 MB / 1.379 GB, free: 480 kB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001282/1.183, allocations: 1.403 MB / 1.38 GB, free: 15.42 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/1.183, allocations: 139.7 kB / 1.381 GB, free: 15.27 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.49e-05/1.183, allocations: 4.188 kB / 1.381 GB, free: 15.27 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005071/1.184, allocations: 87.92 kB / 1.381 GB, free: 15.18 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/1.184, allocations: 54.34 kB / 1.381 GB, free: 15.14 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.429e-05/1.184, allocations: 19.55 kB / 1.381 GB, free: 15.12 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0002737/1.184, allocations: 297.5 kB / 1.381 GB, free: 14.91 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001623/1.186, allocations: 242.6 kB / 1.381 GB, free: 14.67 MB / 0.823 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.0001454/1.186, allocations: 122.7 kB / 1.381 GB, free: 14.54 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0009712/1.187, allocations: 0.7579 MB / 1.382 GB, free: 13.98 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/1.187, allocations: 0 / 1.382 GB, free: 13.98 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003023/1.187, allocations: 220.8 kB / 1.382 GB, free: 13.84 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004911/1.188, allocations: 86 kB / 1.382 GB, free: 13.78 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/1.189, allocations: 0.8561 MB / 1.383 GB, free: 13.02 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006425/1.19, allocations: 0.9882 MB / 1.384 GB, free: 12.01 MB / 0.823 GB Notification: Performance of SimCode: time 2.61e-07/1.19, allocations: 0 / 1.384 GB, free: 12.01 MB / 0.823 GB (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.fmu > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1)