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.0008109/0.0008108, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001167/0.001167, allocations: 172.7 kB / 15.95 MB, free: 208 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.442/1.442, allocations: 223.3 MB / 240 MB, free: 5.438 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.429/2.429, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003275/0.0003275, allocations: 12 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7048/0.7052, allocations: 142.3 MB / 0.9538 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.003257/0.7085, allocations: 2.686 MB / 0.9565 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001838/0.7103, allocations: 0.9059 MB / 0.9573 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004588/0.7108, allocations: 9.438 kB / 0.9574 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002532/0.7111, allocations: 47.61 kB / 0.9574 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.7114, allocations: 67.58 kB / 0.9575 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005143/0.7119, allocations: 176.2 kB / 0.9576 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004346/0.7124, allocations: 497.4 kB / 0.9581 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003031/0.7127, allocations: 174.1 kB / 0.9583 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.7128, allocations: 137.9 kB / 0.9584 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.713, allocations: 151.7 kB / 0.9586 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.911e-05/0.7131, allocations: 12.38 kB / 0.9586 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.242e-05/0.7131, allocations: 13.75 kB / 0.9586 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.057e-05/0.7132, allocations: 61.44 kB / 0.9586 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.636e-05/0.7133, allocations: 103.3 kB / 0.9587 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.7136, allocations: 436.5 kB / 0.9591 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.7136, allocations: 5.469 kB / 0.9592 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.283e-06/0.7136, allocations: 0 / 0.9592 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.274e-06/0.7136, allocations: 0 / 0.9592 GB, free: 4.195 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.0009095/0.7145, allocations: 0.6914 MB / 0.9598 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.7146, allocations: 9.312 kB / 0.9598 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.106e-05/0.7146, allocations: 74.73 kB / 0.9599 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.109e-05/0.7147, allocations: 58.48 kB / 0.96 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004934/0.7152, allocations: 403.6 kB / 0.9604 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.197e-05/0.7153, allocations: 29.16 kB / 0.9604 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.713e-05/0.7153, allocations: 36.84 kB / 0.9604 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/0.7159, allocations: 390.6 kB / 0.9608 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.7159, allocations: 7.984 kB / 0.9608 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.716, allocations: 16.12 kB / 0.9608 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.716, allocations: 8.25 kB / 0.9608 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005185/0.7165, allocations: 268.3 kB / 0.9611 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.718, allocations: 1.332 MB / 0.9624 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006272/0.7186, allocations: 308 kB / 0.9627 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002657/0.7189, allocations: 138.2 kB / 0.9628 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.719, allocations: 3.562 kB / 0.9628 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003911/0.7194, allocations: 178.4 kB / 0.963 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=33): time 2.375e-06/0.7194, allocations: 0 / 0.963 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=33): time 0.0008998/0.7203, allocations: 385.9 kB / 0.9633 GB, free: 1 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.7203, allocations: 86.14 kB / 0.9634 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004285/0.7208, allocations: 347.4 kB / 0.9638 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.7208, allocations: 32.7 kB / 0.9638 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.721, allocations: 233.4 kB / 0.964 GB, free: 440 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.344e-05/0.7211, allocations: 103.7 kB / 0.9641 GB, free: 348 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.876e-05/0.7211, allocations: 9.594 kB / 0.9641 GB, free: 340 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.7213, allocations: 355.5 kB / 0.9645 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002465/0.7216, allocations: 100.1 kB / 0.9646 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/0.7219, allocations: 169.3 kB / 0.9647 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/0.7222, allocations: 117.5 kB / 0.9648 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.7222, allocations: 2.969 kB / 0.9648 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000725/0.7229, allocations: 352.4 kB / 0.9652 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.723, allocations: 11.72 kB / 0.9652 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.723, allocations: 4.922 kB / 0.9652 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.188e-05/0.723, allocations: 4.031 kB / 0.9652 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002976/0.7233, allocations: 65.31 kB / 0.9652 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.7233, allocations: 4.531 kB / 0.9652 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.7236, allocations: 45.02 kB / 0.9653 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.372e-05/0.7236, allocations: 17.48 kB / 0.9653 GB, free: 15.5 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.0002432/0.7239, allocations: 171.6 kB / 0.9655 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.956e-05/0.7239, allocations: 38.19 kB / 0.9655 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.724, allocations: 44.94 kB / 0.9656 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.7241, allocations: 7.594 kB / 0.9656 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.7241, allocations: 0.8125 kB / 0.9656 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.7241, allocations: 3.984 kB / 0.9656 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.7256, allocations: 0.8096 MB / 0.9664 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.7256, allocations: 4 kB / 0.9664 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.7259, allocations: 57.25 kB / 0.9664 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/0.7259, allocations: 1.656 kB / 0.9664 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.7259, allocations: 6.031 kB / 0.9664 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/0.7259, allocations: 5.109 kB / 0.9664 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.7259, allocations: 0 / 0.9664 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009554/0.7269, allocations: 0.5233 MB / 0.9669 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.7271, allocations: 133.8 kB / 0.9671 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.186e-05/0.7271, allocations: 10.91 kB / 0.9671 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001966/0.7273, allocations: 20.48 kB / 0.9671 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.322e-05/0.7274, allocations: 27.8 kB / 0.9671 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.7274, allocations: 5.312 kB / 0.9671 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000336/0.7278, allocations: 246.3 kB / 0.9674 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7278, allocations: 0 / 0.9674 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004332/0.7282, allocations: 89.19 kB / 0.9674 GB, free: 13.93 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.00131/0.7296, allocations: 1.069 MB / 0.9685 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006684/0.7302, allocations: 268.8 kB / 0.9687 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.7302, allocations: 448 / 0.9687 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002795/0.7305, allocations: 147.5 kB / 0.9689 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005527/0.7311, allocations: 73.78 kB / 0.969 GB, free: 12.85 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004089/0.7352, allocations: 2.303 MB / 0.9712 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005124/0.7357, allocations: 0.8122 MB / 0.972 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002115/0.7359, allocations: 41.52 kB / 0.972 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002149/0.7362, allocations: 149.2 kB / 0.9722 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of SimCode: time 8.92e-07/0.7362, allocations: 0 / 0.9722 GB, free: 10.45 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02109/0.7573, allocations: 6.969 MB / 0.979 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.7575, allocations: 208.7 kB / 0.9792 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.563, allocations: 0 / 0.9792 GB, free: 5.953 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