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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000899/0.000899, allocations: 90.67 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00548/0.00548, allocations: 171.7 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.49/2.49, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002944, allocations: 8.438 kB / 0.9029 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2605, allocations: 159.6 MB / 1.059 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.003617/0.2642, allocations: 3.484 MB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001935/0.2661, allocations: 1.239 MB / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004022/0.2666, allocations: 15.94 kB / 1.063 GB, free: 124 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002707/0.2668, allocations: 99.09 kB / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003271/0.2672, allocations: 91.45 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005306/0.2677, allocations: 311.7 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007776/0.2685, allocations: 0.9159 MB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006555/0.2692, allocations: 0.5113 MB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.2694, allocations: 230.6 kB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002843/0.2697, allocations: 282.1 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.851e-05/0.2698, allocations: 24 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.291e-05/0.2699, allocations: 20 kB / 1.066 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.951e-05/0.27, allocations: 119.3 kB / 1.066 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.2702, allocations: 339.5 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007771/0.271, allocations: 1.141 MB / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.271, allocations: 0 / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.634e-06/0.271, allocations: 0 / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.557e-05/0.271, allocations: 7.938 kB / 1.067 GB, free: 12.02 MB / 0.8262 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.001944/0.273, allocations: 1.115 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.273, allocations: 15.97 kB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001388/0.2732, allocations: 118.7 kB / 1.069 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.2733, allocations: 87.91 kB / 1.069 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005907/0.2739, allocations: 0.5344 MB / 1.069 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/0.274, allocations: 54.38 kB / 1.069 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.2741, allocations: 80.36 kB / 1.069 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.2757, allocations: 0.8502 MB / 1.07 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.2757, allocations: 4 kB / 1.07 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.908e-05/0.2758, allocations: 32 kB / 1.07 GB, free: 9 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/0.2758, allocations: 20 kB / 1.07 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.2776, allocations: 0.7534 MB / 1.071 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003025/0.2806, allocations: 2.497 MB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001824/0.2824, allocations: 0.8049 MB / 1.074 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008474/0.2833, allocations: 395.3 kB / 1.075 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.2833, allocations: 8.438 kB / 1.075 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009424/0.2843, allocations: 417 kB / 1.075 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=51): time 2.254e-06/0.2843, allocations: 0 / 1.075 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of matching and sorting (n=51): time 0.002405/0.2867, allocations: 0.9746 MB / 1.076 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.258e-05/0.2868, allocations: 136.9 kB / 1.076 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000601/0.2874, allocations: 0.5655 MB / 1.077 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.749e-05/0.2875, allocations: 37.7 kB / 1.077 GB, free: 2.25 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/0.2877, allocations: 369.1 kB / 1.077 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.2878, allocations: 169.5 kB / 1.077 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.242e-05/0.2879, allocations: 53.69 kB / 1.077 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.288, allocations: 378.7 kB / 1.078 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007979/0.2888, allocations: 313 kB / 1.078 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008682/0.2897, allocations: 465.1 kB / 1.078 GB, free: 476 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.2913, allocations: 0.7405 MB / 1.079 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.2913, allocations: 0 / 1.079 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001853/0.2932, allocations: 0.8959 MB / 1.08 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.603e-05/0.2933, allocations: 202.4 kB / 1.08 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.2933, allocations: 7.984 kB / 1.08 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.2933, allocations: 4 kB / 1.08 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006249/0.2939, allocations: 171.7 kB / 1.08 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.294, allocations: 4 kB / 1.08 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005774/0.2945, allocations: 151.3 kB / 1.08 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/0.2946, allocations: 23.98 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.72e-06/0.2946, allocations: 4 kB / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001417/0.296, allocations: 0.692 MB / 1.081 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.296, allocations: 7.938 kB / 1.081 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.544e-06/0.2961, allocations: 11.98 kB / 1.081 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004989/0.2966, allocations: 131.8 kB / 1.081 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.2966, allocations: 4 kB / 1.081 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004789/0.2971, allocations: 123.3 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.2971, allocations: 24 kB / 1.081 GB, free: 13.16 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 13 (conMix.conFloRat.con1.y,conMix.conCoo.con1.y,conMix.conHea.con1.y,m_flow.count,$PRE.m_flow.count,m_flow.T_start,$PRE.m_flow.T_start,TRoo.count,$PRE.TRoo.count,TRoo.T_start,$PRE.TRoo.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000267/0.2974, allocations: 297.6 kB / 1.082 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/0.2975, allocations: 67.16 kB / 1.082 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/0.2992, allocations: 0.7329 MB / 1.082 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2992, allocations: 8 kB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.2992, allocations: 0 / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.2992, allocations: 3.984 kB / 1.082 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006377/0.2999, allocations: 0.712 MB / 1.083 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2999, allocations: 0 / 1.083 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000574/0.3005, allocations: 147.8 kB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3005, allocations: 0 / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.3005, allocations: 12 kB / 1.083 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.3005, allocations: 0 / 1.083 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3005, allocations: 7.938 kB / 1.083 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002446/0.303, allocations: 1.097 MB / 1.084 GB, free: 10 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.3031, allocations: 152.3 kB / 1.085 GB, free: 9.836 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.97e-05/0.3032, allocations: 11.98 kB / 1.085 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004791/0.3037, allocations: 87.92 kB / 1.085 GB, free: 9.738 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.3038, allocations: 52.38 kB / 1.085 GB, free: 9.688 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.331e-05/0.3038, allocations: 19.98 kB / 1.085 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004099/0.3042, allocations: 398.8 kB / 1.085 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3042, allocations: 0 / 1.085 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005515/0.3048, allocations: 259 kB / 1.085 GB, free: 9.027 MB / 0.8419 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: 6 ($whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (m_flow.count,TRoo.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002704/0.3075, allocations: 1.669 MB / 1.087 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002388/0.3099, allocations: 1.253 MB / 1.088 GB, free: 6.027 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3099, allocations: 0 / 1.088 GB, free: 6.027 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0008069/0.3107, allocations: 354.9 kB / 1.089 GB, free: 5.68 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005851/0.3113, allocations: 122.2 kB / 1.089 GB, free: 5.562 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009306/0.3206, allocations: 6.34 MB / 1.095 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.321, allocations: 0.9065 MB / 1.096 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002888/0.3213, allocations: 80.98 kB / 1.096 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003419/0.3217, allocations: 259.3 kB / 1.096 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.3217, allocations: 0 / 1.096 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.163/2.484, allocations: 12.42 MB / 1.108 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002162/2.484, allocations: 225.6 kB / 1.108 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.982/4.466, allocations: 0 / 1.108 GB, free: 1.348 MB / 0.8575 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/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)