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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005682/0.005682, allocations: 109.1 kB / 15.71 MB, free: 5.531 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.001166/0.001166, allocations: 188.9 kB / 16.64 MB, free: 5.473 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.443/1.443, allocations: 222.9 MB / 240.3 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.482/2.482, allocations: 390.3 MB / 0.6648 GB, free: 140 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 65.66 kB / 0.9509 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.381, allocations: 140.4 MB / 1.088 GB, free: 1.418 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005526/0.3866, allocations: 4.134 MB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002873/0.3895, allocations: 1.325 MB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005293/0.3901, allocations: 23.94 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003784/0.3905, allocations: 130.7 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003822/0.3909, allocations: 174.4 kB / 1.094 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009715/0.3919, allocations: 419.2 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009759/0.3929, allocations: 0.9593 MB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000646/0.3936, allocations: 454.1 kB / 1.095 GB, free: 9.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003882/0.394, allocations: 334.7 kB / 1.096 GB, free: 9.441 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003479/0.3943, allocations: 338.3 kB / 1.096 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.3944, allocations: 88 kB / 1.096 GB, free: 9.023 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.3945, allocations: 92 kB / 1.096 GB, free: 8.934 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.3947, allocations: 175.5 kB / 1.096 GB, free: 8.762 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003172/0.395, allocations: 402 kB / 1.097 GB, free: 8.367 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009114/0.3959, allocations: 1.055 MB / 1.098 GB, free: 7.309 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.3959, allocations: 0 / 1.098 GB, free: 7.309 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.084e-06/0.396, allocations: 0 / 1.098 GB, free: 7.309 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.189e-05/0.396, allocations: 3.984 kB / 1.098 GB, free: 7.305 MB / 0.8575 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.001765/0.3977, allocations: 1.073 MB / 1.099 GB, free: 6.172 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.3978, allocations: 12.03 kB / 1.099 GB, free: 6.16 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.3979, allocations: 87.89 kB / 1.099 GB, free: 6.074 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009022/0.3989, allocations: 0.5612 MB / 1.099 GB, free: 5.473 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.768e-05/0.3989, allocations: 41.69 kB / 1.099 GB, free: 5.434 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.102e-05/0.399, allocations: 64.36 kB / 1.1 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.4, allocations: 0.6117 MB / 1.1 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.4, allocations: 0 / 1.1 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.298e-05/0.4001, allocations: 24 kB / 1.1 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.4001, allocations: 16 kB / 1.1 GB, free: 4.695 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000923/0.4011, allocations: 461 kB / 1.101 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002623/0.4037, allocations: 1.993 MB / 1.103 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008817/0.4046, allocations: 437.5 kB / 1.103 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000427/0.405, allocations: 250.5 kB / 1.103 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.4051, allocations: 4.438 kB / 1.103 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005187/0.4056, allocations: 261.2 kB / 1.103 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=49): time 3.988e-06/0.4056, allocations: 0 / 1.103 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=49): time 0.001289/0.4069, allocations: 0.5922 MB / 1.104 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.407, allocations: 59.84 kB / 1.104 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004765/0.4074, allocations: 446 kB / 1.105 GB, free: 116 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.4075, allocations: 37.7 kB / 1.105 GB, free: 72 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000238/0.4077, allocations: 320.3 kB / 1.105 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.4079, allocations: 165.6 kB / 1.105 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001366/0.408, allocations: 98.16 kB / 1.105 GB, free: 15.49 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.4082, allocations: 362.8 kB / 1.105 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003648/0.4085, allocations: 165 kB / 1.106 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004069/0.4089, allocations: 257.8 kB / 1.106 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007687/0.4097, allocations: 448 kB / 1.106 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4097, allocations: 0 / 1.106 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001031/0.4108, allocations: 0.5585 MB / 1.107 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.701e-05/0.4108, allocations: 39.67 kB / 1.107 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.4108, allocations: 4 kB / 1.107 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.4109, allocations: 4 kB / 1.107 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.4114, allocations: 115.8 kB / 1.107 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.4114, allocations: 4.25 kB / 1.107 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.4117, allocations: 59.5 kB / 1.107 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.679e-05/0.4118, allocations: 20 kB / 1.107 GB, free: 13.39 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.000274/0.4121, allocations: 210.8 kB / 1.107 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.153e-05/0.4121, allocations: 63.27 kB / 1.107 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.4123, allocations: 61.59 kB / 1.107 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.4123, allocations: 4 kB / 1.107 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.4123, allocations: 4 kB / 1.107 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.4123, allocations: 7.969 kB / 1.107 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.414, allocations: 1.174 MB / 1.109 GB, free: 11.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.414, allocations: 4 kB / 1.109 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004768/0.4145, allocations: 99.81 kB / 1.109 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.922e-06/0.4145, allocations: 0 / 1.109 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.175e-05/0.4145, allocations: 19.94 kB / 1.109 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.4145, allocations: 0 / 1.109 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4146, allocations: 0 / 1.109 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.4159, allocations: 0.7574 MB / 1.109 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001648/0.416, allocations: 172.3 kB / 1.11 GB, free: 10.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.009e-05/0.4161, allocations: 8 kB / 1.11 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.4164, allocations: 28.09 kB / 1.11 GB, free: 10.7 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.4165, allocations: 32.39 kB / 1.11 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.4165, allocations: 23.92 kB / 1.11 GB, free: 10.64 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003384/0.4169, allocations: 306.9 kB / 1.11 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.814e-06/0.4169, allocations: 0 / 1.11 GB, free: 10.34 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004828/0.4174, allocations: 151.4 kB / 1.11 GB, free: 10.2 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.0001603/0.4175, allocations: 118.2 kB / 1.11 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009606/0.4185, allocations: 481 kB / 1.111 GB, free: 9.59 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4185, allocations: 0.5 kB / 1.111 GB, free: 9.59 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003923/0.4189, allocations: 218.4 kB / 1.111 GB, free: 9.379 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007577/0.4197, allocations: 157.6 kB / 1.111 GB, free: 9.23 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.4223, allocations: 1.326 MB / 1.112 GB, free: 7.871 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.4227, allocations: 0.8899 MB / 1.113 GB, free: 6.953 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002784/0.423, allocations: 64.59 kB / 1.113 GB, free: 6.887 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/0.4231, allocations: 47.44 kB / 1.113 GB, free: 6.844 MB / 0.8731 GB Notification: Performance of SimCode: time 8.42e-07/0.4231, allocations: 0 / 1.113 GB, free: 6.844 MB / 0.8731 GB Notification: Performance of Templates: time 0.01094/0.4341, allocations: 5.908 MB / 1.119 GB, free: 1.016 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (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 & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches