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.398/2.398, allocations: 390.5 MB / 398 MB, free: 10.99 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.001921/0.001921, allocations: 180.9 kB / 491.2 MB, free: 1.609 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.773/1.773, allocations: 221.5 MB / 0.7868 GB, free: 13.32 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.0009388/0.0009391, allocations: 98.45 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.49e-05/2.493e-05, allocations: 1.062 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3174, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.051/1.368, allocations: 157 MB / 1.366 GB, free: 17.14 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/1.369, allocations: 89.5 kB / 1.366 GB, free: 17.14 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02092/1.389, allocations: 8.744 MB / 1.374 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.222e-06/1.389, allocations: 0 / 1.374 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.878e-05/1.39, allocations: 11.53 kB / 1.374 GB, free: 32.29 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.001304/1.391, allocations: 0.7495 MB / 1.375 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/1.391, allocations: 14.31 kB / 1.375 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/1.391, allocations: 62.25 kB / 1.375 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005329/1.392, allocations: 404.8 kB / 1.376 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/1.392, allocations: 22.62 kB / 1.376 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/1.392, allocations: 34.78 kB / 1.376 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005374/1.392, allocations: 307.9 kB / 1.376 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007018/1.393, allocations: 464.2 kB / 1.376 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/1.393, allocations: 0 / 1.376 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.001e-05/1.393, allocations: 0 / 1.376 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/1.393, allocations: 15.5 kB / 1.376 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002023/1.395, allocations: 1.802 MB / 1.378 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005049/1.396, allocations: 295.3 kB / 1.378 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001695/1.396, allocations: 126.9 kB / 1.379 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.16e-05/1.396, allocations: 3.812 kB / 1.379 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003052/1.396, allocations: 216.4 kB / 1.379 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=35): time 1.413e-06/1.396, allocations: 0 / 1.379 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of matching and sorting (n=35): time 0.0004774/1.397, allocations: 280.8 kB / 1.379 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/1.397, allocations: 136.3 kB / 1.379 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/1.397, allocations: 292.1 kB / 1.379 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/1.397, allocations: 36.8 kB / 1.379 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000154/1.397, allocations: 248.8 kB / 1.38 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.429e-05/1.397, allocations: 98.16 kB / 1.38 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.001e-05/1.397, allocations: 0 / 1.38 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001433/1.397, allocations: 358.8 kB / 1.38 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/1.398, allocations: 113.9 kB / 1.38 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/1.398, allocations: 226.9 kB / 1.38 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/1.398, allocations: 125.9 kB / 1.381 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/1.398, allocations: 4 kB / 1.381 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0005534/1.399, allocations: 382 kB / 1.381 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/1.399, allocations: 41.08 kB / 1.381 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/1.399, allocations: 3.875 kB / 1.381 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/1.399, allocations: 3.875 kB / 1.381 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/1.399, allocations: 85.42 kB / 1.381 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/1.399, allocations: 7.781 kB / 1.381 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003718/1.399, allocations: 67.61 kB / 1.381 GB, free: 29.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/1.399, allocations: 18.66 kB / 1.381 GB, free: 29.12 MB / 0.8386 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.0001344/1.4, allocations: 143.1 kB / 1.381 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000374/1.4, allocations: 276.3 kB / 1.382 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.374e-05/1.4, allocations: 34.91 kB / 1.382 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004997/1.401, allocations: 308.7 kB / 1.382 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/1.401, allocations: 3.875 kB / 1.382 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/1.401, allocations: 3.938 kB / 1.382 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/1.401, allocations: 6.766 kB / 1.382 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/1.402, allocations: 0.826 MB / 1.383 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/1.402, allocations: 0 / 1.383 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/1.402, allocations: 61.42 kB / 1.383 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/1.402, allocations: 3.812 kB / 1.383 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/1.402, allocations: 5.891 kB / 1.383 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/1.402, allocations: 7.797 kB / 1.383 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/1.402, allocations: 0 / 1.383 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006946/1.403, allocations: 0.5511 MB / 1.383 GB, free: 28.33 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/1.403, allocations: 154.4 kB / 1.383 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.722e-05/1.403, allocations: 7.531 kB / 1.383 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003404/1.403, allocations: 47.75 kB / 1.384 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/1.403, allocations: 48.27 kB / 1.384 GB, free: 28.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/1.403, allocations: 14.23 kB / 1.384 GB, free: 28.2 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001938/1.404, allocations: 212.9 kB / 1.384 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of sort global known variables: time 4.11e-07/1.404, allocations: 0 / 1.384 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003834/1.404, allocations: 90.36 kB / 1.384 GB, free: 28.1 MB / 0.8386 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.001153/1.405, allocations: 1.261 MB / 1.385 GB, free: 27.22 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000472/1.406, allocations: 350.7 kB / 1.385 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/1.406, allocations: 0 / 1.385 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002022/1.406, allocations: 150.1 kB / 1.386 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/1.406, allocations: 64.89 kB / 1.386 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/1.408, allocations: 0.5978 MB / 1.386 GB, free: 26.88 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/1.408, allocations: 0.8419 MB / 1.387 GB, free: 26.17 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001979/1.408, allocations: 54.33 kB / 1.387 GB, free: 26.15 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/1.408, allocations: 155.9 kB / 1.387 GB, free: 26.14 MB / 0.8386 GB Notification: Performance of SimCode: time 1.002e-06/1.408, allocations: 3.938 kB / 1.387 GB, free: 26.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03087/1.439, allocations: 7.81 MB / 1.395 GB, free: 22.45 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001697/1.44, allocations: 154.4 kB / 1.395 GB, free: 22.26 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.691/4.13, allocations: 0 / 1.395 GB, free: 22.26 MB / 0.8386 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