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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.441/2.441, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.001105/0.001105, allocations: 176 kB / 0.4901 GB, free: 2.242 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.502/1.502, allocations: 223.1 MB / 0.7992 GB, free: 14.72 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.0009856/0.000985, allocations: 94.02 kB / 0.9396 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003721, allocations: 14.67 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3871, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2143/0.6014, allocations: 154.7 MB / 1.38 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/0.6018, allocations: 79.95 kB / 1.38 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03286/0.6347, allocations: 12.15 MB / 1.392 GB, free: 2.43 MB / 0.8855 GB Notification: Performance of FrontEnd: time 5.41e-06/0.6348, allocations: 0 / 1.392 GB, free: 2.43 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001242/0.6349, allocations: 20 kB / 1.392 GB, free: 2.41 MB / 0.8855 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.004196/0.6391, allocations: 1.119 MB / 1.393 GB, free: 1.223 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/0.6392, allocations: 8.562 kB / 1.393 GB, free: 1.215 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004084/0.6396, allocations: 118.5 kB / 1.394 GB, free: 1.09 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003772/0.64, allocations: 98.8 kB / 1.394 GB, free: 0.9922 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.6411, allocations: 0.5004 MB / 1.394 GB, free: 460 kB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.338e-05/0.6412, allocations: 54 kB / 1.394 GB, free: 408 kB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.6414, allocations: 72 kB / 1.394 GB, free: 336 kB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002037/0.6434, allocations: 0.8384 MB / 1.395 GB, free: 15.47 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.6435, allocations: 7.938 kB / 1.395 GB, free: 15.46 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.996e-05/0.6436, allocations: 32 kB / 1.395 GB, free: 15.43 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.6436, allocations: 20 kB / 1.395 GB, free: 15.41 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001984/0.6456, allocations: 0.7495 MB / 1.396 GB, free: 14.66 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004072/0.6497, allocations: 2.379 MB / 1.398 GB, free: 12.21 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002119/0.6518, allocations: 0.8582 MB / 1.399 GB, free: 11.34 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 5.618e-05/0.6519, allocations: 16.42 kB / 1.399 GB, free: 11.33 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001035/0.6529, allocations: 427.3 kB / 1.399 GB, free: 10.9 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=57): time 5.14e-06/0.6529, allocations: 4 kB / 1.399 GB, free: 10.89 MB / 0.9011 GB Notification: Performance of matching and sorting (n=57): time 0.002489/0.6554, allocations: 1.025 MB / 1.4 GB, free: 9.863 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.6555, allocations: 137.1 kB / 1.401 GB, free: 9.699 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007402/0.6563, allocations: 0.5297 MB / 1.401 GB, free: 9.164 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 6.399e-05/0.6564, allocations: 37.7 kB / 1.401 GB, free: 9.121 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002765/0.6566, allocations: 340.8 kB / 1.401 GB, free: 8.785 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/0.6568, allocations: 189.3 kB / 1.402 GB, free: 8.598 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.6569, allocations: 12 kB / 1.402 GB, free: 8.586 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001951/0.6571, allocations: 378.8 kB / 1.402 GB, free: 8.207 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007944/0.6579, allocations: 304.9 kB / 1.402 GB, free: 7.906 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008512/0.6588, allocations: 419.4 kB / 1.403 GB, free: 7.469 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008273/0.6596, allocations: 377.5 kB / 1.403 GB, free: 7.086 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.6596, allocations: 0 / 1.403 GB, free: 7.086 MB / 0.9011 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001993/0.6616, allocations: 0.8685 MB / 1.404 GB, free: 6.195 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002138/0.6618, allocations: 417.6 kB / 1.404 GB, free: 5.75 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.6619, allocations: 4 kB / 1.404 GB, free: 5.746 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.831e-05/0.6619, allocations: 7.953 kB / 1.404 GB, free: 5.738 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006545/0.6626, allocations: 155.8 kB / 1.404 GB, free: 5.586 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.624e-05/0.6626, allocations: 4 kB / 1.404 GB, free: 5.582 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006454/0.6632, allocations: 151.2 kB / 1.405 GB, free: 5.434 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.309e-05/0.6633, allocations: 23.98 kB / 1.405 GB, free: 5.41 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.6633, allocations: 4 kB / 1.405 GB, free: 5.406 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001465/0.6648, allocations: 0.6647 MB / 1.405 GB, free: 4.73 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.6648, allocations: 0 / 1.405 GB, free: 4.73 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.316e-06/0.6648, allocations: 4 kB / 1.405 GB, free: 4.727 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000542/0.6654, allocations: 135.8 kB / 1.405 GB, free: 4.594 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.6654, allocations: 7.938 kB / 1.405 GB, free: 4.586 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005474/0.6659, allocations: 119.4 kB / 1.406 GB, free: 4.469 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.666, allocations: 16 kB / 1.406 GB, free: 4.453 MB / 0.9011 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 () * Number of clocked 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.0004224/0.6664, allocations: 300.9 kB / 1.406 GB, free: 4.148 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.6666, allocations: 67.16 kB / 1.406 GB, free: 4.082 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/0.6684, allocations: 0.7713 MB / 1.407 GB, free: 3.301 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.6684, allocations: 4 kB / 1.407 GB, free: 3.297 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.6684, allocations: 0 / 1.407 GB, free: 3.297 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.6684, allocations: 3.984 kB / 1.407 GB, free: 3.293 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002681/0.6711, allocations: 1.543 MB / 1.408 GB, free: 1.691 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.6711, allocations: 0 / 1.408 GB, free: 1.691 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006267/0.6717, allocations: 147.8 kB / 1.408 GB, free: 1.547 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.776e-06/0.6718, allocations: 0 / 1.408 GB, free: 1.547 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.004e-05/0.6718, allocations: 15.98 kB / 1.408 GB, free: 1.531 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.6718, allocations: 4 kB / 1.408 GB, free: 1.527 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.6718, allocations: 0 / 1.408 GB, free: 1.527 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002631/0.6745, allocations: 1.224 MB / 1.41 GB, free: 292 kB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.6747, allocations: 160.2 kB / 1.41 GB, free: 112 kB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.824e-05/0.6748, allocations: 8 kB / 1.41 GB, free: 104 kB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005266/0.6753, allocations: 95.91 kB / 1.41 GB, free: 8 kB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.6755, allocations: 56.48 kB / 1.41 GB, free: 15.95 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.845e-05/0.6756, allocations: 16 kB / 1.41 GB, free: 15.94 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0005973/0.6762, allocations: 422.8 kB / 1.41 GB, free: 15.53 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6762, allocations: 0 / 1.41 GB, free: 15.53 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0008191/0.677, allocations: 259.1 kB / 1.411 GB, free: 15.27 MB / 0.9167 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) * Number of clocked states: 0 () * 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.003032/0.68, allocations: 1.799 MB / 1.412 GB, free: 13.45 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.002715/0.6828, allocations: 1.242 MB / 1.413 GB, free: 12.15 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.6828, allocations: 0 / 1.413 GB, free: 12.15 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008438/0.6836, allocations: 371.2 kB / 1.414 GB, free: 11.79 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.6843, allocations: 111.5 kB / 1.414 GB, free: 11.69 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008637/0.693, allocations: 4.782 MB / 1.419 GB, free: 6.836 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005808/0.6936, allocations: 0.9346 MB / 1.42 GB, free: 5.867 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0004194/0.6941, allocations: 77.08 kB / 1.42 GB, free: 5.789 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004396/0.6945, allocations: 275.3 kB / 1.42 GB, free: 5.52 MB / 0.9167 GB Notification: Performance of SimCode: time 1.353e-06/0.6945, allocations: 0 / 1.42 GB, free: 5.52 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6366/1.331, allocations: 13.22 MB / 1.433 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002702/1.332, allocations: 197.2 kB / 1.433 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.81/4.141, allocations: 1.062 kB / 1.433 GB, free: 184.5 MB / 0.9167 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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat does not exist to compare? outputFormat=mat