Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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.001186/0.001186, allocations: 98.53 kB / 15.05 MB, free: 1.105 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.001314/0.001314, allocations: 177.3 kB / 15.94 MB, free: 228 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.358/1.358, allocations: 223.2 MB / 239.9 MB, free: 5.293 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.351/2.351, allocations: 390.3 MB / 0.6653 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004634/0.0004637, allocations: 12 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6583/0.6587, allocations: 142.3 MB / 0.9536 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004257/0.6631, allocations: 3.414 MB / 0.9569 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002166/0.6653, allocations: 1.227 MB / 0.9581 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003759/0.6657, allocations: 24.16 kB / 0.9581 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.6658, allocations: 58.89 kB / 0.9582 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005553/0.6663, allocations: 222.3 kB / 0.9584 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006447/0.667, allocations: 305.2 kB / 0.9587 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007321/0.6677, allocations: 0.586 MB / 0.9593 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004137/0.6682, allocations: 302.2 kB / 0.9596 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/0.6684, allocations: 233.9 kB / 0.9598 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.6687, allocations: 240.9 kB / 0.96 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.799e-05/0.6687, allocations: 23.38 kB / 0.96 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.651e-05/0.6688, allocations: 23.38 kB / 0.9601 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.988e-05/0.6689, allocations: 94.78 kB / 0.9601 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001114/0.669, allocations: 157.4 kB / 0.9603 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005834/0.6696, allocations: 0.8007 MB / 0.9611 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.6696, allocations: 0 / 0.9611 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.343e-06/0.6696, allocations: 9.062 kB / 0.9611 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.455e-05/0.6696, allocations: 0 / 0.9611 GB, free: 2.238 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001499/0.6712, allocations: 0.9562 MB / 0.962 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.6712, allocations: 9.062 kB / 0.962 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.797e-05/0.6713, allocations: 97.61 kB / 0.9621 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.6714, allocations: 88.77 kB / 0.9622 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007146/0.6722, allocations: 0.5362 MB / 0.9627 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.6722, allocations: 41.12 kB / 0.9628 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.879e-05/0.6723, allocations: 58.28 kB / 0.9628 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009912/0.6733, allocations: 0.6065 MB / 0.9634 GB, free: 436 kB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.6733, allocations: 5.016 kB / 0.9634 GB, free: 432 kB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.674e-05/0.6734, allocations: 24.91 kB / 0.9634 GB, free: 412 kB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.435e-05/0.6734, allocations: 18.91 kB / 0.9635 GB, free: 408 kB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009162/0.6743, allocations: 466.7 kB / 0.9639 GB, free: 180 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002883/0.6772, allocations: 2.02 MB / 0.9659 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009712/0.6782, allocations: 459.8 kB / 0.9663 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.951e-05/0.6783, allocations: 9.516 kB / 0.9663 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006209/0.6789, allocations: 262.9 kB / 0.9666 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 4.979e-06/0.6789, allocations: 4.766 kB / 0.9666 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001456/0.6804, allocations: 0.5994 MB / 0.9672 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.6804, allocations: 60.88 kB / 0.9672 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005719/0.681, allocations: 431.6 kB / 0.9676 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.927e-05/0.6811, allocations: 41.06 kB / 0.9677 GB, free: 13.5 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.6813, allocations: 321.2 kB / 0.968 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.6815, allocations: 172.8 kB / 0.9682 GB, free: 13.06 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.527e-05/0.6815, allocations: 10.22 kB / 0.9682 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.6817, allocations: 363.7 kB / 0.9685 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003882/0.682, allocations: 166.5 kB / 0.9687 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/0.6825, allocations: 250.8 kB / 0.9689 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004589/0.683, allocations: 233.3 kB / 0.9691 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.683, allocations: 0 / 0.9691 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00113/0.6841, allocations: 0.5653 MB / 0.9697 GB, free: 12 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.536e-05/0.6842, allocations: 36.61 kB / 0.9697 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.6842, allocations: 1.312 kB / 0.9697 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/0.6842, allocations: 9.328 kB / 0.9697 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005248/0.6847, allocations: 116.1 kB / 0.9698 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.6848, allocations: 11.92 kB / 0.9698 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.6852, allocations: 67.97 kB / 0.9699 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.313e-05/0.6852, allocations: 16.88 kB / 0.9699 GB, free: 11.89 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,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 (65): * Single equations (assignments): 64 * 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.0003489/0.6856, allocations: 218.8 kB / 0.9701 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.889e-05/0.6857, allocations: 58.14 kB / 0.9702 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.6858, allocations: 62.86 kB / 0.9703 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.6858, allocations: 4.875 kB / 0.9703 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.6859, allocations: 0 / 0.9703 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.6859, allocations: 5.516 kB / 0.9703 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001867/0.6877, allocations: 1.191 MB / 0.9714 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.6878, allocations: 1.281 kB / 0.9714 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000479/0.6882, allocations: 98.42 kB / 0.9715 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.6883, allocations: 1.719 kB / 0.9715 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/0.6883, allocations: 15.27 kB / 0.9715 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.6883, allocations: 1.094 kB / 0.9715 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6883, allocations: 1.156 kB / 0.9715 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.6897, allocations: 0.7684 MB / 0.9723 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.6899, allocations: 175.6 kB / 0.9725 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.623e-05/0.69, allocations: 15.25 kB / 0.9725 GB, free: 10.08 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000299/0.6903, allocations: 38.16 kB / 0.9725 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.644e-05/0.6904, allocations: 40.12 kB / 0.9725 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.6904, allocations: 13.47 kB / 0.9726 GB, free: 10.03 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003686/0.6908, allocations: 303 kB / 0.9728 GB, free: 9.844 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6908, allocations: 0 / 0.9728 GB, free: 9.844 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000519/0.6913, allocations: 141.7 kB / 0.973 GB, free: 9.805 MB / 0.7325 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.trigger.y,$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 (49): * Single equations (assignments): 47 * 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.001571/0.6929, allocations: 1.332 MB / 0.9743 GB, free: 8.812 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009265/0.6939, allocations: 492.2 kB / 0.9748 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.6939, allocations: 0 / 0.9748 GB, free: 8.555 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004104/0.6943, allocations: 222.1 kB / 0.975 GB, free: 8.457 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006673/0.695, allocations: 138.8 kB / 0.9751 GB, free: 8.387 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007845/0.7028, allocations: 4.761 MB / 0.9797 GB, free: 4.738 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006737/0.7036, allocations: 0.9058 MB / 0.9806 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0004167/0.704, allocations: 60.59 kB / 0.9807 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003618/0.7044, allocations: 219.4 kB / 0.9809 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of SimCode: time 2.605e-06/0.7044, allocations: 0 / 0.9809 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0255/0.7299, allocations: 10.63 MB / 0.9913 GB, free: 9.109 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/0.7301, allocations: 184.7 kB / 0.9915 GB, free: 8.871 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/2.499, allocations: 0 / 0.9915 GB, free: 8.871 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat does not exist to compare? outputFormat=mat