Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001559/0.001559, allocations: 100.1 kB / 15.88 MB, free: 12 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.002139/0.00214, allocations: 198.5 kB / 16.79 MB, free: 6.809 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.492/1.492, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.628/2.628, allocations: 437 MB / 0.7106 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 59.91 kB / 0.8692 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8578/0.8594, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006308/0.8657, allocations: 4.144 MB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003088/0.8689, allocations: 1.289 MB / 1.023 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008845/0.8698, allocations: 27.88 kB / 1.023 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0005905/0.8705, allocations: 95.2 kB / 1.023 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000802/0.8713, allocations: 142.8 kB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.8725, allocations: 383.5 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001361/0.8738, allocations: 0.8733 MB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008373/0.8747, allocations: 434.1 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005105/0.8752, allocations: 278.7 kB / 1.025 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004974/0.8757, allocations: 310.3 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001651/0.8759, allocations: 44 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001609/0.8761, allocations: 40 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.8762, allocations: 123.4 kB / 1.025 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0004906/0.8767, allocations: 346.1 kB / 1.026 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008263/0.8775, allocations: 0.8282 MB / 1.026 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.8776, allocations: 0 / 1.026 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.012e-06/0.8776, allocations: 3.938 kB / 1.026 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.071e-05/0.8776, allocations: 0 / 1.026 GB, free: 9.418 MB / 0.7794 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.00236/0.88, allocations: 1.073 MB / 1.027 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.88, allocations: 15.98 kB / 1.027 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.8802, allocations: 83.91 kB / 1.027 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009529/0.8812, allocations: 0.5533 MB / 1.028 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.8813, allocations: 45.69 kB / 1.028 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.8814, allocations: 56.38 kB / 1.028 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.8826, allocations: 0.604 MB / 1.029 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.8826, allocations: 3.938 kB / 1.029 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.518e-05/0.8827, allocations: 31.98 kB / 1.029 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.8827, allocations: 15.94 kB / 1.029 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.8838, allocations: 457 kB / 1.029 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003233/0.887, allocations: 2.008 MB / 1.031 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009273/0.888, allocations: 442.6 kB / 1.032 GB, free: 3.852 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004583/0.8884, allocations: 242.6 kB / 1.032 GB, free: 3.613 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.014e-05/0.8885, allocations: 12.41 kB / 1.032 GB, free: 3.602 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006085/0.8891, allocations: 269.2 kB / 1.032 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 2.073e-06/0.8891, allocations: 0 / 1.032 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001325/0.8904, allocations: 0.5805 MB / 1.033 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.8905, allocations: 55.84 kB / 1.033 GB, free: 2.672 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005652/0.8911, allocations: 454 kB / 1.033 GB, free: 2.219 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.111e-05/0.8911, allocations: 29.7 kB / 1.033 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.8914, allocations: 321 kB / 1.033 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.8915, allocations: 169.6 kB / 1.034 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.8917, allocations: 94.16 kB / 1.034 GB, free: 1.602 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001706/0.8919, allocations: 362.8 kB / 1.034 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004769/0.8923, allocations: 173 kB / 1.034 GB, free: 1.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005017/0.8929, allocations: 249.8 kB / 1.034 GB, free: 0.8008 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008383/0.8937, allocations: 460 kB / 1.035 GB, free: 328 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.8937, allocations: 0 / 1.035 GB, free: 328 kB / 0.7794 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001138/0.8949, allocations: 0.5548 MB / 1.035 GB, free: 15.75 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.264e-05/0.8949, allocations: 39.83 kB / 1.035 GB, free: 15.71 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.895, allocations: 8.25 kB / 1.036 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.895, allocations: 4 kB / 1.036 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004902/0.8955, allocations: 111.8 kB / 1.036 GB, free: 15.59 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.105e-05/0.8955, allocations: 11.97 kB / 1.036 GB, free: 15.57 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003994/0.8959, allocations: 63.5 kB / 1.036 GB, free: 15.51 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/0.896, allocations: 20 kB / 1.036 GB, free: 15.49 MB / 0.795 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.0002884/0.8963, allocations: 209.7 kB / 1.036 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.733e-05/0.8963, allocations: 59.28 kB / 1.036 GB, free: 15.22 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001227/0.8965, allocations: 65.58 kB / 1.036 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.8965, allocations: 4 kB / 1.036 GB, free: 15.15 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.8965, allocations: 7.938 kB / 1.036 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.8965, allocations: 0 / 1.036 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001874/0.8984, allocations: 1.185 MB / 1.037 GB, free: 13.9 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-06/0.8984, allocations: 0 / 1.037 GB, free: 13.9 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000484/0.8989, allocations: 91.89 kB / 1.037 GB, free: 13.81 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.8989, allocations: 4 kB / 1.037 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.764e-05/0.899, allocations: 11.98 kB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.899, allocations: 0 / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.899, allocations: 0 / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.9004, allocations: 0.764 MB / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.9006, allocations: 168.3 kB / 1.038 GB, free: 12.83 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.354e-05/0.9007, allocations: 15.94 kB / 1.038 GB, free: 12.81 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/0.901, allocations: 27.97 kB / 1.038 GB, free: 12.79 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.9011, allocations: 36.39 kB / 1.038 GB, free: 12.75 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.9011, allocations: 15.98 kB / 1.038 GB, free: 12.73 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003617/0.9015, allocations: 306.9 kB / 1.039 GB, free: 12.44 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9015, allocations: 0 / 1.039 GB, free: 12.44 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004969/0.902, allocations: 143.4 kB / 1.039 GB, free: 12.3 MB / 0.795 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.0001508/0.9022, allocations: 117.4 kB / 1.039 GB, free: 12.18 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00101/0.9032, allocations: 485 kB / 1.039 GB, free: 11.69 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.9032, allocations: 0 / 1.039 GB, free: 11.69 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004332/0.9036, allocations: 210.9 kB / 1.039 GB, free: 11.48 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000806/0.9045, allocations: 156.7 kB / 1.04 GB, free: 11.33 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.9075, allocations: 1.641 MB / 1.041 GB, free: 9.656 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005181/0.908, allocations: 0.8902 MB / 1.042 GB, free: 8.742 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001625/0.9082, allocations: 43.44 kB / 1.042 GB, free: 8.703 MB / 0.795 GB Notification: Performance of SimCode: time 6.21e-07/0.9082, allocations: 0 / 1.042 GB, free: 8.703 MB / 0.795 GB Notification: Performance of Templates: time 0.01312/0.9214, allocations: 7.584 MB / 1.05 GB, free: 1.152 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches