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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006813/0.006819, allocations: 106.2 kB / 15.74 MB, free: 6 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.001624/0.001624, allocations: 199 kB / 16.68 MB, free: 5.918 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.125 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.274/2.274, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 66.14 kB / 0.9504 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.241, allocations: 140.4 MB / 1.087 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004914/0.246, allocations: 3.924 MB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002125/0.2481, allocations: 1.293 MB / 1.093 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003591/0.2485, allocations: 15.94 kB / 1.093 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003124/0.2489, allocations: 130.6 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002911/0.2492, allocations: 130.8 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.2498, allocations: 355.5 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008886/0.2507, allocations: 1.025 MB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006816/0.2514, allocations: 0.5464 MB / 1.095 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003682/0.2517, allocations: 370.6 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003439/0.2521, allocations: 394 kB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001292/0.2522, allocations: 124 kB / 1.096 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.2523, allocations: 120 kB / 1.096 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.2525, allocations: 227.3 kB / 1.096 GB, free: 9.289 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000319/0.2528, allocations: 441.7 kB / 1.096 GB, free: 8.855 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.2539, allocations: 1.292 MB / 1.098 GB, free: 7.562 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2539, allocations: 0 / 1.098 GB, free: 7.562 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.313e-06/0.2539, allocations: 4 kB / 1.098 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.114e-05/0.2539, allocations: 0 / 1.098 GB, free: 7.559 MB / 0.8575 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.002219/0.2561, allocations: 1.22 MB / 1.099 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.2562, allocations: 19.97 kB / 1.099 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.2563, allocations: 114.7 kB / 1.099 GB, free: 6.133 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.2565, allocations: 95.81 kB / 1.099 GB, free: 6.039 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006994/0.2572, allocations: 0.5268 MB / 1.099 GB, free: 5.473 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.36e-05/0.2572, allocations: 58.38 kB / 1.1 GB, free: 5.414 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.2573, allocations: 76.28 kB / 1.1 GB, free: 5.34 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.2589, allocations: 0.8151 MB / 1.1 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.259, allocations: 0 / 1.1 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.177e-05/0.259, allocations: 27.98 kB / 1.1 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.2591, allocations: 24 kB / 1.1 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001796/0.2609, allocations: 0.6753 MB / 1.101 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003124/0.264, allocations: 2.442 MB / 1.103 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001839/0.2658, allocations: 0.7047 MB / 1.104 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008263/0.2667, allocations: 349.7 kB / 1.105 GB, free: 204 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.215e-05/0.2667, allocations: 8.578 kB / 1.105 GB, free: 196 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009281/0.2677, allocations: 381 kB / 1.105 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=51): time 2.254e-06/0.2677, allocations: 0 / 1.105 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of matching and sorting (n=51): time 0.00241/0.2701, allocations: 0.8534 MB / 1.106 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.746e-05/0.2702, allocations: 137 kB / 1.106 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006402/0.2708, allocations: 0.5655 MB / 1.106 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.2709, allocations: 37.7 kB / 1.106 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/0.2712, allocations: 368 kB / 1.107 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.2713, allocations: 173.5 kB / 1.107 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.2715, allocations: 106.2 kB / 1.107 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2716, allocations: 378.7 kB / 1.107 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007962/0.2724, allocations: 279 kB / 1.108 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008759/0.2733, allocations: 417.1 kB / 1.108 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.2749, allocations: 0.6507 MB / 1.109 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2749, allocations: 0 / 1.109 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001875/0.2768, allocations: 0.8178 MB / 1.11 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.519e-05/0.2768, allocations: 59.39 kB / 1.11 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.2769, allocations: 4 kB / 1.11 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.2769, allocations: 4 kB / 1.11 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006486/0.2775, allocations: 147.8 kB / 1.11 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.2776, allocations: 4 kB / 1.11 GB, free: 10.65 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005689/0.2781, allocations: 119.3 kB / 1.11 GB, free: 10.53 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/0.2782, allocations: 31.92 kB / 1.11 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007836/0.279, allocations: 385.2 kB / 1.11 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006917/0.2797, allocations: 365 kB / 1.111 GB, free: 9.707 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001204/0.2809, allocations: 0.5688 MB / 1.111 GB, free: 9.098 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.787e-06/0.2809, allocations: 4 kB / 1.111 GB, free: 9.094 MB / 0.8731 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001486/0.2824, allocations: 0.7046 MB / 1.112 GB, free: 8.367 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.2824, allocations: 63.41 kB / 1.112 GB, free: 8.293 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2825, allocations: 4 kB / 1.112 GB, free: 8.289 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.6e-06/0.2825, allocations: 4 kB / 1.112 GB, free: 8.285 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000503/0.283, allocations: 123.9 kB / 1.112 GB, free: 8.164 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.283, allocations: 8 kB / 1.112 GB, free: 8.156 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005141/0.2835, allocations: 95.52 kB / 1.112 GB, free: 8.062 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.43e-05/0.2836, allocations: 20 kB / 1.112 GB, free: 8.043 MB / 0.8731 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.0001813/0.2838, allocations: 220.6 kB / 1.112 GB, free: 7.82 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-05/0.2838, allocations: 71.19 kB / 1.112 GB, free: 7.75 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/0.2856, allocations: 0.6469 MB / 1.113 GB, free: 7.098 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2856, allocations: 8 kB / 1.113 GB, free: 7.09 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2856, allocations: 0 / 1.113 GB, free: 7.09 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.2856, allocations: 0 / 1.113 GB, free: 7.09 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007778/0.2864, allocations: 0.7159 MB / 1.114 GB, free: 6.324 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2864, allocations: 0 / 1.114 GB, free: 6.324 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005717/0.287, allocations: 127.8 kB / 1.114 GB, free: 6.199 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.287, allocations: 4 kB / 1.114 GB, free: 6.195 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.311e-05/0.287, allocations: 7.984 kB / 1.114 GB, free: 6.188 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.2871, allocations: 4 kB / 1.114 GB, free: 6.184 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2871, allocations: 0 / 1.114 GB, free: 6.184 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/0.2895, allocations: 0.9872 MB / 1.115 GB, free: 5.18 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.2896, allocations: 152.2 kB / 1.115 GB, free: 5.012 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.505e-05/0.2897, allocations: 12 kB / 1.115 GB, free: 5 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.2902, allocations: 63.92 kB / 1.115 GB, free: 4.938 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.2903, allocations: 44.38 kB / 1.115 GB, free: 4.895 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.2903, allocations: 19.98 kB / 1.115 GB, free: 4.875 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004436/0.2908, allocations: 402.8 kB / 1.116 GB, free: 4.484 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2908, allocations: 0 / 1.116 GB, free: 4.484 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0006345/0.2914, allocations: 259 kB / 1.116 GB, free: 4.23 MB / 0.8731 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.002822/0.2943, allocations: 1.544 MB / 1.117 GB, free: 2.652 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002688/0.297, allocations: 1.143 MB / 1.118 GB, free: 1.461 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.297, allocations: 0 / 1.118 GB, free: 1.461 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000805/0.2978, allocations: 314.8 kB / 1.119 GB, free: 1.156 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006526/0.2985, allocations: 122.3 kB / 1.119 GB, free: 1.039 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.3092, allocations: 5.631 MB / 1.124 GB, free: 11.23 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/0.3097, allocations: 0.9062 MB / 1.125 GB, free: 10.3 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0003272/0.31, allocations: 76.97 kB / 1.125 GB, free: 10.23 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003572/0.3104, allocations: 259.3 kB / 1.126 GB, free: 9.973 MB / 0.8887 GB Notification: Performance of SimCode: time 8.32e-07/0.3104, allocations: 0 / 1.126 GB, free: 9.973 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.3434, allocations: 13.46 MB / 1.139 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.029/9.373, allocations: 13.94 kB / 1.139 GB, free: 12.7 MB / 0.9044 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/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)