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.0008706/0.0008706, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001227/0.001227, allocations: 172.7 kB / 15.95 MB, free: 208 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.473/1.473, allocations: 223.3 MB / 240 MB, free: 5.418 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.506/2.506, allocations: 390.9 MB / 0.666 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003885/0.0003886, allocations: 11.98 kB / 0.8153 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.965/0.9654, allocations: 142.4 MB / 0.9544 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004272/0.9697, allocations: 3.532 MB / 0.9579 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002486/0.9722, allocations: 1.24 MB / 0.9591 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000411/0.9727, allocations: 19.53 kB / 0.9591 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002408/0.9729, allocations: 84.95 kB / 0.9592 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002771/0.9732, allocations: 136.7 kB / 0.9593 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006945/0.9739, allocations: 291.8 kB / 0.9596 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007161/0.9746, allocations: 0.8371 MB / 0.9604 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004688/0.9751, allocations: 301.7 kB / 0.9607 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003482/0.9755, allocations: 228.7 kB / 0.9609 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003708/0.9758, allocations: 236.9 kB / 0.9611 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.538e-05/0.9759, allocations: 23.22 kB / 0.9612 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.783e-05/0.976, allocations: 28.03 kB / 0.9612 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.9762, allocations: 94.77 kB / 0.9613 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.9763, allocations: 152.7 kB / 0.9614 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0008973/0.9772, allocations: 0.803 MB / 0.9622 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.9773, allocations: 1.031 kB / 0.9622 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.023e-06/0.9773, allocations: 0 / 0.9622 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.293e-05/0.9773, allocations: 0 / 0.9622 GB, free: 1.734 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.001915/0.9792, allocations: 0.9687 MB / 0.9632 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/0.9793, allocations: 9.25 kB / 0.9632 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.9795, allocations: 88.92 kB / 0.9633 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008268/0.9803, allocations: 0.5328 MB / 0.9638 GB, free: 444 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-05/0.9804, allocations: 40.69 kB / 0.9638 GB, free: 424 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.9805, allocations: 62.67 kB / 0.9639 GB, free: 400 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.9817, allocations: 0.6071 MB / 0.9645 GB, free: 0 / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.494e-05/0.9817, allocations: 3.859 kB / 0.9645 GB, free: 16 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.496e-05/0.9818, allocations: 23.78 kB / 0.9645 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.9818, allocations: 13.22 kB / 0.9645 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.9829, allocations: 474.5 kB / 0.965 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/0.9861, allocations: 2.015 MB / 0.9669 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.9871, allocations: 459.6 kB / 0.9674 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005124/0.9876, allocations: 248 kB / 0.9676 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.568e-05/0.9877, allocations: 5.594 kB / 0.9676 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006517/0.9883, allocations: 269.8 kB / 0.9679 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 3.607e-06/0.9884, allocations: 0 / 0.9679 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001398/0.9898, allocations: 0.5952 MB / 0.9684 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.839e-05/0.9898, allocations: 65.36 kB / 0.9685 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005524/0.9904, allocations: 435.9 kB / 0.9689 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.112e-05/0.9904, allocations: 36.05 kB / 0.969 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002906/0.9907, allocations: 328.8 kB / 0.9693 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001752/0.9909, allocations: 165.9 kB / 0.9694 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/0.9909, allocations: 10 kB / 0.9694 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002071/0.9912, allocations: 371.7 kB / 0.9698 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003859/0.9916, allocations: 162.7 kB / 0.9699 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/0.992, allocations: 260.5 kB / 0.9702 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004361/0.9925, allocations: 221.1 kB / 0.9704 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.9925, allocations: 1.5 kB / 0.9704 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00113/0.9936, allocations: 0.5711 MB / 0.971 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.764e-05/0.9937, allocations: 34.8 kB / 0.971 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.9937, allocations: 2.438 kB / 0.971 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.9937, allocations: 4.906 kB / 0.971 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005359/0.9942, allocations: 115.4 kB / 0.9711 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/0.9943, allocations: 8.625 kB / 0.9711 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004532/0.9947, allocations: 67.97 kB / 0.9712 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.9948, allocations: 16.84 kB / 0.9712 GB, free: 11.34 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.0003336/0.9951, allocations: 212.8 kB / 0.9714 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.993e-05/0.9953, allocations: 61.45 kB / 0.9715 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001489/0.9954, allocations: 61.75 kB / 0.9715 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.9954, allocations: 5.625 kB / 0.9715 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/0.9954, allocations: 3.984 kB / 0.9715 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.9955, allocations: 1.125 kB / 0.9715 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002077/0.9975, allocations: 1.187 MB / 0.9727 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.9976, allocations: 0.9688 kB / 0.9727 GB, free: 10.21 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004751/0.998, allocations: 98.03 kB / 0.9728 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.9981, allocations: 1.969 kB / 0.9728 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.29e-05/0.9981, allocations: 15.09 kB / 0.9728 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.9981, allocations: 5.906 kB / 0.9728 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.9981, allocations: 1.156 kB / 0.9728 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.9997, allocations: 0.7769 MB / 0.9736 GB, free: 9.711 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/0.9999, allocations: 175.5 kB / 0.9737 GB, free: 9.539 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.584e-05/1, allocations: 10.34 kB / 0.9737 GB, free: 9.531 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002982/1, allocations: 37.69 kB / 0.9738 GB, free: 9.512 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/1, allocations: 37.23 kB / 0.9738 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/1, allocations: 13 kB / 0.9738 GB, free: 9.488 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004158/1.001, allocations: 307.1 kB / 0.9741 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/1.001, allocations: 0 / 0.9741 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005539/1.001, allocations: 145.9 kB / 0.9743 GB, free: 9.254 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.000163/1.002, allocations: 111.8 kB / 0.9744 GB, free: 9.156 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00102/1.003, allocations: 495.8 kB / 0.9748 GB, free: 8.902 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/1.003, allocations: 0.5 kB / 0.9748 GB, free: 8.902 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004427/1.003, allocations: 219.5 kB / 0.9751 GB, free: 8.805 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007887/1.004, allocations: 146 kB / 0.9752 GB, free: 8.727 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003126/1.007, allocations: 1.612 MB / 0.9768 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005127/1.008, allocations: 0.8945 MB / 0.9776 GB, free: 6.777 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003074/1.008, allocations: 67.89 kB / 0.9777 GB, free: 6.738 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/1.008, allocations: 38.69 kB / 0.9777 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of SimCode: time 4.91e-07/1.008, allocations: 3.938 kB / 0.9777 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of Templates: time 0.01179/1.02, allocations: 5.349 MB / 0.983 GB, free: 1.836 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","/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