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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001284/0.001284, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001324/0.001324, allocations: 193 kB / 16.25 MB, free: 6.629 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.529/1.529, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.895/2.895, allocations: 437 MB / 0.7101 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 67.89 kB / 0.8687 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8379/0.8398, allocations: 151.6 MB / 1.017 GB, free: 2.691 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006437/0.8463, allocations: 4.156 MB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00302/0.8493, allocations: 1.266 MB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000572/0.8499, allocations: 23.88 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003979/0.8504, allocations: 99.2 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004169/0.8508, allocations: 150.8 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000917/0.8518, allocations: 383.9 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009667/0.8527, allocations: 0.9592 MB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006932/0.8534, allocations: 462.1 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003845/0.8538, allocations: 326.7 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003638/0.8542, allocations: 334.4 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.8543, allocations: 92 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.8544, allocations: 92 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.8546, allocations: 179.4 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003534/0.855, allocations: 398 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001011/0.856, allocations: 1.03 MB / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.856, allocations: 0 / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.543e-06/0.856, allocations: 0 / 1.026 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.203e-05/0.8561, allocations: 3.938 kB / 1.026 GB, free: 8.734 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.001946/0.858, allocations: 1.069 MB / 1.028 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.8581, allocations: 15.98 kB / 1.028 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.8582, allocations: 91.84 kB / 1.028 GB, free: 7.504 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008699/0.8591, allocations: 0.5534 MB / 1.028 GB, free: 6.906 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.8592, allocations: 45.69 kB / 1.028 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.8593, allocations: 52.38 kB / 1.028 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.8604, allocations: 0.6117 MB / 1.029 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.8605, allocations: 0 / 1.029 GB, free: 6.176 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.849e-05/0.8605, allocations: 28 kB / 1.029 GB, free: 6.148 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.8605, allocations: 12 kB / 1.029 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009644/0.8615, allocations: 457 kB / 1.029 GB, free: 5.691 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003012/0.8645, allocations: 2.02 MB / 1.031 GB, free: 3.598 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009298/0.8655, allocations: 442.1 kB / 1.032 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004553/0.8659, allocations: 246.5 kB / 1.032 GB, free: 2.918 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.136e-05/0.866, allocations: 4.438 kB / 1.032 GB, free: 2.914 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006556/0.8667, allocations: 257.3 kB / 1.032 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=49): time 2.195e-06/0.8667, allocations: 0 / 1.032 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of matching and sorting (n=49): time 0.001322/0.868, allocations: 0.5882 MB / 1.033 GB, free: 2.055 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.8681, allocations: 55.84 kB / 1.033 GB, free: 1.988 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000514/0.8686, allocations: 450 kB / 1.033 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.8686, allocations: 33.7 kB / 1.033 GB, free: 1.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.8689, allocations: 325 kB / 1.034 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.869, allocations: 169.6 kB / 1.034 GB, free: 1.012 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.8692, allocations: 94.16 kB / 1.034 GB, free: 0.9141 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001748/0.8694, allocations: 366.8 kB / 1.034 GB, free: 0.5469 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003835/0.8698, allocations: 165 kB / 1.034 GB, free: 396 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004379/0.8702, allocations: 253.8 kB / 1.035 GB, free: 112 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008476/0.8711, allocations: 452.1 kB / 1.035 GB, free: 15.63 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.8711, allocations: 0 / 1.035 GB, free: 15.63 MB / 0.795 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00105/0.8721, allocations: 0.5624 MB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.309e-05/0.8722, allocations: 37.64 kB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.8722, allocations: 8 kB / 1.036 GB, free: 15.01 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.872e-05/0.8722, allocations: 4 kB / 1.036 GB, free: 15 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005014/0.8727, allocations: 108.1 kB / 1.036 GB, free: 14.9 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.8728, allocations: 11.94 kB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003688/0.8731, allocations: 63.5 kB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/0.8732, allocations: 23.98 kB / 1.036 GB, free: 14.8 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.000284/0.8735, allocations: 206.8 kB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.475e-05/0.8736, allocations: 55.28 kB / 1.036 GB, free: 14.54 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.8737, allocations: 77.52 kB / 1.036 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.8737, allocations: 4 kB / 1.036 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.8737, allocations: 0 / 1.036 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.8738, allocations: 0 / 1.036 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001857/0.8756, allocations: 1.17 MB / 1.037 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.8756, allocations: 4 kB / 1.037 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004831/0.8761, allocations: 99.81 kB / 1.037 GB, free: 13.13 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.784e-06/0.8761, allocations: 4 kB / 1.037 GB, free: 13.12 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.77e-05/0.8762, allocations: 12 kB / 1.037 GB, free: 13.11 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.8762, allocations: 3.938 kB / 1.037 GB, free: 13.11 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.8762, allocations: 3.984 kB / 1.037 GB, free: 13.11 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.8776, allocations: 0.764 MB / 1.038 GB, free: 12.32 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.8778, allocations: 168.3 kB / 1.038 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.34e-05/0.8779, allocations: 8 kB / 1.038 GB, free: 12.13 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003119/0.8782, allocations: 27.97 kB / 1.038 GB, free: 12.11 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.959e-05/0.8783, allocations: 36.38 kB / 1.038 GB, free: 12.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.8783, allocations: 20 kB / 1.038 GB, free: 12.05 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003671/0.8787, allocations: 310.9 kB / 1.039 GB, free: 11.75 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8787, allocations: 0 / 1.039 GB, free: 11.75 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005032/0.8792, allocations: 143.4 kB / 1.039 GB, free: 11.61 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.0001607/0.8794, allocations: 123 kB / 1.039 GB, free: 11.48 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001145/0.8805, allocations: 0.4892 MB / 1.039 GB, free: 10.98 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.8805, allocations: 0 / 1.039 GB, free: 10.98 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004229/0.881, allocations: 214.4 kB / 1.04 GB, free: 10.78 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007946/0.8818, allocations: 163.2 kB / 1.04 GB, free: 10.62 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002969/0.8848, allocations: 1.607 MB / 1.041 GB, free: 8.988 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.8853, allocations: 0.8899 MB / 1.042 GB, free: 8.074 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003105/0.8856, allocations: 68.58 kB / 1.042 GB, free: 8.004 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001261/0.8857, allocations: 39.44 kB / 1.042 GB, free: 7.969 MB / 0.795 GB Notification: Performance of SimCode: time 1.533e-06/0.8858, allocations: 0 / 1.042 GB, free: 7.969 MB / 0.795 GB Notification: Performance of Templates: time 0.0127/0.8985, allocations: 5.82 MB / 1.048 GB, free: 2.223 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=400 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches