Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.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.PIDHysteresisTimer,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.692/2.692, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.001601/0.001601, allocations: 195 kB / 0.4902 GB, free: 2.258 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.667/1.667, allocations: 223.1 MB / 0.7992 GB, free: 14.67 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.001105/0.001105, allocations: 106.5 kB / 0.9396 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004556/0.0004559, allocations: 10.38 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3656/0.3661, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.209/0.5751, allocations: 158.6 MB / 1.384 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5755, allocations: 95.94 kB / 1.384 GB, free: 10.79 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02018/0.5957, allocations: 7.537 MB / 1.392 GB, free: 3.23 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.385e-06/0.5957, allocations: 0 / 1.392 GB, free: 3.23 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.323e-05/0.5958, allocations: 12 kB / 1.392 GB, free: 3.219 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.001213/0.597, allocations: 0.7152 MB / 1.392 GB, free: 2.453 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/0.597, allocations: 12.56 kB / 1.392 GB, free: 2.441 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.5971, allocations: 74.53 kB / 1.392 GB, free: 2.359 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.5973, allocations: 55.39 kB / 1.392 GB, free: 2.305 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006047/0.5979, allocations: 399.6 kB / 1.393 GB, free: 1.875 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.5979, allocations: 29 kB / 1.393 GB, free: 1.848 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.27e-05/0.598, allocations: 36 kB / 1.393 GB, free: 1.812 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007374/0.5987, allocations: 422.4 kB / 1.393 GB, free: 1.367 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.5988, allocations: 4 kB / 1.393 GB, free: 1.363 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/0.5988, allocations: 16 kB / 1.393 GB, free: 1.348 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.5988, allocations: 11.95 kB / 1.393 GB, free: 1.336 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000616/0.5994, allocations: 295.8 kB / 1.394 GB, free: 1.051 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.6014, allocations: 1.375 MB / 1.395 GB, free: 15.6 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007543/0.6022, allocations: 362.5 kB / 1.395 GB, free: 15.23 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.6023, allocations: 4.547 kB / 1.395 GB, free: 15.23 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004348/0.6027, allocations: 181.5 kB / 1.395 GB, free: 15.04 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=33): time 2.375e-06/0.6027, allocations: 0 / 1.395 GB, free: 15.04 MB / 0.9011 GB Notification: Performance of matching and sorting (n=33): time 0.0009117/0.6036, allocations: 442.5 kB / 1.396 GB, free: 14.6 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.6037, allocations: 140.5 kB / 1.396 GB, free: 14.43 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003773/0.6041, allocations: 324.7 kB / 1.396 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 5.134e-05/0.6042, allocations: 37.69 kB / 1.396 GB, free: 14.07 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.6044, allocations: 228.1 kB / 1.397 GB, free: 13.84 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 8.506e-05/0.6045, allocations: 102.5 kB / 1.397 GB, free: 13.74 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.795e-05/0.6045, allocations: 8 kB / 1.397 GB, free: 13.73 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.6047, allocations: 354.7 kB / 1.397 GB, free: 13.38 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.6049, allocations: 116 kB / 1.397 GB, free: 13.27 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002987/0.6052, allocations: 187.8 kB / 1.397 GB, free: 13.06 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.6055, allocations: 125.6 kB / 1.397 GB, free: 12.94 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.6055, allocations: 0 / 1.397 GB, free: 12.94 MB / 0.9011 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000643/0.6061, allocations: 366.9 kB / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.6062, allocations: 6.5 kB / 1.398 GB, free: 12.57 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.6062, allocations: 11.94 kB / 1.398 GB, free: 12.56 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.6062, allocations: 8.031 kB / 1.398 GB, free: 12.55 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002905/0.6065, allocations: 75.95 kB / 1.398 GB, free: 12.48 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.6065, allocations: 7.938 kB / 1.398 GB, free: 12.47 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.6068, allocations: 47.73 kB / 1.398 GB, free: 12.42 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.6068, allocations: 8 kB / 1.398 GB, free: 12.41 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: 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.0002199/0.607, allocations: 177.7 kB / 1.398 GB, free: 12.23 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.871e-05/0.6071, allocations: 43.53 kB / 1.398 GB, free: 12.19 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.274e-05/0.6072, allocations: 40.25 kB / 1.398 GB, free: 12.15 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.6072, allocations: 4 kB / 1.398 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.6072, allocations: 0 / 1.398 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.6072, allocations: 3.984 kB / 1.398 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/0.6085, allocations: 0.87 MB / 1.399 GB, free: 11.21 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.6085, allocations: 0 / 1.399 GB, free: 11.21 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.6088, allocations: 51.91 kB / 1.399 GB, free: 11.16 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.6088, allocations: 0 / 1.399 GB, free: 11.16 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/0.6089, allocations: 8 kB / 1.399 GB, free: 11.16 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.6089, allocations: 4 kB / 1.399 GB, free: 11.15 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.6089, allocations: 0 / 1.399 GB, free: 11.15 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009319/0.6098, allocations: 0.5732 MB / 1.4 GB, free: 10.56 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.61, allocations: 144.6 kB / 1.4 GB, free: 10.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.677e-05/0.61, allocations: 4 kB / 1.4 GB, free: 10.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.6103, allocations: 35.97 kB / 1.4 GB, free: 10.36 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.515e-05/0.6104, allocations: 24.03 kB / 1.4 GB, free: 10.34 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.112e-05/0.6104, allocations: 11.98 kB / 1.4 GB, free: 10.33 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002694/0.6107, allocations: 251.2 kB / 1.4 GB, free: 10.08 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6107, allocations: 0 / 1.4 GB, free: 10.08 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003648/0.6111, allocations: 91.69 kB / 1.4 GB, free: 9.992 MB / 0.9011 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.001277/0.6123, allocations: 1.123 MB / 1.401 GB, free: 8.84 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.000591/0.613, allocations: 292.3 kB / 1.402 GB, free: 8.555 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.613, allocations: 4 kB / 1.402 GB, free: 8.551 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0002852/0.6133, allocations: 156 kB / 1.402 GB, free: 8.398 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.6137, allocations: 68.41 kB / 1.402 GB, free: 8.332 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/0.6179, allocations: 2.987 MB / 1.405 GB, free: 5.277 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.6184, allocations: 0.8269 MB / 1.406 GB, free: 4.422 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001969/0.6186, allocations: 43.27 kB / 1.406 GB, free: 4.383 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/0.6188, allocations: 139.4 kB / 1.406 GB, free: 4.246 MB / 0.9011 GB Notification: Performance of SimCode: time 7.31e-07/0.6188, allocations: 0 / 1.406 GB, free: 4.246 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.6411, allocations: 7.451 MB / 1.413 GB, free: 13.01 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002454/0.6414, allocations: 199.4 kB / 1.413 GB, free: 12.77 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.51/3.152, allocations: 4 kB / 1.413 GB, free: 12.77 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat does not exist to compare? outputFormat=mat