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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.355/2.355, allocations: 390.3 MB / 0.6653 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.000392, allocations: 12 kB / 0.8146 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7588/0.7592, allocations: 142.3 MB / 0.9536 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003159/0.7624, allocations: 2.645 MB / 0.9562 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001523/0.7639, allocations: 0.8932 MB / 0.957 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002812/0.7642, allocations: 13.25 kB / 0.9571 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.885e-05/0.7643, allocations: 36.83 kB / 0.9571 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004035/0.7647, allocations: 108.3 kB / 0.9572 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.7651, allocations: 187.2 kB / 0.9574 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.7655, allocations: 332.6 kB / 0.9577 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002748/0.7658, allocations: 183.5 kB / 0.9579 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.766, allocations: 142.3 kB / 0.958 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.7662, allocations: 155.7 kB / 0.9581 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.598e-05/0.7662, allocations: 16.78 kB / 0.9582 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.082e-05/0.7663, allocations: 16.62 kB / 0.9582 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.06e-05/0.7663, allocations: 57.3 kB / 0.9582 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.286e-05/0.7664, allocations: 100.1 kB / 0.9583 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002992/0.7667, allocations: 431.4 kB / 0.9587 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.7667, allocations: 0 / 0.9587 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7667, allocations: 0 / 0.9587 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.7667, allocations: 0 / 0.9587 GB, free: 4.082 MB / 0.7169 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.001005/0.7677, allocations: 0.6997 MB / 0.9594 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.7678, allocations: 9.906 kB / 0.9594 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.738e-05/0.7679, allocations: 73.81 kB / 0.9595 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.818e-05/0.768, allocations: 62.3 kB / 0.9596 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005283/0.7685, allocations: 388.5 kB / 0.9599 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.636e-05/0.7686, allocations: 29.31 kB / 0.96 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-05/0.7686, allocations: 40.45 kB / 0.96 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006664/0.7693, allocations: 395.4 kB / 0.9604 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.7693, allocations: 0 / 0.9604 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.7694, allocations: 15.44 kB / 0.9604 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.551e-05/0.7694, allocations: 9.125 kB / 0.9604 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005585/0.77, allocations: 268.2 kB / 0.9607 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001602/0.7716, allocations: 1.335 MB / 0.962 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006769/0.7723, allocations: 307.6 kB / 0.9623 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.7723, allocations: 7.312 kB / 0.9623 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003398/0.7726, allocations: 166.4 kB / 0.9624 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=33): time 1.714e-06/0.7727, allocations: 0 / 0.9624 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of matching and sorting (n=33): time 0.0007977/0.7735, allocations: 388.9 kB / 0.9628 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.7735, allocations: 89.94 kB / 0.9629 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.7739, allocations: 348.2 kB / 0.9632 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.7739, allocations: 36.83 kB / 0.9632 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.7741, allocations: 232.1 kB / 0.9635 GB, free: 388 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.279e-05/0.7742, allocations: 104.3 kB / 0.9636 GB, free: 296 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.73e-05/0.7742, allocations: 5.375 kB / 0.9636 GB, free: 292 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.7743, allocations: 355 kB / 0.9639 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/0.7746, allocations: 104.9 kB / 0.964 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002806/0.7748, allocations: 167.8 kB / 0.9642 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.7751, allocations: 121.4 kB / 0.9643 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.7752, allocations: 1.062 kB / 0.9643 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006661/0.7758, allocations: 354.7 kB / 0.9646 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.7759, allocations: 5.594 kB / 0.9646 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.7759, allocations: 1.094 kB / 0.9646 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.7759, allocations: 8.547 kB / 0.9646 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.7762, allocations: 61.31 kB / 0.9647 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.7762, allocations: 3.469 kB / 0.9647 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.7764, allocations: 54.09 kB / 0.9648 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.571e-05/0.7764, allocations: 9.656 kB / 0.9648 GB, free: 15.46 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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.greaterEqualThreshold.y,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 (45): * Single equations (assignments): 45 * 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.0003037/0.7767, allocations: 179.2 kB / 0.9649 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.411e-05/0.7768, allocations: 38 kB / 0.965 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001216/0.777, allocations: 44.92 kB / 0.965 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.777, allocations: 3.625 kB / 0.965 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.777, allocations: 9.938 kB / 0.965 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.777, allocations: 0 / 0.965 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.7782, allocations: 0.8117 MB / 0.9658 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.7782, allocations: 0.9688 kB / 0.9658 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.7785, allocations: 45.34 kB / 0.9659 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.7785, allocations: 5.25 kB / 0.9659 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.237e-05/0.7785, allocations: 5.312 kB / 0.9659 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.7785, allocations: 5.688 kB / 0.9659 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.7785, allocations: 1.031 kB / 0.9659 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009255/0.7795, allocations: 0.5188 MB / 0.9664 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001539/0.7796, allocations: 137.9 kB / 0.9665 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.986e-05/0.7797, allocations: 6.031 kB / 0.9665 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.7799, allocations: 24.97 kB / 0.9665 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.101e-05/0.78, allocations: 23.38 kB / 0.9666 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.367e-05/0.78, allocations: 14.17 kB / 0.9666 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000305/0.7803, allocations: 237.9 kB / 0.9668 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7803, allocations: 0 / 0.9668 GB, free: 13.92 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004121/0.7808, allocations: 88.56 kB / 0.9669 GB, free: 13.89 MB / 0.7325 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.greaterEqualThreshold.y) * 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.001373/0.7821, allocations: 1.076 MB / 0.9679 GB, free: 13.02 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006097/0.7828, allocations: 268.8 kB / 0.9682 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.7828, allocations: 0 / 0.9682 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003038/0.7831, allocations: 140.4 kB / 0.9683 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.7836, allocations: 76.19 kB / 0.9684 GB, free: 12.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004525/0.7881, allocations: 3.186 MB / 0.9715 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.7886, allocations: 0.8286 MB / 0.9723 GB, free: 9.637 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002007/0.7888, allocations: 41.42 kB / 0.9724 GB, free: 9.617 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002087/0.789, allocations: 137.1 kB / 0.9725 GB, free: 9.508 MB / 0.7325 GB Notification: Performance of SimCode: time 8.42e-07/0.789, allocations: 0 / 0.9725 GB, free: 9.508 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02017/0.8092, allocations: 6.943 MB / 0.9793 GB, free: 5.527 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.8094, allocations: 201.9 kB / 0.9795 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.594, allocations: 0 / 0.9795 GB, free: 5.289 MB / 0.7325 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