Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.816/1.816, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009676/0.0009677, allocations: 179 kB / 490.8 MB, free: 1.977 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.145/1.145, allocations: 221.4 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009235/0.0009235, allocations: 82.44 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4302/0.4312, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.6192, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5241/1.143, allocations: 153.9 MB / 1.362 GB, free: 17.14 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/1.144, allocations: 82.69 kB / 1.362 GB, free: 17.14 MB / 0.823 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.03089/1.174, allocations: 12.86 MB / 1.375 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/1.175, allocations: 8.938 kB / 1.375 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002869/1.175, allocations: 93.22 kB / 1.375 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007781/1.176, allocations: 0.4898 MB / 1.375 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/1.176, allocations: 23.72 kB / 1.375 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/1.176, allocations: 55.09 kB / 1.375 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009502/1.177, allocations: 461.4 kB / 1.376 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/1.178, allocations: 0.6054 MB / 1.376 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/1.178, allocations: 0.75 kB / 1.376 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.414e-05/1.178, allocations: 5.844 kB / 1.376 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/1.178, allocations: 17.03 kB / 1.376 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003397/1.181, allocations: 2.2 MB / 1.378 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009217/1.182, allocations: 0.502 MB / 1.379 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003862/1.183, allocations: 254.9 kB / 1.379 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.183e-05/1.183, allocations: 7.5 kB / 1.379 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003921/1.183, allocations: 276.6 kB / 1.379 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=57): time 1.863e-06/1.183, allocations: 0 / 1.379 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=57): time 0.0007307/1.184, allocations: 426.7 kB / 1.38 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/1.184, allocations: 144.3 kB / 1.38 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004417/1.184, allocations: 375.7 kB / 1.38 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.557e-05/1.184, allocations: 32.2 kB / 1.38 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/1.185, allocations: 285.9 kB / 1.381 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/1.185, allocations: 171.8 kB / 1.381 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.517e-05/1.185, allocations: 0 / 1.381 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001369/1.185, allocations: 371.3 kB / 1.381 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002917/1.185, allocations: 159.4 kB / 1.381 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/1.185, allocations: 270.5 kB / 1.382 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/1.186, allocations: 178.2 kB / 1.382 GB, free: 29.28 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/1.186, allocations: 3.938 kB / 1.382 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007832/1.187, allocations: 494.4 kB / 1.382 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/1.187, allocations: 370.4 kB / 1.383 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/1.187, allocations: 1.375 kB / 1.383 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/1.187, allocations: 2.781 kB / 1.383 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/1.187, allocations: 167.4 kB / 1.383 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/1.187, allocations: 3.031 kB / 1.383 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005614/1.188, allocations: 135.3 kB / 1.383 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.901e-05/1.188, allocations: 20.42 kB / 1.383 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.804e-06/1.188, allocations: 4.219 kB / 1.383 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000607/1.189, allocations: 379.2 kB / 1.383 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/1.189, allocations: 1.125 kB / 1.383 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.873e-06/1.189, allocations: 3.219 kB / 1.383 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004996/1.189, allocations: 142.9 kB / 1.383 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/1.189, allocations: 3 kB / 1.383 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004588/1.19, allocations: 107.6 kB / 1.384 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.928e-05/1.19, allocations: 14.53 kB / 1.384 GB, free: 28.57 MB / 0.8386 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.0001311/1.19, allocations: 131 kB / 1.384 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.564e-05/1.19, allocations: 52.38 kB / 1.384 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000709/1.191, allocations: 452.5 kB / 1.384 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/1.191, allocations: 6.219 kB / 1.384 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.191, allocations: 0 / 1.384 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/1.191, allocations: 3.984 kB / 1.384 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001226/1.192, allocations: 1.121 MB / 1.385 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/1.192, allocations: 4 kB / 1.385 GB, free: 27.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006248/1.193, allocations: 157.4 kB / 1.385 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/1.193, allocations: 2.312 kB / 1.385 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.045e-05/1.193, allocations: 7.016 kB / 1.385 GB, free: 27.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/1.193, allocations: 5.906 kB / 1.385 GB, free: 27.78 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/1.193, allocations: 0 / 1.385 GB, free: 27.78 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00102/1.194, allocations: 0.7734 MB / 1.386 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001431/1.195, allocations: 1.39 MB / 1.388 GB, free: 26.99 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.64e-05/1.195, allocations: 137.7 kB / 1.388 GB, free: 26.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.992e-05/1.195, allocations: 9.719 kB / 1.388 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005052/1.196, allocations: 96.69 kB / 1.388 GB, free: 26.82 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/1.196, allocations: 48.8 kB / 1.388 GB, free: 26.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/1.196, allocations: 27.48 kB / 1.388 GB, free: 26.79 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002948/1.196, allocations: 287.6 kB / 1.388 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001695/1.198, allocations: 239.5 kB / 1.388 GB, free: 26.62 MB / 0.8386 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.0001475/1.198, allocations: 124.1 kB / 1.388 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001067/1.199, allocations: 0.7559 MB / 1.389 GB, free: 26.35 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.199, allocations: 5.406 kB / 1.389 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003572/1.2, allocations: 235.2 kB / 1.389 GB, free: 26.32 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/1.2, allocations: 89.62 kB / 1.39 GB, free: 26.3 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/1.202, allocations: 0.8441 MB / 1.39 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007182/1.203, allocations: 0.9854 MB / 1.391 GB, free: 25.12 MB / 0.8386 GB Notification: Performance of SimCode: time 2.3e-07/1.203, allocations: 0 / 1.391 GB, free: 25.12 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.fmu > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1)