Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.512/2.512, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001218/0.001218, allocations: 185 kB / 498.1 MB, free: 5.742 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.678/1.678, allocations: 223.2 MB / 0.7948 GB, free: 17.9 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.001131/0.001131, allocations: 100.5 kB / 0.9346 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004195/0.0004195, allocations: 10.47 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3374, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1999/0.5375, allocations: 150 MB / 1.369 GB, free: 12.01 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.5378, allocations: 91.92 kB / 1.369 GB, free: 11.92 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.005105/0.5429, allocations: 1.778 MB / 1.371 GB, free: 10.14 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.376e-06/0.5429, allocations: 0 / 1.371 GB, free: 10.14 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.5e-05/0.5429, allocations: 0 / 1.371 GB, free: 10.14 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006953/0.5436, allocations: 446.8 kB / 1.372 GB, free: 9.66 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.5437, allocations: 12.03 kB / 1.372 GB, free: 9.648 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.542e-05/0.5438, allocations: 34.56 kB / 1.372 GB, free: 9.605 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.211e-05/0.5438, allocations: 15.86 kB / 1.372 GB, free: 9.59 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.544, allocations: 179.5 kB / 1.372 GB, free: 9.375 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.544, allocations: 8 kB / 1.372 GB, free: 9.367 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.544, allocations: 8 kB / 1.372 GB, free: 9.359 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002415/0.5443, allocations: 93.64 kB / 1.372 GB, free: 9.262 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.5443, allocations: 4 kB / 1.372 GB, free: 9.258 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.5443, allocations: 7.953 kB / 1.372 GB, free: 9.25 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.5443, allocations: 0 / 1.372 GB, free: 9.25 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.5445, allocations: 75.91 kB / 1.372 GB, free: 9.176 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007732/0.5453, allocations: 416.5 kB / 1.372 GB, free: 8.719 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001587/0.5455, allocations: 70.53 kB / 1.373 GB, free: 8.641 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.5455, allocations: 0 / 1.373 GB, free: 8.641 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.5456, allocations: 38.62 kB / 1.373 GB, free: 8.594 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=5): time 8.62e-07/0.5456, allocations: 0 / 1.373 GB, free: 8.594 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.0003839/0.5459, allocations: 125.5 kB / 1.373 GB, free: 8.465 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.546, allocations: 55.39 kB / 1.373 GB, free: 8.398 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.5461, allocations: 139.9 kB / 1.373 GB, free: 8.254 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.5462, allocations: 25.92 kB / 1.373 GB, free: 8.223 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.361e-05/0.5462, allocations: 108 kB / 1.373 GB, free: 8.113 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.251e-05/0.5463, allocations: 19.75 kB / 1.373 GB, free: 8.094 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-06/0.5463, allocations: 0 / 1.373 GB, free: 8.094 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.5464, allocations: 322.8 kB / 1.373 GB, free: 7.77 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.852e-05/0.5465, allocations: 35.98 kB / 1.373 GB, free: 7.734 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.399e-05/0.5466, allocations: 31.98 kB / 1.373 GB, free: 7.703 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.264e-05/0.5467, allocations: 27.98 kB / 1.373 GB, free: 7.676 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.5467, allocations: 0 / 1.373 GB, free: 7.676 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002076/0.5469, allocations: 105.7 kB / 1.374 GB, free: 7.566 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.5469, allocations: 9.25 kB / 1.374 GB, free: 7.559 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.5469, allocations: 0 / 1.374 GB, free: 7.559 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.5469, allocations: 3.938 kB / 1.374 GB, free: 7.555 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.5471, allocations: 12 kB / 1.374 GB, free: 7.543 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.5471, allocations: 8.234 kB / 1.374 GB, free: 7.535 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.5472, allocations: 27.97 kB / 1.374 GB, free: 7.508 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.5473, allocations: 8 kB / 1.374 GB, free: 7.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (conSysSta.onSys,$PRE.conSysSta.onTOut.y,conSysSta.onTOut.y,$PRE.conSysSta.onTRoo.y,conSysSta.onTRoo.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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 9.982e-05/0.5474, allocations: 117.8 kB / 1.374 GB, free: 7.375 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.05e-05/0.5474, allocations: 15.91 kB / 1.374 GB, free: 7.359 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.042e-05/0.5475, allocations: 12.31 kB / 1.374 GB, free: 7.344 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.5475, allocations: 0 / 1.374 GB, free: 7.344 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.5475, allocations: 0 / 1.374 GB, free: 7.344 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.5475, allocations: 3.984 kB / 1.374 GB, free: 7.34 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002085/0.5477, allocations: 205.6 kB / 1.374 GB, free: 7.09 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.5477, allocations: 0 / 1.374 GB, free: 7.09 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.77e-05/0.5478, allocations: 11.98 kB / 1.374 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.5478, allocations: 0 / 1.374 GB, free: 7.078 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.5478, allocations: 4 kB / 1.374 GB, free: 7.074 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.151e-06/0.5478, allocations: 3.984 kB / 1.374 GB, free: 7.07 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5478, allocations: 3.938 kB / 1.374 GB, free: 7.066 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002473/0.5481, allocations: 187.4 kB / 1.374 GB, free: 6.867 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.71e-05/0.5481, allocations: 92.95 kB / 1.374 GB, free: 6.758 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.5482, allocations: 4 kB / 1.374 GB, free: 6.754 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.5484, allocations: 27.97 kB / 1.374 GB, free: 6.727 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.374e-05/0.5484, allocations: 15.97 kB / 1.374 GB, free: 6.711 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.72e-06/0.5484, allocations: 0 / 1.374 GB, free: 6.711 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.873e-05/0.5485, allocations: 121.5 kB / 1.374 GB, free: 6.594 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.753e-06/0.5485, allocations: 3.938 kB / 1.374 GB, free: 6.59 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002362/0.5488, allocations: 23.78 kB / 1.374 GB, free: 6.566 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (conSysSta.onSys,conSysSta.onTOut.y,conSysSta.onTRoo.y) * Number of discrete states: 2 (conSysSta.onTRoo.y,conSysSta.onTOut.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0005753/0.5494, allocations: 0.7355 MB / 1.375 GB, free: 5.805 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002192/0.5496, allocations: 71.97 kB / 1.375 GB, free: 5.734 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.5496, allocations: 0 / 1.375 GB, free: 5.734 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.479e-05/0.5497, allocations: 44.05 kB / 1.375 GB, free: 5.691 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.5499, allocations: 13.7 kB / 1.375 GB, free: 5.68 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.5511, allocations: 0.6851 MB / 1.376 GB, free: 4.941 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.5514, allocations: 0.7043 MB / 1.377 GB, free: 4.211 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 6.509e-05/0.5515, allocations: 11.77 kB / 1.377 GB, free: 4.199 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.594e-05/0.5516, allocations: 31.48 kB / 1.377 GB, free: 4.168 MB / 0.8698 GB Notification: Performance of SimCode: time 3.91e-07/0.5516, allocations: 0 / 1.377 GB, free: 4.168 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01532/0.5669, allocations: 2.24 MB / 1.379 GB, free: 2.086 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001868/0.5671, allocations: 193.3 kB / 1.379 GB, free: 1.848 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/2.278, allocations: 0 / 1.379 GB, free: 1.848 MB / 0.8698 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat does not exist to compare? outputFormat=mat