Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",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.284/2.284, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001102/0.001102, allocations: 184.7 kB / 487.4 MB, free: 5.02 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.485/1.485, allocations: 221.5 MB / 0.7824 GB, free: 0.8867 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009097/0.0009097, allocations: 99.88 kB / 0.9219 GB, free: 2.125 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.105e-05/2.117e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2709, allocations: 142.4 MB / 1.206 GB, free: 43.82 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8742/1.145, allocations: 155.8 MB / 1.358 GB, free: 17.87 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/1.145, allocations: 84.75 kB / 1.358 GB, free: 17.87 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01626/1.162, allocations: 6.826 MB / 1.365 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.393e-06/1.162, allocations: 5.578 kB / 1.365 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.913e-05/1.162, allocations: 7.531 kB / 1.365 GB, free: 33.13 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0007675/1.163, allocations: 0.5935 MB / 1.366 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/1.163, allocations: 7.688 kB / 1.366 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.449e-05/1.163, allocations: 58.64 kB / 1.366 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004748/1.163, allocations: 382.2 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/1.163, allocations: 11.38 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.095e-05/1.163, allocations: 15.22 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003196/1.164, allocations: 190.3 kB / 1.366 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004066/1.164, allocations: 300.9 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/1.164, allocations: 0 / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/1.164, allocations: 0 / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/1.164, allocations: 11.59 kB / 1.366 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/1.166, allocations: 1.174 MB / 1.368 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/1.166, allocations: 229 kB / 1.368 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/1.166, allocations: 93.3 kB / 1.368 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/1.166, allocations: 192 / 1.368 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/1.166, allocations: 40.58 kB / 1.368 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/1.166, allocations: 0 / 1.368 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22): time 0.0003447/1.166, allocations: 213 kB / 1.368 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/1.167, allocations: 158 kB / 1.368 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/1.167, allocations: 267.6 kB / 1.369 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/1.167, allocations: 29.7 kB / 1.369 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/1.167, allocations: 213.9 kB / 1.369 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/1.167, allocations: 77.92 kB / 1.369 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.197e-05/1.167, allocations: 0 / 1.369 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001889/1.167, allocations: 345 kB / 1.369 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.595e-05/1.167, allocations: 71.41 kB / 1.369 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/1.167, allocations: 140.2 kB / 1.369 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/1.168, allocations: 76.41 kB / 1.369 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/1.168, allocations: 0 / 1.369 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.00029/1.168, allocations: 240.2 kB / 1.37 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/1.168, allocations: 7.438 kB / 1.37 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/1.168, allocations: 0 / 1.37 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/1.168, allocations: 3.5 kB / 1.37 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/1.168, allocations: 52.22 kB / 1.37 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/1.168, allocations: 10.52 kB / 1.37 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/1.168, allocations: 36.33 kB / 1.37 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/1.168, allocations: 11.56 kB / 1.37 GB, free: 30.54 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.533e-05/1.169, allocations: 108.8 kB / 1.37 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002583/1.169, allocations: 194.6 kB / 1.37 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.17e-05/1.169, allocations: 34.88 kB / 1.37 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.408e-05/1.169, allocations: 36.34 kB / 1.37 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/1.169, allocations: 7.891 kB / 1.37 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/1.169, allocations: 4 kB / 1.37 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/1.169, allocations: 3.844 kB / 1.37 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003239/1.169, allocations: 367.4 kB / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/1.169, allocations: 0 / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002241/1.17, allocations: 47.27 kB / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/1.17, allocations: 3.781 kB / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/1.17, allocations: 0 / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/1.17, allocations: 0 / 1.371 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.17, allocations: 3.984 kB / 1.371 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004335/1.17, allocations: 412.2 kB / 1.371 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.242e-05/1.17, allocations: 129.9 kB / 1.371 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.743e-05/1.17, allocations: 10.39 kB / 1.371 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/1.17, allocations: 24.58 kB / 1.371 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.844e-05/1.17, allocations: 20.05 kB / 1.371 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/1.171, allocations: 7.062 kB / 1.371 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001946/1.171, allocations: 212.5 kB / 1.371 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.171, allocations: 0 / 1.371 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003194/1.171, allocations: 70.09 kB / 1.371 GB, free: 29.79 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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.0007877/1.172, allocations: 0.9444 MB / 1.372 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002647/1.172, allocations: 168.5 kB / 1.373 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.172, allocations: 0 / 1.373 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001068/1.172, allocations: 96.42 kB / 1.373 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004427/1.173, allocations: 59.06 kB / 1.373 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/1.174, allocations: 0.5638 MB / 1.373 GB, free: 28.82 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/1.174, allocations: 0.8003 MB / 1.374 GB, free: 28.12 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001433/1.174, allocations: 38.59 kB / 1.374 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/1.174, allocations: 121.7 kB / 1.374 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of SimCode: time 5.01e-07/1.174, allocations: 0 / 1.374 GB, free: 28.1 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02606/1.201, allocations: 5.841 MB / 1.38 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/1.201, allocations: 163.4 kB / 1.38 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.976/3.177, allocations: 0 / 1.38 GB, free: 27.3 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat does not exist to compare? outputFormat=mat