Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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.34/2.34, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.00116/0.00116, allocations: 187.8 kB / 0.4902 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.474/1.474, 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.0009247/0.0009248, allocations: 102.6 kB / 0.9396 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000375/0.0003751, allocations: 8.188 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3185, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.203/0.5216, allocations: 156.7 MB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/0.5219, allocations: 79.95 kB / 1.382 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.03249/0.5544, allocations: 12.39 MB / 1.394 GB, free: 212 kB / 0.8855 GB Notification: Performance of FrontEnd: time 1.814e-06/0.5545, allocations: 3.938 kB / 1.394 GB, free: 208 kB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.589e-05/0.5545, allocations: 20 kB / 1.395 GB, free: 188 kB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001913/0.5564, allocations: 0.9619 MB / 1.395 GB, free: 15.16 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.5565, allocations: 8.562 kB / 1.395 GB, free: 15.16 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001797/0.5567, allocations: 102.5 kB / 1.396 GB, free: 15.05 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001762/0.5569, allocations: 87.06 kB / 1.396 GB, free: 14.96 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008777/0.5578, allocations: 0.5251 MB / 1.396 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.226e-05/0.5578, allocations: 45.3 kB / 1.396 GB, free: 14.35 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.95e-05/0.5579, allocations: 60 kB / 1.396 GB, free: 14.29 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.5592, allocations: 0.6599 MB / 1.397 GB, free: 13.6 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.5592, allocations: 11.83 kB / 1.397 GB, free: 13.59 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.772e-05/0.5593, allocations: 24 kB / 1.397 GB, free: 13.57 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.5593, allocations: 16 kB / 1.397 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.5605, allocations: 0.5165 MB / 1.397 GB, free: 13.04 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003414/0.5639, allocations: 2.095 MB / 1.4 GB, free: 10.87 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.5651, allocations: 0.5198 MB / 1.4 GB, free: 10.34 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.5651, allocations: 12.44 kB / 1.4 GB, free: 10.33 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000659/0.5658, allocations: 301.3 kB / 1.4 GB, free: 10.03 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=50): time 2.354e-06/0.5658, allocations: 0 / 1.4 GB, free: 10.03 MB / 0.9011 GB Notification: Performance of matching and sorting (n=50): time 0.001498/0.5673, allocations: 0.7092 MB / 1.401 GB, free: 9.312 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.677e-05/0.5674, allocations: 158.7 kB / 1.401 GB, free: 9.121 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004979/0.5679, allocations: 397.3 kB / 1.402 GB, free: 8.727 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 5.012e-05/0.568, allocations: 37.7 kB / 1.402 GB, free: 8.684 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.000276/0.5683, allocations: 321.1 kB / 1.402 GB, free: 8.367 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.5685, allocations: 173.5 kB / 1.402 GB, free: 8.195 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.772e-05/0.5685, allocations: 12 kB / 1.402 GB, free: 8.184 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.5687, allocations: 362.8 kB / 1.402 GB, free: 7.82 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004397/0.5691, allocations: 201 kB / 1.403 GB, free: 7.625 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005267/0.5696, allocations: 311.5 kB / 1.403 GB, free: 7.285 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.5701, allocations: 267.7 kB / 1.403 GB, free: 7.02 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.5702, allocations: 0 / 1.403 GB, free: 7.02 MB / 0.9011 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001169/0.5713, allocations: 0.6171 MB / 1.404 GB, free: 6.391 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 5.579e-05/0.5714, allocations: 33.7 kB / 1.404 GB, free: 6.352 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.5714, allocations: 4 kB / 1.404 GB, free: 6.348 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.522e-05/0.5715, allocations: 8.188 kB / 1.404 GB, free: 6.34 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005027/0.572, allocations: 123.8 kB / 1.404 GB, free: 6.219 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.572, allocations: 4 kB / 1.404 GB, free: 6.215 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004588/0.5725, allocations: 83.55 kB / 1.404 GB, free: 6.133 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/0.5725, allocations: 16 kB / 1.404 GB, free: 6.117 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * 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.0003052/0.5728, allocations: 214.4 kB / 1.404 GB, free: 5.898 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.213e-05/0.5729, allocations: 55.34 kB / 1.404 GB, free: 5.844 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.573, allocations: 65.58 kB / 1.404 GB, free: 5.777 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.5731, allocations: 8 kB / 1.404 GB, free: 5.77 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5731, allocations: 4 kB / 1.404 GB, free: 5.766 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.5731, allocations: 3.984 kB / 1.404 GB, free: 5.762 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.5751, allocations: 1.314 MB / 1.406 GB, free: 4.387 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.5751, allocations: 0 / 1.406 GB, free: 4.387 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005401/0.5756, allocations: 111.9 kB / 1.406 GB, free: 4.277 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.5757, allocations: 0 / 1.406 GB, free: 4.277 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.005e-05/0.5757, allocations: 12 kB / 1.406 GB, free: 4.266 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.5757, allocations: 0 / 1.406 GB, free: 4.266 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5757, allocations: 7.938 kB / 1.406 GB, free: 4.258 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.5772, allocations: 0.9007 MB / 1.407 GB, free: 3.344 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002351/0.5775, allocations: 188.3 kB / 1.407 GB, free: 3.141 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.928e-05/0.5776, allocations: 12 kB / 1.407 GB, free: 3.129 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003915/0.578, allocations: 59.86 kB / 1.407 GB, free: 3.07 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.49e-05/0.5781, allocations: 36.38 kB / 1.407 GB, free: 3.035 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.5781, allocations: 12 kB / 1.407 GB, free: 3.023 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003559/0.5785, allocations: 314.9 kB / 1.407 GB, free: 2.719 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5785, allocations: 4 kB / 1.407 GB, free: 2.715 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004941/0.579, allocations: 151.5 kB / 1.407 GB, free: 2.566 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001907/0.5809, allocations: 1.447 MB / 1.409 GB, free: 1.094 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001044/0.5819, allocations: 0.5561 MB / 1.409 GB, free: 0.5312 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.5819, allocations: 0 / 1.409 GB, free: 0.5312 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004781/0.5824, allocations: 250.3 kB / 1.41 GB, free: 288 kB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000663/0.5831, allocations: 140 kB / 1.41 GB, free: 152 kB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007139/0.5903, allocations: 4.816 MB / 1.414 GB, free: 11.24 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005167/0.5908, allocations: 0.9059 MB / 1.415 GB, free: 10.31 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.000328/0.5911, allocations: 64.53 kB / 1.415 GB, free: 10.25 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003761/0.5915, allocations: 227.3 kB / 1.416 GB, free: 10.03 MB / 0.9167 GB Notification: Performance of SimCode: time 7.22e-07/0.5915, allocations: 0 / 1.416 GB, free: 10.03 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.504/1.096, allocations: 11.52 MB / 1.427 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/1.096, allocations: 185.2 kB / 1.427 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.151/3.247, allocations: 0 / 1.427 GB, free: 182.6 MB / 0.9167 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat does not exist to compare? outputFormat=mat