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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.004852/0.004852, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.001057/0.001057, allocations: 191.2 kB / 16.67 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.107/2.107, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 68.08 kB / 0.9504 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7498/0.7509, allocations: 140.4 MB / 1.087 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004718/0.7557, allocations: 4.134 MB / 1.091 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002382/0.7581, allocations: 1.325 MB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004582/0.7586, allocations: 24.41 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003066/0.7589, allocations: 127.5 kB / 1.093 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.7593, allocations: 175.8 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009354/0.7602, allocations: 420.9 kB / 1.093 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001239/0.7615, allocations: 0.9533 MB / 1.094 GB, free: 236 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008359/0.7623, allocations: 462.2 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00052/0.7629, allocations: 329.2 kB / 1.095 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000473/0.7633, allocations: 336.4 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001865/0.7635, allocations: 95.25 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001931/0.7637, allocations: 94.03 kB / 1.096 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001905/0.7639, allocations: 173.7 kB / 1.096 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004462/0.7644, allocations: 394.7 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.7658, allocations: 1.061 MB / 1.097 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.7658, allocations: 1.156 kB / 1.097 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.392e-06/0.7658, allocations: 0 / 1.097 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.036e-05/0.7659, allocations: 0 / 1.097 GB, free: 14.76 MB / 0.8731 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.002332/0.7682, allocations: 1.075 MB / 1.098 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.7683, allocations: 9.375 kB / 1.098 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.7684, allocations: 100.3 kB / 1.098 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.7686, allocations: 85.59 kB / 1.098 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.7696, allocations: 0.5699 MB / 1.099 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.898e-05/0.7697, allocations: 40.97 kB / 1.099 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.7698, allocations: 59.94 kB / 1.099 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.771, allocations: 0.6125 MB / 1.1 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/0.7711, allocations: 0.6875 kB / 1.1 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.715e-05/0.7712, allocations: 25.92 kB / 1.1 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.7712, allocations: 15.31 kB / 1.1 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.7723, allocations: 456.9 kB / 1.1 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00315/0.7755, allocations: 1.995 MB / 1.102 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.7765, allocations: 451.5 kB / 1.103 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005111/0.7771, allocations: 244.8 kB / 1.103 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 3.773e-05/0.7771, allocations: 6.203 kB / 1.103 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006087/0.7777, allocations: 261.3 kB / 1.103 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=49): time 3.096e-06/0.7777, allocations: 0 / 1.103 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49): time 0.001546/0.7793, allocations: 0.582 MB / 1.104 GB, free: 11.03 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.7794, allocations: 62.69 kB / 1.104 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005408/0.7799, allocations: 448.9 kB / 1.104 GB, free: 10.74 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.179e-05/0.78, allocations: 37.53 kB / 1.104 GB, free: 10.7 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/0.7802, allocations: 322.7 kB / 1.104 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.7804, allocations: 167.5 kB / 1.105 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.7806, allocations: 92.78 kB / 1.105 GB, free: 10.26 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.7807, allocations: 363.8 kB / 1.105 GB, free: 9.926 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/0.7811, allocations: 166.3 kB / 1.105 GB, free: 9.867 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004571/0.7816, allocations: 253.4 kB / 1.105 GB, free: 9.715 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008438/0.7824, allocations: 447.3 kB / 1.106 GB, free: 9.449 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.7825, allocations: 9.281 kB / 1.106 GB, free: 9.441 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001179/0.7836, allocations: 0.5605 MB / 1.106 GB, free: 9.176 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.737e-05/0.7837, allocations: 35.2 kB / 1.106 GB, free: 9.145 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.7837, allocations: 2.75 kB / 1.106 GB, free: 9.145 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.7837, allocations: 8.984 kB / 1.106 GB, free: 9.141 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005264/0.7843, allocations: 108.5 kB / 1.107 GB, free: 9.133 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.7843, allocations: 9.484 kB / 1.107 GB, free: 9.129 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004025/0.7847, allocations: 56.61 kB / 1.107 GB, free: 9.098 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.7848, allocations: 18.39 kB / 1.107 GB, free: 9.094 MB / 0.8731 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003234/0.7851, allocations: 212 kB / 1.107 GB, free: 8.918 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.954e-05/0.7852, allocations: 64.75 kB / 1.107 GB, free: 8.879 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001504/0.7853, allocations: 65.28 kB / 1.107 GB, free: 8.836 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.7854, allocations: 9.406 kB / 1.107 GB, free: 8.832 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.7854, allocations: 0 / 1.107 GB, free: 8.832 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/0.7854, allocations: 3.969 kB / 1.107 GB, free: 8.832 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.7874, allocations: 1.17 MB / 1.108 GB, free: 8.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.7875, allocations: 8.453 kB / 1.108 GB, free: 8.152 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005165/0.788, allocations: 94.14 kB / 1.108 GB, free: 8.145 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.788, allocations: 2.406 kB / 1.108 GB, free: 8.145 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.214e-05/0.788, allocations: 12.75 kB / 1.108 GB, free: 8.137 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.7881, allocations: 5.281 kB / 1.108 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.7881, allocations: 1.312 kB / 1.108 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.7896, allocations: 0.7591 MB / 1.109 GB, free: 7.734 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002127/0.7898, allocations: 168.9 kB / 1.109 GB, free: 7.582 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.7899, allocations: 11.59 kB / 1.109 GB, free: 7.574 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002937/0.7902, allocations: 28.55 kB / 1.109 GB, free: 7.562 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.7903, allocations: 33.53 kB / 1.109 GB, free: 7.559 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.114e-05/0.7903, allocations: 14.5 kB / 1.109 GB, free: 7.555 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003856/0.7907, allocations: 313.1 kB / 1.11 GB, free: 7.398 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7907, allocations: 0 / 1.11 GB, free: 7.398 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005136/0.7912, allocations: 146.4 kB / 1.11 GB, free: 7.355 MB / 0.8731 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001708/0.7929, allocations: 1.323 MB / 1.111 GB, free: 6.41 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009919/0.794, allocations: 483 kB / 1.111 GB, free: 6.207 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.794, allocations: 4 kB / 1.111 GB, free: 6.203 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0005315/0.7945, allocations: 212.4 kB / 1.112 GB, free: 6.137 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008568/0.7954, allocations: 155 kB / 1.112 GB, free: 6.086 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007585/0.803, allocations: 4.786 MB / 1.116 GB, free: 3.258 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.8035, allocations: 0.8886 MB / 1.117 GB, free: 2.555 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003318/0.8038, allocations: 64.61 kB / 1.117 GB, free: 2.535 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002886/0.8041, allocations: 217 kB / 1.118 GB, free: 2.371 MB / 0.8731 GB Notification: Performance of SimCode: time 7.22e-07/0.8041, allocations: 0 / 1.118 GB, free: 2.371 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03872/0.8428, allocations: 11.31 MB / 1.129 GB, free: 1.246 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.423/9.265, allocations: 12.08 kB / 1.129 GB, free: 1.238 MB / 0.8731 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/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) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches