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.001042/0.001042, allocations: 99.62 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.0009306/0.0009306, allocations: 177.3 kB / 15.95 MB, free: 216 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.31/1.31, allocations: 223.2 MB / 239.9 MB, free: 5.43 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.293/2.293, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003381/0.0003382, allocations: 8 kB / 0.8145 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6141/0.6144, allocations: 142.3 MB / 0.9535 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003473/0.6179, allocations: 3.411 MB / 0.9568 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001928/0.6199, allocations: 1.238 MB / 0.958 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003061/0.6202, allocations: 27.25 kB / 0.9581 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.887e-05/0.6203, allocations: 62.97 kB / 0.9581 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005413/0.6209, allocations: 219.7 kB / 0.9583 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005536/0.6214, allocations: 310.1 kB / 0.9586 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006488/0.6221, allocations: 0.5895 MB / 0.9592 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004372/0.6225, allocations: 297.2 kB / 0.9595 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002875/0.6228, allocations: 229.8 kB / 0.9597 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.6231, allocations: 245.3 kB / 0.9599 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.914e-05/0.6232, allocations: 23.09 kB / 0.96 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.322e-05/0.6232, allocations: 24.16 kB / 0.96 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.739e-05/0.6233, allocations: 94.47 kB / 0.9601 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.6235, allocations: 164.8 kB / 0.9602 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005538/0.624, allocations: 0.8049 MB / 0.961 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.594e-06/0.624, allocations: 0 / 0.961 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.944e-06/0.624, allocations: 0 / 0.961 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.6241, allocations: 1 kB / 0.961 GB, free: 2.309 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.001514/0.6256, allocations: 0.9523 MB / 0.962 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.6256, allocations: 9.125 kB / 0.962 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001353/0.6258, allocations: 92.58 kB / 0.9621 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000735/0.6265, allocations: 0.5322 MB / 0.9626 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.237e-05/0.6266, allocations: 49.47 kB / 0.9626 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.01e-05/0.6267, allocations: 58.34 kB / 0.9627 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009702/0.6276, allocations: 0.5989 MB / 0.9633 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.6277, allocations: 0 / 0.9633 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.935e-05/0.6277, allocations: 26.03 kB / 0.9633 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.799e-05/0.6277, allocations: 13.69 kB / 0.9633 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009457/0.6287, allocations: 475.2 kB / 0.9637 GB, free: 344 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002819/0.6315, allocations: 2.025 MB / 0.9657 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009133/0.6325, allocations: 451 kB / 0.9662 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.6325, allocations: 9.984 kB / 0.9662 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005641/0.6331, allocations: 263 kB / 0.9664 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.515e-06/0.6331, allocations: 1.062 kB / 0.9664 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001305/0.6344, allocations: 0.5987 MB / 0.967 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.6344, allocations: 57.22 kB / 0.9671 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004929/0.6349, allocations: 435.3 kB / 0.9675 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.797e-05/0.635, allocations: 40.7 kB / 0.9675 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.6352, allocations: 325.5 kB / 0.9678 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.6354, allocations: 164.9 kB / 0.968 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-05/0.6354, allocations: 11.12 kB / 0.968 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.6355, allocations: 366.8 kB / 0.9683 GB, free: 12.87 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000391/0.6359, allocations: 167.4 kB / 0.9685 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004331/0.6364, allocations: 254.9 kB / 0.9687 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004449/0.6368, allocations: 224.1 kB / 0.969 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.6368, allocations: 0.875 kB / 0.969 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001052/0.6379, allocations: 0.5723 MB / 0.9695 GB, free: 12.17 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.447e-05/0.6379, allocations: 31.77 kB / 0.9695 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.638, allocations: 6.688 kB / 0.9696 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.638, allocations: 8.625 kB / 0.9696 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005107/0.6385, allocations: 116.7 kB / 0.9697 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.6385, allocations: 4.469 kB / 0.9697 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003676/0.6389, allocations: 70.94 kB / 0.9697 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.6389, allocations: 21.36 kB / 0.9698 GB, free: 12.05 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.0002532/0.6392, allocations: 212.2 kB / 0.97 GB, free: 11.87 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-05/0.6393, allocations: 58.64 kB / 0.97 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.6394, allocations: 65.77 kB / 0.9701 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.6394, allocations: 5.531 kB / 0.9701 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-06/0.6394, allocations: 0 / 0.9701 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.6394, allocations: 0 / 0.9701 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.6412, allocations: 1.193 MB / 0.9713 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.6412, allocations: 0 / 0.9713 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004786/0.6417, allocations: 106.1 kB / 0.9714 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.6417, allocations: 1.75 kB / 0.9714 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.6417, allocations: 7.625 kB / 0.9714 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.6417, allocations: 5.891 kB / 0.9714 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.6417, allocations: 0 / 0.9714 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.6431, allocations: 0.7694 MB / 0.9721 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/0.6433, allocations: 175.6 kB / 0.9723 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.594e-05/0.6433, allocations: 14.91 kB / 0.9723 GB, free: 10.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003055/0.6436, allocations: 34.06 kB / 0.9723 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.294e-05/0.6437, allocations: 35.95 kB / 0.9724 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.6438, allocations: 12.89 kB / 0.9724 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003296/0.6441, allocations: 303.7 kB / 0.9727 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6441, allocations: 3.938 kB / 0.9727 GB, free: 10.02 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004739/0.6446, allocations: 146.2 kB / 0.9728 GB, free: 9.973 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.0001354/0.6447, allocations: 121 kB / 0.9729 GB, free: 9.867 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00092/0.6457, allocations: 491.6 kB / 0.9734 GB, free: 9.617 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.6457, allocations: 0 / 0.9734 GB, free: 9.617 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004199/0.6461, allocations: 214.9 kB / 0.9736 GB, free: 9.527 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006453/0.6468, allocations: 135.5 kB / 0.9737 GB, free: 9.461 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.6495, allocations: 1.619 MB / 0.9753 GB, free: 8.293 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.6499, allocations: 0.9012 MB / 0.9762 GB, free: 7.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002843/0.6502, allocations: 68.92 kB / 0.9763 GB, free: 7.461 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.6503, allocations: 41.98 kB / 0.9763 GB, free: 7.449 MB / 0.7325 GB Notification: Performance of SimCode: time 3.7e-07/0.6504, allocations: 0 / 0.9763 GB, free: 7.449 MB / 0.7325 GB Notification: Performance of Templates: time 0.009986/0.6603, allocations: 5.337 MB / 0.9815 GB, free: 3.047 MB / 0.7325 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","../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches