Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.587/2.587, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001207/0.001208, allocations: 184 kB / 0.4901 GB, free: 2.23 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.815/1.815, allocations: 223.1 MB / 0.7992 GB, free: 14.76 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.001256/0.001256, allocations: 93.84 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000531/0.000531, allocations: 7.375 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.398, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2713/0.6693, allocations: 157.3 MB / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003264/0.6697, allocations: 87.95 kB / 1.383 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.0265/0.6962, allocations: 6.906 MB / 1.39 GB, free: 5.113 MB / 0.8855 GB Notification: Performance of FrontEnd: time 6.252e-06/0.6963, allocations: 4 kB / 1.39 GB, free: 5.109 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.833e-05/0.6964, allocations: 8 kB / 1.39 GB, free: 5.102 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001504/0.6979, allocations: 0.6624 MB / 1.39 GB, free: 4.391 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.707e-05/0.6979, allocations: 8.562 kB / 1.39 GB, free: 4.383 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001304/0.6981, allocations: 74.47 kB / 1.39 GB, free: 4.301 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.6982, allocations: 51.39 kB / 1.391 GB, free: 4.25 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008362/0.6991, allocations: 379.2 kB / 1.391 GB, free: 3.84 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.6991, allocations: 20.66 kB / 1.391 GB, free: 3.82 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.381e-05/0.6992, allocations: 32 kB / 1.391 GB, free: 3.789 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009433/0.7002, allocations: 362 kB / 1.391 GB, free: 3.402 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.7002, allocations: 0 / 1.391 GB, free: 3.402 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.953e-05/0.7003, allocations: 12 kB / 1.391 GB, free: 3.391 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.904e-05/0.7003, allocations: 11.95 kB / 1.391 GB, free: 3.379 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007891/0.7011, allocations: 254.1 kB / 1.392 GB, free: 3.133 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002454/0.7036, allocations: 1.237 MB / 1.393 GB, free: 1.812 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009199/0.7045, allocations: 287.2 kB / 1.393 GB, free: 1.523 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.7046, allocations: 192 / 1.393 GB, free: 1.523 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.7046, allocations: 46.7 kB / 1.393 GB, free: 1.469 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=22): time 1.814e-06/0.7046, allocations: 0 / 1.393 GB, free: 1.469 MB / 0.8855 GB Notification: Performance of matching and sorting (n=22): time 0.001064/0.7057, allocations: 346.6 kB / 1.393 GB, free: 1.129 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.7058, allocations: 158.2 kB / 1.394 GB, free: 0.9375 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005163/0.7064, allocations: 312.7 kB / 1.394 GB, free: 0.6211 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.7064, allocations: 29.7 kB / 1.394 GB, free: 0.5859 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/0.7066, allocations: 208.4 kB / 1.394 GB, free: 388 kB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 9.448e-05/0.7068, allocations: 74.94 kB / 1.394 GB, free: 312 kB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.125e-05/0.7068, allocations: 4 kB / 1.394 GB, free: 308 kB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002274/0.707, allocations: 350.7 kB / 1.395 GB, free: 15.95 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002884/0.7073, allocations: 91.97 kB / 1.395 GB, free: 15.86 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.7077, allocations: 165.2 kB / 1.395 GB, free: 15.67 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.7079, allocations: 97.73 kB / 1.395 GB, free: 15.58 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.708, allocations: 4 kB / 1.395 GB, free: 15.57 MB / 0.9011 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000664/0.7086, allocations: 302.3 kB / 1.395 GB, free: 15.27 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.7087, allocations: 8 kB / 1.395 GB, free: 15.27 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.7087, allocations: 8.078 kB / 1.395 GB, free: 15.26 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.599e-05/0.7087, allocations: 8.031 kB / 1.395 GB, free: 15.25 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.709, allocations: 51.91 kB / 1.395 GB, free: 15.2 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.709, allocations: 4 kB / 1.395 GB, free: 15.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/0.7093, allocations: 47.75 kB / 1.395 GB, free: 15.15 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.7094, allocations: 8 kB / 1.395 GB, free: 15.14 MB / 0.9011 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 () * Number of clocked 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 0.0002295/0.7096, allocations: 157.8 kB / 1.395 GB, free: 14.98 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-05/0.7097, allocations: 39.53 kB / 1.395 GB, free: 14.94 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/0.7098, allocations: 39.47 kB / 1.395 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.7098, allocations: 7.953 kB / 1.395 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.7098, allocations: 0 / 1.395 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.7098, allocations: 3.984 kB / 1.395 GB, free: 14.88 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006076/0.7105, allocations: 417.2 kB / 1.396 GB, free: 14.43 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.7105, allocations: 4 kB / 1.396 GB, free: 14.42 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002939/0.7108, allocations: 47.91 kB / 1.396 GB, free: 14.38 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.7108, allocations: 4 kB / 1.396 GB, free: 14.37 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.7108, allocations: 4 kB / 1.396 GB, free: 14.37 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.7108, allocations: 0 / 1.396 GB, free: 14.37 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.7108, allocations: 7.953 kB / 1.396 GB, free: 14.36 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009345/0.7118, allocations: 480.5 kB / 1.396 GB, free: 13.88 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.712, allocations: 140.6 kB / 1.397 GB, free: 13.72 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.237e-05/0.712, allocations: 4.062 kB / 1.397 GB, free: 13.71 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.7123, allocations: 35.98 kB / 1.397 GB, free: 13.68 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.798e-05/0.7124, allocations: 27.8 kB / 1.397 GB, free: 13.65 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.7124, allocations: 4 kB / 1.397 GB, free: 13.65 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003138/0.7128, allocations: 251.2 kB / 1.397 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7128, allocations: 0 / 1.397 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004005/0.7132, allocations: 71.84 kB / 1.397 GB, free: 13.34 MB / 0.9011 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) * Number of clocked states: 0 () * 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.001304/0.7145, allocations: 1.019 MB / 1.398 GB, free: 12.3 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0006134/0.7151, allocations: 224 kB / 1.398 GB, free: 12.08 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7151, allocations: 0 / 1.398 GB, free: 12.08 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.000261/0.7154, allocations: 115.9 kB / 1.398 GB, free: 11.96 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005849/0.716, allocations: 78.42 kB / 1.398 GB, free: 11.89 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.7204, allocations: 2.729 MB / 1.401 GB, free: 9.094 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.7208, allocations: 0.7992 MB / 1.402 GB, free: 8.266 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001789/0.721, allocations: 50.94 kB / 1.402 GB, free: 8.211 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.7212, allocations: 119.4 kB / 1.402 GB, free: 8.094 MB / 0.9011 GB Notification: Performance of SimCode: time 5.81e-07/0.7212, allocations: 0 / 1.402 GB, free: 8.094 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02261/0.7438, allocations: 6.692 MB / 1.408 GB, free: 1.598 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/0.7441, allocations: 195.4 kB / 1.409 GB, free: 1.359 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.348/3.092, allocations: 4 kB / 1.409 GB, free: 1.355 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat does not exist to compare? outputFormat=mat