Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 225.4 kB / 23 MB, free: 4.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.756/2.756, allocations: 476 MB / 0.7707 GB, free: 4.93 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002168, allocations: 71.22 kB / 1.118 GB, free: 41.19 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3434, allocations: 170 MB / 1.284 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.00607/0.3495, allocations: 3.761 MB / 1.287 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002865/0.3524, allocations: 1.332 MB / 1.289 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00056/0.3529, allocations: 31.81 kB / 1.289 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0004347/0.3534, allocations: 126.7 kB / 1.289 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0005319/0.3539, allocations: 182.4 kB / 1.289 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009968/0.3549, allocations: 416.6 kB / 1.289 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001137/0.356, allocations: 0.9593 MB / 1.29 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005544/0.3566, allocations: 282.6 kB / 1.291 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004809/0.3571, allocations: 354.7 kB / 1.291 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004587/0.3575, allocations: 290.4 kB / 1.291 GB, free: 4.293 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.3577, allocations: 99.94 kB / 1.291 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.3579, allocations: 92 kB / 1.291 GB, free: 4.105 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001804/0.358, allocations: 171.4 kB / 1.292 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000392/0.3584, allocations: 310.5 kB / 1.292 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001235/0.3597, allocations: 1.066 MB / 1.293 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3597, allocations: 0 / 1.293 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3597, allocations: 0 / 1.293 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.629e-05/0.3597, allocations: 0 / 1.293 GB, free: 2.562 MB / 0.9825 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.002469/0.3622, allocations: 1.088 MB / 1.294 GB, free: 1.43 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.3622, allocations: 11.97 kB / 1.294 GB, free: 1.418 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.3624, allocations: 88.42 kB / 1.294 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.3635, allocations: 0.496 MB / 1.295 GB, free: 0.8086 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.11e-05/0.3635, allocations: 49.69 kB / 1.295 GB, free: 0.7617 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.3636, allocations: 60.38 kB / 1.295 GB, free: 0.7031 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.3648, allocations: 0.658 MB / 1.295 GB, free: 8 kB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.3648, allocations: 0 / 1.295 GB, free: 8 kB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.402e-05/0.3649, allocations: 24.05 kB / 1.295 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.3649, allocations: 19.98 kB / 1.295 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.366, allocations: 460.9 kB / 1.296 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002962/0.3689, allocations: 1.702 MB / 1.297 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009655/0.3699, allocations: 417.5 kB / 1.298 GB, free: 13.34 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004784/0.3704, allocations: 222.1 kB / 1.298 GB, free: 13.12 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.532e-05/0.3704, allocations: 8.438 kB / 1.298 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005881/0.371, allocations: 257.4 kB / 1.298 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.371, allocations: 0 / 1.298 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49): time 0.001407/0.3724, allocations: 0.5884 MB / 1.299 GB, free: 12.25 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.3725, allocations: 59.84 kB / 1.299 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005385/0.373, allocations: 438.5 kB / 1.299 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.059e-05/0.373, allocations: 29.7 kB / 1.299 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002933/0.3733, allocations: 344.8 kB / 1.3 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.3735, allocations: 166.5 kB / 1.3 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.3736, allocations: 98.34 kB / 1.3 GB, free: 11.1 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0002087/0.3738, allocations: 366.8 kB / 1.3 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004216/0.3743, allocations: 190.9 kB / 1.301 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005226/0.3748, allocations: 276.4 kB / 1.301 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008972/0.3757, allocations: 459 kB / 1.301 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3757, allocations: 0 / 1.301 GB, free: 9.762 MB / 0.9981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00115/0.3768, allocations: 0.5863 MB / 1.302 GB, free: 9.152 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.256e-05/0.3769, allocations: 33.7 kB / 1.302 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3769, allocations: 4.188 kB / 1.302 GB, free: 9.109 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.3769, allocations: 12 kB / 1.302 GB, free: 9.098 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.3774, allocations: 119.8 kB / 1.302 GB, free: 8.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.3774, allocations: 4 kB / 1.302 GB, free: 8.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.3778, allocations: 59.64 kB / 1.302 GB, free: 8.918 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.631e-05/0.3778, allocations: 16 kB / 1.302 GB, free: 8.902 MB / 0.9981 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 (conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$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.0002755/0.3781, allocations: 213.7 kB / 1.302 GB, free: 8.684 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.54e-05/0.3782, allocations: 55.62 kB / 1.302 GB, free: 8.629 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001427/0.3783, allocations: 69.39 kB / 1.302 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3783, allocations: 4 kB / 1.302 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3783, allocations: 4 kB / 1.302 GB, free: 8.555 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3783, allocations: 3.984 kB / 1.302 GB, free: 8.551 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/0.3801, allocations: 0.9944 MB / 1.303 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.3801, allocations: 3.938 kB / 1.303 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004887/0.3806, allocations: 95.89 kB / 1.303 GB, free: 7.418 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.3806, allocations: 4 kB / 1.303 GB, free: 7.414 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.342e-05/0.3807, allocations: 11.98 kB / 1.303 GB, free: 7.402 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3807, allocations: 4 kB / 1.303 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3807, allocations: 3.984 kB / 1.303 GB, free: 7.395 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.3822, allocations: 0.7574 MB / 1.304 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.3824, allocations: 107.4 kB / 1.304 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.235e-05/0.3825, allocations: 12 kB / 1.304 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003097/0.3828, allocations: 23.97 kB / 1.304 GB, free: 6.484 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/0.3829, allocations: 36.38 kB / 1.304 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.269e-05/0.3829, allocations: 15.98 kB / 1.304 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003641/0.3833, allocations: 295.1 kB / 1.305 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/0.3833, allocations: 0 / 1.305 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004627/0.3837, allocations: 143.6 kB / 1.305 GB, free: 6.008 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (conNoRes.conPID.I.y,plaNoRes.cap1.T,plaNoRes.cap.T,conWitRes.conPID.I.y,plaWitRes.cap1.T,plaWitRes.cap.T) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,TSet.count,TSet.T_start,conNoRes.trigger.y) * 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.0001477/0.3839, allocations: 118 kB / 1.305 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001001/0.3849, allocations: 490.3 kB / 1.305 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3849, allocations: 0 / 1.305 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000446/0.3853, allocations: 206.9 kB / 1.306 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007472/0.3861, allocations: 151.2 kB / 1.306 GB, free: 5.047 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/0.3889, allocations: 1.386 MB / 1.307 GB, free: 3.625 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.3893, allocations: 292.7 kB / 1.307 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.3894, allocations: 43.42 kB / 1.307 GB, free: 3.273 MB / 0.9981 GB Notification: Performance of SimCode: time 5.41e-07/0.3894, allocations: 3.938 kB / 1.307 GB, free: 3.27 MB / 0.9981 GB Notification: Performance of Templates: time 0.01274/0.4022, allocations: 7.809 MB / 1.315 GB, free: 11.5 MB / 1.014 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.021632638759911]