Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.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.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",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.649/2.649, allocations: 390.3 MB / 405.3 MB, free: 13.41 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.001439/0.001439, allocations: 185 kB / 498.1 MB, free: 5.672 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.808/1.808, allocations: 223.2 MB / 0.7948 GB, free: 17.93 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.0009699/0.0009697, allocations: 102.5 kB / 0.9346 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004343/0.0004343, allocations: 7 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.3402, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.5495, allocations: 157.8 MB / 1.377 GB, free: 4.176 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.5498, allocations: 95.94 kB / 1.377 GB, free: 4.082 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.021/0.5709, allocations: 7.55 MB / 1.384 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.864e-06/0.5709, allocations: 0 / 1.384 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.875e-05/0.571, allocations: 16 kB / 1.384 GB, free: 12.49 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001572/0.5726, allocations: 0.7073 MB / 1.385 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/0.5726, allocations: 8.031 kB / 1.385 GB, free: 11.72 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001759/0.5728, allocations: 70.53 kB / 1.385 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.573, allocations: 59.3 kB / 1.385 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008074/0.5738, allocations: 399.6 kB / 1.386 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.584e-05/0.5739, allocations: 33 kB / 1.386 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.994e-05/0.574, allocations: 36 kB / 1.386 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008779/0.5749, allocations: 422.4 kB / 1.386 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.5749, allocations: 0 / 1.386 GB, free: 10.65 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.353e-05/0.5749, allocations: 15.98 kB / 1.386 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.575, allocations: 15.95 kB / 1.386 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006729/0.5756, allocations: 295.8 kB / 1.386 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.578, allocations: 1.379 MB / 1.388 GB, free: 8.875 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008068/0.5788, allocations: 357.8 kB / 1.388 GB, free: 8.52 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.859e-05/0.5789, allocations: 4 kB / 1.388 GB, free: 8.516 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004359/0.5793, allocations: 201.4 kB / 1.388 GB, free: 8.305 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=33): time 2.946e-06/0.5794, allocations: 0 / 1.388 GB, free: 8.305 MB / 0.8855 GB Notification: Performance of matching and sorting (n=33): time 0.0009691/0.5803, allocations: 434.6 kB / 1.389 GB, free: 7.875 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.522e-05/0.5804, allocations: 136.5 kB / 1.389 GB, free: 7.711 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004172/0.5809, allocations: 312.9 kB / 1.389 GB, free: 7.402 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.5809, allocations: 37.7 kB / 1.389 GB, free: 7.359 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.5811, allocations: 236.7 kB / 1.389 GB, free: 7.121 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.799e-05/0.5812, allocations: 98.56 kB / 1.39 GB, free: 7.023 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.716e-05/0.5813, allocations: 11.94 kB / 1.39 GB, free: 7.012 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001755/0.5814, allocations: 350.8 kB / 1.39 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002486/0.5817, allocations: 119.9 kB / 1.39 GB, free: 6.543 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.582, allocations: 187 kB / 1.39 GB, free: 6.336 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002884/0.5823, allocations: 126.9 kB / 1.39 GB, free: 6.215 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.5823, allocations: 0 / 1.39 GB, free: 6.215 MB / 0.8855 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006947/0.583, allocations: 370.1 kB / 1.391 GB, free: 5.848 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.5831, allocations: 9.25 kB / 1.391 GB, free: 5.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.5831, allocations: 3.938 kB / 1.391 GB, free: 5.836 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.5831, allocations: 4 kB / 1.391 GB, free: 5.832 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.5834, allocations: 67.91 kB / 1.391 GB, free: 5.766 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.5834, allocations: 3.984 kB / 1.391 GB, free: 5.762 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002811/0.5837, allocations: 47.86 kB / 1.391 GB, free: 5.715 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.5837, allocations: 12 kB / 1.391 GB, free: 5.703 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.and3.u1,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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 0.00025/0.584, allocations: 177.7 kB / 1.391 GB, free: 5.52 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-05/0.5841, allocations: 43.55 kB / 1.391 GB, free: 5.477 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.5842, allocations: 48.25 kB / 1.391 GB, free: 5.43 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.5842, allocations: 0 / 1.391 GB, free: 5.43 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.5842, allocations: 7.938 kB / 1.391 GB, free: 5.422 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.5842, allocations: 4 kB / 1.391 GB, free: 5.418 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.5856, allocations: 0.8662 MB / 1.392 GB, free: 4.496 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.5856, allocations: 4 kB / 1.392 GB, free: 4.492 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.5859, allocations: 51.91 kB / 1.392 GB, free: 4.441 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.5859, allocations: 4 kB / 1.392 GB, free: 4.438 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.586, allocations: 4 kB / 1.392 GB, free: 4.434 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.586, allocations: 4 kB / 1.392 GB, free: 4.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/0.586, allocations: 3.984 kB / 1.392 GB, free: 4.426 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009939/0.587, allocations: 0.577 MB / 1.393 GB, free: 3.832 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.5872, allocations: 144.5 kB / 1.393 GB, free: 3.672 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.473e-05/0.5873, allocations: 12.06 kB / 1.393 GB, free: 3.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.5875, allocations: 27.97 kB / 1.393 GB, free: 3.633 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.722e-05/0.5876, allocations: 23.97 kB / 1.393 GB, free: 3.609 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.5876, allocations: 19.98 kB / 1.393 GB, free: 3.59 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002758/0.5879, allocations: 247.2 kB / 1.393 GB, free: 3.352 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5879, allocations: 0 / 1.393 GB, free: 3.352 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004172/0.5883, allocations: 87.84 kB / 1.393 GB, free: 3.266 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.and3.u1) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001376/0.5897, allocations: 1.118 MB / 1.394 GB, free: 2.117 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006592/0.5904, allocations: 300.4 kB / 1.394 GB, free: 1.824 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5904, allocations: 0 / 1.394 GB, free: 1.824 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.5907, allocations: 155.8 kB / 1.395 GB, free: 1.672 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004857/0.5912, allocations: 74.61 kB / 1.395 GB, free: 1.602 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004621/0.5958, allocations: 2.967 MB / 1.398 GB, free: 14.56 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004524/0.5963, allocations: 0.823 MB / 1.398 GB, free: 13.71 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0002381/0.5966, allocations: 47.25 kB / 1.398 GB, free: 13.67 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/0.5968, allocations: 143.4 kB / 1.399 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of SimCode: time 2.074e-06/0.5968, allocations: 0 / 1.399 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.6224, allocations: 7.428 MB / 1.406 GB, free: 6.297 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002216/0.6226, allocations: 199.8 kB / 1.406 GB, free: 6.051 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.329/2.951, allocations: 0 / 1.406 GB, free: 6.051 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat does not exist to compare? outputFormat=mat