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.969/2.969, allocations: 390.3 MB / 402.8 MB, free: 6.719 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.001968/0.001968, allocations: 180.8 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.844/1.844, allocations: 221.3 MB / 0.7915 GB, free: 5.48 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.001148/0.001148, allocations: 83.97 kB / 0.9317 GB, free: 5.805 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.068e-05/4.069e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3334, allocations: 143 MB / 1.219 GB, free: 13.47 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.089/1.423, allocations: 154.7 MB / 1.37 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/1.423, allocations: 84.78 kB / 1.37 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.03188/1.455, allocations: 12.1 MB / 1.382 GB, free: 5.148 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.533e-06/1.455, allocations: 0 / 1.382 GB, free: 5.148 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.008e-05/1.455, allocations: 16 kB / 1.382 GB, free: 5.133 MB / 0.8386 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.001929/1.457, allocations: 1.02 MB / 1.383 GB, free: 4.102 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/1.457, allocations: 8.031 kB / 1.383 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00014/1.457, allocations: 118.6 kB / 1.383 GB, free: 4.012 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001629/1.457, allocations: 94.88 kB / 1.383 GB, free: 3.918 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007393/1.458, allocations: 0.4959 MB / 1.384 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.187e-05/1.458, allocations: 53.88 kB / 1.384 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/1.458, allocations: 73.44 kB / 1.384 GB, free: 3.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/1.459, allocations: 0.7077 MB / 1.384 GB, free: 2.926 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/1.459, allocations: 3.984 kB / 1.384 GB, free: 2.922 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.916e-05/1.459, allocations: 36.81 kB / 1.384 GB, free: 2.91 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/1.459, allocations: 20 kB / 1.384 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008714/1.46, allocations: 495.9 kB / 1.385 GB, free: 2.598 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003451/1.464, allocations: 2.373 MB / 1.387 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009869/1.465, allocations: 0.5508 MB / 1.388 GB, free: 444 kB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004145/1.465, allocations: 274.5 kB / 1.388 GB, free: 280 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.875e-05/1.465, allocations: 4.438 kB / 1.388 GB, free: 272 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005354/1.466, allocations: 311.2 kB / 1.388 GB, free: 36 kB / 0.8386 GB Notification: Performance of pre-optimization done (n=57): time 2.655e-06/1.466, allocations: 0 / 1.388 GB, free: 36 kB / 0.8386 GB Notification: Performance of matching and sorting (n=57): time 0.0008788/1.467, allocations: 480 kB / 1.389 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/1.467, allocations: 137.1 kB / 1.389 GB, free: 15.52 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006804/1.467, allocations: 0.5155 MB / 1.389 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/1.468, allocations: 44.7 kB / 1.389 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/1.468, allocations: 341.2 kB / 1.39 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.000151/1.468, allocations: 178.9 kB / 1.39 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.984e-05/1.468, allocations: 10.75 kB / 1.39 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.000209/1.468, allocations: 384.6 kB / 1.39 GB, free: 14.37 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003014/1.469, allocations: 171 kB / 1.39 GB, free: 14.28 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/1.469, allocations: 275.4 kB / 1.391 GB, free: 14.06 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003716/1.469, allocations: 244.5 kB / 1.391 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/1.469, allocations: 4 kB / 1.391 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009378/1.47, allocations: 0.5961 MB / 1.392 GB, free: 13.42 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002491/1.471, allocations: 417.2 kB / 1.392 GB, free: 12.98 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/1.471, allocations: 0 / 1.392 GB, free: 12.98 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/1.471, allocations: 7.953 kB / 1.392 GB, free: 12.97 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006687/1.471, allocations: 153.9 kB / 1.392 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/1.471, allocations: 4 kB / 1.392 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000594/1.472, allocations: 145.5 kB / 1.392 GB, free: 12.69 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.971e-05/1.472, allocations: 23.55 kB / 1.392 GB, free: 12.67 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 8.125e-06/1.472, allocations: 9.5 kB / 1.392 GB, free: 12.66 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007749/1.473, allocations: 0.4976 MB / 1.393 GB, free: 12.31 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-06/1.473, allocations: 4 kB / 1.393 GB, free: 12.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.935e-06/1.473, allocations: 4 kB / 1.393 GB, free: 12.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005098/1.473, allocations: 131.6 kB / 1.393 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/1.473, allocations: 0 / 1.393 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004849/1.474, allocations: 126.1 kB / 1.393 GB, free: 12.06 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/1.474, allocations: 15.19 kB / 1.393 GB, free: 12.05 MB / 0.8542 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.0001555/1.474, allocations: 139.2 kB / 1.393 GB, free: 11.93 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/1.474, allocations: 71.14 kB / 1.393 GB, free: 11.86 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008742/1.475, allocations: 0.509 MB / 1.394 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/1.475, allocations: 4 kB / 1.394 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/1.475, allocations: 3.984 kB / 1.394 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/1.475, allocations: 0 / 1.394 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/1.477, allocations: 1.293 MB / 1.395 GB, free: 10.52 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/1.477, allocations: 0 / 1.395 GB, free: 10.52 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000618/1.477, allocations: 139.6 kB / 1.395 GB, free: 10.39 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.291e-06/1.477, allocations: 4 kB / 1.395 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.189e-05/1.477, allocations: 14.86 kB / 1.395 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/1.477, allocations: 4 kB / 1.395 GB, free: 10.37 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/1.477, allocations: 0 / 1.395 GB, free: 10.37 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/1.479, allocations: 0.8393 MB / 1.396 GB, free: 9.773 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/1.479, allocations: 154.2 kB / 1.396 GB, free: 9.617 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.194e-05/1.479, allocations: 13.69 kB / 1.396 GB, free: 9.613 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005198/1.479, allocations: 94.66 kB / 1.396 GB, free: 9.527 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/1.48, allocations: 50.73 kB / 1.396 GB, free: 9.488 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.739e-05/1.48, allocations: 15.06 kB / 1.396 GB, free: 9.477 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0005438/1.48, allocations: 418.4 kB / 1.397 GB, free: 9.18 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.7e-07/1.48, allocations: 7.938 kB / 1.397 GB, free: 9.172 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.00072/1.481, allocations: 259.3 kB / 1.397 GB, free: 8.941 MB / 0.8542 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.001658/1.483, allocations: 1.402 MB / 1.398 GB, free: 7.781 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001414/1.484, allocations: 0.9152 MB / 1.399 GB, free: 7.059 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/1.484, allocations: 0 / 1.399 GB, free: 7.059 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000376/1.484, allocations: 241.2 kB / 1.399 GB, free: 6.898 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006229/1.485, allocations: 106.3 kB / 1.4 GB, free: 6.828 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/1.487, allocations: 0.9777 MB / 1.4 GB, free: 5.969 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/1.488, allocations: 0.9361 MB / 1.401 GB, free: 5.008 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0005099/1.488, allocations: 111.6 kB / 1.401 GB, free: 4.895 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003727/1.489, allocations: 261.5 kB / 1.402 GB, free: 4.832 MB / 0.8542 GB Notification: Performance of SimCode: time 9.52e-07/1.489, allocations: 0 / 1.402 GB, free: 4.832 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03312/1.522, allocations: 13.96 MB / 1.415 GB, free: 7.117 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002014/1.522, allocations: 182.2 kB / 1.416 GB, free: 6.887 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.799/4.321, allocations: 4 kB / 1.416 GB, free: 6.883 MB / 0.8698 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