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: 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.001003/0.001003, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008624/0.008624, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.628/1.628, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.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.547/2.547, allocations: 390.9 MB / 0.6663 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003618, allocations: 12 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8672/0.8676, allocations: 142.4 MB / 0.955 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004279/0.8719, allocations: 3.727 MB / 0.9587 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002791/0.8747, allocations: 1.265 MB / 0.9599 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005583/0.8753, allocations: 24.19 kB / 0.9599 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.8756, allocations: 95.86 kB / 0.96 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003535/0.876, allocations: 144.9 kB / 0.9602 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008413/0.8768, allocations: 379 kB / 0.9605 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000758/0.8776, allocations: 0.8748 MB / 0.9614 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006121/0.8782, allocations: 429.4 kB / 0.9618 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003105/0.8785, allocations: 237.2 kB / 0.962 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002813/0.8788, allocations: 251.9 kB / 0.9623 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.824e-05/0.8789, allocations: 24.31 kB / 0.9623 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.044e-05/0.879, allocations: 23.31 kB / 0.9623 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.08e-05/0.8791, allocations: 94.83 kB / 0.9624 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.8793, allocations: 334.2 kB / 0.9627 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007262/0.8801, allocations: 0.9609 MB / 0.9636 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.8801, allocations: 0.7188 kB / 0.9636 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.196e-06/0.8801, allocations: 0 / 0.9636 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.979e-06/0.8801, allocations: 8.938 kB / 0.9637 GB, free: 1.07 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.001634/0.8818, allocations: 0.9486 MB / 0.9646 GB, free: 308 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.8818, allocations: 9.156 kB / 0.9646 GB, free: 308 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.882, allocations: 87.16 kB / 0.9647 GB, free: 264 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008567/0.8828, allocations: 0.5556 MB / 0.9652 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.599e-05/0.8829, allocations: 45.73 kB / 0.9653 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.883, allocations: 59.56 kB / 0.9653 GB, free: 15.72 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.8842, allocations: 0.6155 MB / 0.9659 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.8842, allocations: 1.219 kB / 0.9659 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.064e-05/0.8843, allocations: 25.31 kB / 0.9659 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.8843, allocations: 14.62 kB / 0.966 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.8854, allocations: 471 kB / 0.9664 GB, free: 15.08 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0033/0.8887, allocations: 2.019 MB / 0.9684 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.8898, allocations: 458.8 kB / 0.9688 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005123/0.8904, allocations: 249.6 kB / 0.9691 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.8904, allocations: 5.375 kB / 0.9691 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006328/0.891, allocations: 267.5 kB / 0.9693 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 3.076e-06/0.8911, allocations: 0 / 0.9693 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001488/0.8926, allocations: 0.6017 MB / 0.9699 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.8926, allocations: 62.05 kB / 0.97 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006072/0.8932, allocations: 442.8 kB / 0.9704 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.148e-05/0.8933, allocations: 41.42 kB / 0.9704 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.8936, allocations: 325.4 kB / 0.9707 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.8937, allocations: 160.4 kB / 0.9709 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.768e-05/0.8938, allocations: 51 kB / 0.9709 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001809/0.894, allocations: 366.6 kB / 0.9713 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004259/0.8944, allocations: 169.9 kB / 0.9714 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004661/0.8949, allocations: 257.8 kB / 0.9717 GB, free: 11.2 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009046/0.8958, allocations: 462.6 kB / 0.9721 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.8959, allocations: 4.844 kB / 0.9721 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001204/0.8971, allocations: 0.5727 MB / 0.9727 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.056e-05/0.8971, allocations: 40.16 kB / 0.9727 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.8971, allocations: 6.031 kB / 0.9727 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.8972, allocations: 7.734 kB / 0.9728 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005308/0.8977, allocations: 117 kB / 0.9729 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.8977, allocations: 8.375 kB / 0.9729 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004415/0.8982, allocations: 66.28 kB / 0.9729 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/0.8982, allocations: 22 kB / 0.973 GB, free: 10.46 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 (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.0003496/0.8986, allocations: 207.2 kB / 0.9732 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.169e-05/0.8987, allocations: 57.59 kB / 0.9732 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001589/0.8989, allocations: 66.48 kB / 0.9733 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.846e-06/0.8989, allocations: 9.125 kB / 0.9733 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.8989, allocations: 0 / 0.9733 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.8989, allocations: 3.984 kB / 0.9733 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.9009, allocations: 1.19 MB / 0.9744 GB, free: 9.332 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.9009, allocations: 1.094 kB / 0.9744 GB, free: 9.332 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004773/0.9014, allocations: 89.45 kB / 0.9745 GB, free: 9.316 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.9014, allocations: 6.531 kB / 0.9745 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.122e-05/0.9014, allocations: 14.7 kB / 0.9746 GB, free: 9.301 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.9015, allocations: 6.75 kB / 0.9746 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.9015, allocations: 0 / 0.9746 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.903, allocations: 0.7764 MB / 0.9753 GB, free: 8.844 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.9032, allocations: 171.4 kB / 0.9755 GB, free: 8.676 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.485e-05/0.9033, allocations: 11.56 kB / 0.9755 GB, free: 8.668 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003251/0.9036, allocations: 33.09 kB / 0.9755 GB, free: 8.652 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.9037, allocations: 37.3 kB / 0.9756 GB, free: 8.633 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.192e-05/0.9038, allocations: 12.73 kB / 0.9756 GB, free: 8.629 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000414/0.9042, allocations: 307.2 kB / 0.9759 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9042, allocations: 0 / 0.9759 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005792/0.9048, allocations: 141.4 kB / 0.976 GB, free: 8.402 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 (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.0001702/0.9049, allocations: 125.6 kB / 0.9761 GB, free: 8.293 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001095/0.906, allocations: 487.3 kB / 0.9766 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.9061, allocations: 4 kB / 0.9766 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004736/0.9065, allocations: 220 kB / 0.9768 GB, free: 7.949 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008771/0.9074, allocations: 156.1 kB / 0.9769 GB, free: 7.867 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.9106, allocations: 1.688 MB / 0.9786 GB, free: 6.637 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005046/0.9111, allocations: 0.8908 MB / 0.9795 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003331/0.9114, allocations: 64.58 kB / 0.9795 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/0.9116, allocations: 39.44 kB / 0.9796 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of SimCode: time 1.633e-06/0.9116, allocations: 0 / 0.9796 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of Templates: time 0.01174/0.9233, allocations: 5.525 MB / 0.985 GB, free: 216 kB / 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","/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