Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.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.PreHeatCoil,fileNamePrefix="Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",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.557/2.557, allocations: 390.3 MB / 402.8 MB, free: 6.703 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.001338/0.001337, allocations: 180.8 kB / 496.1 MB, free: 12.87 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.89/1.89, allocations: 221.3 MB / 0.7915 GB, free: 5.406 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.001236/0.001236, allocations: 95.89 kB / 0.9318 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.634e-05/3.638e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3467, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.093/1.44, allocations: 157.7 MB / 1.373 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/1.44, allocations: 90.62 kB / 1.373 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.02524/1.465, allocations: 8.832 MB / 1.382 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.333e-06/1.465, allocations: 0 / 1.382 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.733e-05/1.465, allocations: 23.88 kB / 1.382 GB, free: 4.625 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001932/1.467, allocations: 0.7458 MB / 1.382 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/1.467, allocations: 8.031 kB / 1.382 GB, free: 3.855 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002372/1.468, allocations: 88 kB / 1.382 GB, free: 3.785 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002626/1.468, allocations: 55.34 kB / 1.382 GB, free: 3.73 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008741/1.469, allocations: 426 kB / 1.383 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.427e-05/1.469, allocations: 42.19 kB / 1.383 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/1.469, allocations: 45.94 kB / 1.383 GB, free: 3.301 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/1.47, allocations: 0.5134 MB / 1.383 GB, free: 2.91 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/1.47, allocations: 3.938 kB / 1.383 GB, free: 2.906 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.891e-05/1.47, allocations: 18 kB / 1.383 GB, free: 2.902 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/1.47, allocations: 15.94 kB / 1.383 GB, free: 2.887 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007255/1.471, allocations: 336.3 kB / 1.384 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003903/1.475, allocations: 1.902 MB / 1.386 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007169/1.476, allocations: 309.5 kB / 1.386 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002642/1.476, allocations: 139.2 kB / 1.386 GB, free: 0.7734 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.516e-05/1.476, allocations: 4 kB / 1.386 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004197/1.476, allocations: 228.6 kB / 1.386 GB, free: 0.582 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 3.476e-06/1.476, allocations: 4 kB / 1.386 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.000684/1.477, allocations: 299.8 kB / 1.387 GB, free: 360 kB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/1.477, allocations: 143.8 kB / 1.387 GB, free: 188 kB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005303/1.478, allocations: 355.6 kB / 1.387 GB, free: 15.91 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.074e-05/1.478, allocations: 45.12 kB / 1.387 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002245/1.478, allocations: 244.8 kB / 1.387 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/1.478, allocations: 101.2 kB / 1.387 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.678e-05/1.478, allocations: 10.94 kB / 1.387 GB, free: 15.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002017/1.478, allocations: 355.2 kB / 1.388 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/1.479, allocations: 125.6 kB / 1.388 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003411/1.479, allocations: 241.1 kB / 1.388 GB, free: 14.97 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/1.479, allocations: 162.6 kB / 1.388 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/1.479, allocations: 4 kB / 1.388 GB, free: 14.84 MB / 0.8542 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008502/1.48, allocations: 466.2 kB / 1.389 GB, free: 14.48 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.189e-05/1.48, allocations: 33.64 kB / 1.389 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/1.48, allocations: 4 kB / 1.389 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/1.48, allocations: 4 kB / 1.389 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003819/1.481, allocations: 91.31 kB / 1.389 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/1.481, allocations: 4 kB / 1.389 GB, free: 14.35 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004874/1.481, allocations: 89.03 kB / 1.389 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.401e-05/1.481, allocations: 18.62 kB / 1.389 GB, free: 14.25 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * 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.0001795/1.481, allocations: 158 kB / 1.389 GB, free: 14.11 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.215e-05/1.482, allocations: 39.53 kB / 1.389 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000628/1.482, allocations: 330.3 kB / 1.389 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/1.482, allocations: 4 kB / 1.389 GB, free: 13.83 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/1.482, allocations: 7.984 kB / 1.389 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/1.482, allocations: 0 / 1.389 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/1.484, allocations: 0.923 MB / 1.39 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/1.484, allocations: 0 / 1.39 GB, free: 13.07 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003182/1.484, allocations: 63.23 kB / 1.39 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/1.484, allocations: 4 kB / 1.39 GB, free: 13.01 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/1.484, allocations: 18.12 kB / 1.39 GB, free: 13 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/1.484, allocations: 0 / 1.39 GB, free: 13 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/1.484, allocations: 0 / 1.39 GB, free: 13 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008709/1.485, allocations: 0.5932 MB / 1.391 GB, free: 12.52 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/1.485, allocations: 152.1 kB / 1.391 GB, free: 12.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.452e-05/1.485, allocations: 11.69 kB / 1.391 GB, free: 12.38 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003894/1.486, allocations: 51.45 kB / 1.391 GB, free: 12.33 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/1.486, allocations: 49.48 kB / 1.391 GB, free: 12.29 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/1.486, allocations: 15.8 kB / 1.391 GB, free: 12.28 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003178/1.486, allocations: 257.3 kB / 1.392 GB, free: 12.08 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.8e-07/1.486, allocations: 0 / 1.392 GB, free: 12.08 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004704/1.487, allocations: 95.28 kB / 1.392 GB, free: 12 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001378/1.488, allocations: 1.303 MB / 1.393 GB, free: 10.82 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006815/1.489, allocations: 387.6 kB / 1.393 GB, free: 10.53 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/1.489, allocations: 0 / 1.393 GB, free: 10.53 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002985/1.489, allocations: 153.9 kB / 1.393 GB, free: 10.43 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/1.49, allocations: 82.48 kB / 1.394 GB, free: 10.37 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/1.491, allocations: 0.6298 MB / 1.394 GB, free: 9.793 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000565/1.492, allocations: 0.8435 MB / 1.395 GB, free: 8.926 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.000269/1.492, allocations: 55.38 kB / 1.395 GB, free: 8.871 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/1.493, allocations: 156.9 kB / 1.395 GB, free: 8.824 MB / 0.8542 GB Notification: Performance of SimCode: time 7.41e-07/1.493, allocations: 0 / 1.395 GB, free: 8.824 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03023/1.523, allocations: 8.934 MB / 1.404 GB, free: 112 kB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/1.523, allocations: 176.6 kB / 1.404 GB, free: 15.88 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.387/3.91, allocations: 0 / 1.404 GB, free: 15.88 MB / 0.8698 GB (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat does not exist to compare? outputFormat=mat