Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001315/0.001315, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001495/0.001495, allocations: 215.6 kB / 23.01 MB, free: 4.609 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.465/1.465, allocations: 230.6 MB / 256.8 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.32/3.32, allocations: 0.505 GB / 0.8108 GB, free: 22.06 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.001993/0.001993, allocations: 62.64 kB / 1.178 GB, free: 17.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3756, allocations: 180.2 MB / 1.354 GB, free: 8.121 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006179/0.3818, allocations: 4.19 MB / 1.358 GB, free: 3.91 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003108/0.3849, allocations: 1.364 MB / 1.359 GB, free: 2.539 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005152/0.3854, allocations: 31.81 kB / 1.36 GB, free: 2.508 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0004098/0.3858, allocations: 122.7 kB / 1.36 GB, free: 2.387 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0004142/0.3862, allocations: 186.4 kB / 1.36 GB, free: 2.203 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009932/0.3872, allocations: 436 kB / 1.36 GB, free: 1.781 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001095/0.3883, allocations: 0.9594 MB / 1.361 GB, free: 0.8203 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005451/0.3889, allocations: 302.6 kB / 1.361 GB, free: 0.5039 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004285/0.3893, allocations: 354.7 kB / 1.362 GB, free: 160 kB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004102/0.3897, allocations: 326.4 kB / 1.362 GB, free: 15.84 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.3898, allocations: 92 kB / 1.362 GB, free: 15.75 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.39, allocations: 88 kB / 1.362 GB, free: 15.66 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.3901, allocations: 183.4 kB / 1.362 GB, free: 15.48 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0003668/0.3905, allocations: 390.1 kB / 1.363 GB, free: 15.1 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.3917, allocations: 1.062 MB / 1.364 GB, free: 14.03 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3917, allocations: 4 kB / 1.364 GB, free: 14.03 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3917, allocations: 0 / 1.364 GB, free: 14.03 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.197e-05/0.3917, allocations: 0 / 1.364 GB, free: 14.03 MB / 1.061 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.001968/0.3936, allocations: 1.084 MB / 1.365 GB, free: 12.9 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.3937, allocations: 12.03 kB / 1.365 GB, free: 12.89 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.3939, allocations: 84.42 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009686/0.3948, allocations: 0.4999 MB / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.704e-05/0.3949, allocations: 49.67 kB / 1.366 GB, free: 12.23 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.823e-05/0.395, allocations: 56.38 kB / 1.366 GB, free: 12.18 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.3961, allocations: 0.6117 MB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.032e-05/0.3961, allocations: 3.953 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.417e-05/0.3962, allocations: 27.98 kB / 1.366 GB, free: 11.51 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.729e-05/0.3962, allocations: 15.98 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.3973, allocations: 461 kB / 1.367 GB, free: 11.04 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003138/0.4004, allocations: 1.943 MB / 1.369 GB, free: 9.039 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009239/0.4013, allocations: 422.1 kB / 1.369 GB, free: 8.613 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000461/0.4018, allocations: 222.1 kB / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.005e-05/0.4018, allocations: 12.38 kB / 1.369 GB, free: 8.383 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005584/0.4024, allocations: 261.3 kB / 1.369 GB, free: 8.113 MB / 1.061 GB Notification: Performance of pre-optimization done (n=49): time 2.354e-06/0.4024, allocations: 0 / 1.369 GB, free: 8.113 MB / 1.061 GB Notification: Performance of matching and sorting (n=49): time 0.001332/0.4037, allocations: 0.5853 MB / 1.37 GB, free: 7.527 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/0.4038, allocations: 59.84 kB / 1.37 GB, free: 7.457 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000541/0.4043, allocations: 446 kB / 1.371 GB, free: 7.012 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.407e-05/0.4044, allocations: 37.7 kB / 1.371 GB, free: 6.969 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002879/0.4047, allocations: 332.8 kB / 1.371 GB, free: 6.637 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001539/0.4048, allocations: 178.5 kB / 1.371 GB, free: 6.461 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.405, allocations: 90.34 kB / 1.371 GB, free: 6.363 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001947/0.4052, allocations: 366.8 kB / 1.371 GB, free: 5.996 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003944/0.4056, allocations: 165.2 kB / 1.372 GB, free: 5.836 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004603/0.406, allocations: 254.7 kB / 1.372 GB, free: 5.559 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008549/0.4069, allocations: 451 kB / 1.372 GB, free: 5.078 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.4069, allocations: 0 / 1.372 GB, free: 5.078 MB / 1.061 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001104/0.408, allocations: 0.5612 MB / 1.373 GB, free: 4.508 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 5.159e-05/0.408, allocations: 43.97 kB / 1.373 GB, free: 4.461 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.408, allocations: 0 / 1.373 GB, free: 4.461 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.4081, allocations: 4 kB / 1.373 GB, free: 4.457 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005136/0.4086, allocations: 115.8 kB / 1.373 GB, free: 4.344 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.4086, allocations: 4 kB / 1.373 GB, free: 4.34 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/0.4089, allocations: 63.86 kB / 1.373 GB, free: 4.277 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.839e-05/0.409, allocations: 23.92 kB / 1.373 GB, free: 4.254 MB / 1.061 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.0002852/0.4092, allocations: 209.7 kB / 1.373 GB, free: 4.039 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.303e-05/0.4093, allocations: 63.56 kB / 1.373 GB, free: 3.977 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.4095, allocations: 65.58 kB / 1.373 GB, free: 3.914 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.4095, allocations: 4 kB / 1.373 GB, free: 3.91 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.4095, allocations: 0 / 1.373 GB, free: 3.91 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.4095, allocations: 4 kB / 1.373 GB, free: 3.906 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/0.4115, allocations: 1.15 MB / 1.375 GB, free: 2.707 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.4115, allocations: 3.984 kB / 1.375 GB, free: 2.703 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004888/0.412, allocations: 91.89 kB / 1.375 GB, free: 2.613 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/0.412, allocations: 3.984 kB / 1.375 GB, free: 2.609 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.738e-05/0.412, allocations: 15.98 kB / 1.375 GB, free: 2.594 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.412, allocations: 4 kB / 1.375 GB, free: 2.59 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.412, allocations: 7.938 kB / 1.375 GB, free: 2.582 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.4135, allocations: 0.7573 MB / 1.375 GB, free: 1.809 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/0.4137, allocations: 95.58 kB / 1.375 GB, free: 1.715 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.098e-05/0.4138, allocations: 12 kB / 1.376 GB, free: 1.703 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.414, allocations: 23.97 kB / 1.376 GB, free: 1.68 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.4142, allocations: 36.38 kB / 1.376 GB, free: 1.641 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.893e-05/0.4142, allocations: 16 kB / 1.376 GB, free: 1.625 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003908/0.4146, allocations: 310.9 kB / 1.376 GB, free: 1.324 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4146, allocations: 0 / 1.376 GB, free: 1.324 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0005078/0.4151, allocations: 139.6 kB / 1.376 GB, free: 1.188 MB / 1.061 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.0001984/0.4153, allocations: 121.4 kB / 1.376 GB, free: 1.062 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009613/0.4162, allocations: 460.6 kB / 1.377 GB, free: 0.5977 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.4162, allocations: 0 / 1.377 GB, free: 0.5977 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0004161/0.4167, allocations: 206.9 kB / 1.377 GB, free: 408 kB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007692/0.4174, allocations: 164.8 kB / 1.377 GB, free: 244 kB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.4203, allocations: 1.388 MB / 1.378 GB, free: 14.81 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005621/0.4209, allocations: 0.89 MB / 1.379 GB, free: 13.89 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.421, allocations: 39.44 kB / 1.379 GB, free: 13.86 MB / 1.076 GB Notification: Performance of SimCode: time 6.21e-07/0.421, allocations: 0 / 1.379 GB, free: 13.86 MB / 1.076 GB Notification: Performance of Templates: time 0.0126/0.4336, allocations: 7.673 MB / 1.387 GB, free: 6.223 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.717863673024112]