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.001162/0.001163, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.539/2.539, allocations: 390.2 MB / 0.6647 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 55.91 kB / 0.8125 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7137/0.7156, allocations: 140.4 MB / 0.9496 GB, free: 9.41 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005102/0.7208, allocations: 4.131 MB / 0.9536 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00266/0.7235, allocations: 1.312 MB / 0.9549 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005161/0.724, allocations: 26.03 kB / 0.9549 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003487/0.7244, allocations: 127.1 kB / 0.955 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.7248, allocations: 179.4 kB / 0.9552 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008392/0.7256, allocations: 419.9 kB / 0.9556 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008751/0.7265, allocations: 0.9563 MB / 0.9565 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005839/0.7271, allocations: 467.8 kB / 0.957 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003211/0.7274, allocations: 324.6 kB / 0.9573 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002716/0.7277, allocations: 336.9 kB / 0.9576 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001221/0.7279, allocations: 90.5 kB / 0.9577 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.728, allocations: 90.47 kB / 0.9578 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.7281, allocations: 174.7 kB / 0.958 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002824/0.7284, allocations: 396.7 kB / 0.9583 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007486/0.7291, allocations: 1.031 MB / 0.9593 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.7291, allocations: 0 / 0.9593 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.763e-06/0.7292, allocations: 4 kB / 0.9593 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.7292, allocations: 1.031 kB / 0.9593 GB, free: 1.801 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.001679/0.7309, allocations: 1.082 MB / 0.9604 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.7309, allocations: 9.844 kB / 0.9604 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.7311, allocations: 81.53 kB / 0.9605 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007147/0.7318, allocations: 0.5559 MB / 0.961 GB, free: 400 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.881e-05/0.7318, allocations: 44.91 kB / 0.9611 GB, free: 376 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.571e-05/0.7319, allocations: 63.78 kB / 0.9611 GB, free: 352 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.733, allocations: 0.6066 MB / 0.9617 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.733, allocations: 1.125 kB / 0.9617 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.613e-05/0.7331, allocations: 28.7 kB / 0.9618 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.7331, allocations: 14.97 kB / 0.9618 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009709/0.7341, allocations: 457.4 kB / 0.9622 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00288/0.737, allocations: 2.012 MB / 0.9642 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009044/0.7379, allocations: 438.9 kB / 0.9646 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004514/0.7383, allocations: 248.5 kB / 0.9648 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.218e-05/0.7384, allocations: 8.797 kB / 0.9648 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005959/0.739, allocations: 266 kB / 0.9651 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.826e-06/0.739, allocations: 0 / 0.9651 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.00135/0.7404, allocations: 0.5836 MB / 0.9657 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.7404, allocations: 57.31 kB / 0.9657 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004971/0.7409, allocations: 448 kB / 0.9661 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.741, allocations: 36.23 kB / 0.9662 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002296/0.7412, allocations: 321.4 kB / 0.9665 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.7413, allocations: 161.8 kB / 0.9666 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.7415, allocations: 98.41 kB / 0.9667 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.7417, allocations: 370.8 kB / 0.9671 GB, free: 12.06 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003997/0.7421, allocations: 164.1 kB / 0.9672 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.7425, allocations: 254.2 kB / 0.9675 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007961/0.7433, allocations: 448.3 kB / 0.9679 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.7433, allocations: 0 / 0.9679 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001059/0.7444, allocations: 0.5583 MB / 0.9685 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.881e-05/0.7445, allocations: 40.12 kB / 0.9685 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.7445, allocations: 2.406 kB / 0.9685 GB, free: 11.17 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.7445, allocations: 8.969 kB / 0.9685 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004726/0.745, allocations: 113.4 kB / 0.9686 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.745, allocations: 8.844 kB / 0.9686 GB, free: 11.13 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.7453, allocations: 57.8 kB / 0.9687 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/0.7454, allocations: 22.64 kB / 0.9687 GB, free: 11.09 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.0003999/0.7458, allocations: 201.9 kB / 0.9689 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.822e-05/0.7459, allocations: 58.22 kB / 0.969 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.746, allocations: 62.73 kB / 0.969 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.746, allocations: 5.125 kB / 0.969 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.7461, allocations: 0 / 0.969 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.7461, allocations: 4 kB / 0.969 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001835/0.7479, allocations: 1.179 MB / 0.9702 GB, free: 9.965 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.7479, allocations: 0 / 0.9702 GB, free: 9.965 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004726/0.7484, allocations: 100.1 kB / 0.9703 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.736e-06/0.7484, allocations: 2.188 kB / 0.9703 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.511e-05/0.7485, allocations: 14.56 kB / 0.9703 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.7485, allocations: 2.406 kB / 0.9703 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.7485, allocations: 0 / 0.9703 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.75, allocations: 0.7587 MB / 0.971 GB, free: 9.473 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002476/0.7503, allocations: 178.9 kB / 0.9712 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.793e-05/0.7504, allocations: 11.34 kB / 0.9712 GB, free: 9.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002953/0.7507, allocations: 22.83 kB / 0.9712 GB, free: 9.277 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.7508, allocations: 39.97 kB / 0.9713 GB, free: 9.254 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.304e-05/0.7509, allocations: 13.47 kB / 0.9713 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005173/0.7514, allocations: 306.9 kB / 0.9716 GB, free: 9.062 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7514, allocations: 0 / 0.9716 GB, free: 9.062 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005984/0.752, allocations: 138.4 kB / 0.9717 GB, free: 9.027 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.0001987/0.7522, allocations: 126.8 kB / 0.9718 GB, free: 8.914 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001248/0.7535, allocations: 0.4926 MB / 0.9723 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.7535, allocations: 0.5 kB / 0.9723 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004657/0.7539, allocations: 218.8 kB / 0.9725 GB, free: 8.551 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008147/0.7548, allocations: 158.7 kB / 0.9727 GB, free: 8.469 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003211/0.758, allocations: 1.352 MB / 0.974 GB, free: 7.578 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006956/0.7587, allocations: 0.8979 MB / 0.9749 GB, free: 6.785 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003151/0.759, allocations: 58.8 kB / 0.9749 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.7591, allocations: 44 kB / 0.975 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of SimCode: time 5.2e-07/0.7592, allocations: 0 / 0.975 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of Templates: time 0.01422/0.7734, allocations: 5.911 MB / 0.9807 GB, free: 1.621 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