Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001629/0.001629, allocations: 104.2 kB / 19.74 MB, free: 2.066 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.002064/0.002064, allocations: 220.3 kB / 23.05 MB, free: 4.844 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.511/1.511, allocations: 230.6 MB / 256.8 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.237/3.237, allocations: 0.49 GB / 0.7959 GB, free: 35.4 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_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_12_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.002043/0.002043, allocations: 68.58 kB / 1.155 GB, free: 25.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.4228, allocations: 176.1 MB / 1.327 GB, free: 0.9766 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005801/0.4286, allocations: 3.763 MB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002862/0.4314, allocations: 1.321 MB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003996/0.4318, allocations: 27.81 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003925/0.4322, allocations: 130.7 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004036/0.4326, allocations: 182.4 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009249/0.4335, allocations: 425.5 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001034/0.4346, allocations: 0.9553 MB / 1.334 GB, free: 10.16 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005283/0.4351, allocations: 294.6 kB / 1.334 GB, free: 9.852 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004211/0.4355, allocations: 338.7 kB / 1.334 GB, free: 9.52 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003779/0.4359, allocations: 298.3 kB / 1.335 GB, free: 9.227 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.436, allocations: 88 kB / 1.335 GB, free: 9.141 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.4361, allocations: 92 kB / 1.335 GB, free: 9.051 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.4363, allocations: 179.4 kB / 1.335 GB, free: 8.875 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003347/0.4366, allocations: 302.5 kB / 1.335 GB, free: 8.578 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.4378, allocations: 1.07 MB / 1.336 GB, free: 7.504 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4378, allocations: 4 kB / 1.336 GB, free: 7.5 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.303e-06/0.4378, allocations: 4 kB / 1.336 GB, free: 7.496 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.174e-05/0.4378, allocations: 3.938 kB / 1.336 GB, free: 7.492 MB / 1.029 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.002048/0.4398, allocations: 1.084 MB / 1.337 GB, free: 6.363 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.4399, allocations: 8.031 kB / 1.337 GB, free: 6.355 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.44, allocations: 88.42 kB / 1.337 GB, free: 6.27 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001017/0.4411, allocations: 0.496 MB / 1.338 GB, free: 5.754 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.879e-05/0.4411, allocations: 49.69 kB / 1.338 GB, free: 5.707 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.933e-05/0.4412, allocations: 60.38 kB / 1.338 GB, free: 5.648 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.4424, allocations: 0.6658 MB / 1.339 GB, free: 4.945 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.4424, allocations: 4 kB / 1.339 GB, free: 4.941 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.668e-05/0.4425, allocations: 24 kB / 1.339 GB, free: 4.918 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.4425, allocations: 12 kB / 1.339 GB, free: 4.906 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001002/0.4435, allocations: 457 kB / 1.339 GB, free: 4.457 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002842/0.4463, allocations: 1.702 MB / 1.341 GB, free: 2.699 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009319/0.4472, allocations: 429.2 kB / 1.341 GB, free: 2.27 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004451/0.4477, allocations: 222.6 kB / 1.341 GB, free: 2.047 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.942e-05/0.4477, allocations: 4.438 kB / 1.341 GB, free: 2.043 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005634/0.4483, allocations: 261.3 kB / 1.342 GB, free: 1.777 MB / 1.029 GB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.4483, allocations: 4 kB / 1.342 GB, free: 1.773 MB / 1.029 GB Notification: Performance of matching and sorting (n=49): time 0.00134/0.4496, allocations: 0.5846 MB / 1.342 GB, free: 1.184 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.4497, allocations: 55.84 kB / 1.342 GB, free: 1.113 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005547/0.4503, allocations: 434.5 kB / 1.343 GB, free: 0.6758 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.4503, allocations: 37.7 kB / 1.343 GB, free: 0.6328 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000265/0.4506, allocations: 336.8 kB / 1.343 GB, free: 308 kB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/0.4507, allocations: 178.5 kB / 1.343 GB, free: 128 kB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.4509, allocations: 98.28 kB / 1.343 GB, free: 24 kB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002105/0.4511, allocations: 362.8 kB / 1.344 GB, free: 15.66 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004086/0.4515, allocations: 194.9 kB / 1.344 GB, free: 15.46 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004719/0.452, allocations: 280.4 kB / 1.344 GB, free: 15.16 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008569/0.4528, allocations: 447 kB / 1.345 GB, free: 14.69 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4528, allocations: 0 / 1.345 GB, free: 14.69 MB / 1.045 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00108/0.4539, allocations: 0.5903 MB / 1.345 GB, free: 14.08 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.558e-05/0.454, allocations: 29.7 kB / 1.345 GB, free: 14.04 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.454, allocations: 15.86 kB / 1.345 GB, free: 14.03 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.454, allocations: 4 kB / 1.345 GB, free: 14.02 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004907/0.4545, allocations: 111.8 kB / 1.345 GB, free: 13.91 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.4545, allocations: 12.25 kB / 1.345 GB, free: 13.9 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003104/0.4548, allocations: 55.61 kB / 1.345 GB, free: 13.85 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.892e-05/0.4549, allocations: 23.98 kB / 1.345 GB, free: 13.82 MB / 1.045 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.0002796/0.4551, allocations: 207.8 kB / 1.346 GB, free: 13.61 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.815e-05/0.4552, allocations: 59.66 kB / 1.346 GB, free: 13.55 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/0.4554, allocations: 69.38 kB / 1.346 GB, free: 13.49 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.4554, allocations: 4 kB / 1.346 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.4554, allocations: 0 / 1.346 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4554, allocations: 4 kB / 1.346 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001722/0.4571, allocations: 0.9983 MB / 1.347 GB, free: 12.45 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.4571, allocations: 3.938 kB / 1.347 GB, free: 12.44 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004625/0.4576, allocations: 95.88 kB / 1.347 GB, free: 12.35 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.4576, allocations: 0 / 1.347 GB, free: 12.35 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.497e-05/0.4576, allocations: 12 kB / 1.347 GB, free: 12.34 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.4576, allocations: 8 kB / 1.347 GB, free: 12.33 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4576, allocations: 0 / 1.347 GB, free: 12.33 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.459, allocations: 0.7652 MB / 1.348 GB, free: 11.55 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/0.4592, allocations: 99.44 kB / 1.348 GB, free: 11.45 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.495e-05/0.4592, allocations: 12 kB / 1.348 GB, free: 11.44 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002695/0.4595, allocations: 27.97 kB / 1.348 GB, free: 11.41 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.93e-05/0.4596, allocations: 32.38 kB / 1.348 GB, free: 11.38 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.254e-05/0.4596, allocations: 19.98 kB / 1.348 GB, free: 11.36 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003765/0.46, allocations: 295.1 kB / 1.348 GB, free: 11.07 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.46, allocations: 0 / 1.348 GB, free: 11.07 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004842/0.4605, allocations: 143.6 kB / 1.348 GB, free: 10.93 MB / 1.045 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.0001642/0.4607, allocations: 112.3 kB / 1.348 GB, free: 10.82 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009942/0.4617, allocations: 494.3 kB / 1.349 GB, free: 10.32 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4617, allocations: 0 / 1.349 GB, free: 10.32 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004058/0.4621, allocations: 202.4 kB / 1.349 GB, free: 10.12 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007566/0.4628, allocations: 151.6 kB / 1.349 GB, free: 9.973 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002901/0.4657, allocations: 1.378 MB / 1.35 GB, free: 8.551 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/0.4661, allocations: 300.6 kB / 1.351 GB, free: 8.23 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.4662, allocations: 43.44 kB / 1.351 GB, free: 8.188 MB / 1.045 GB Notification: Performance of SimCode: time 5.01e-07/0.4662, allocations: 4 kB / 1.351 GB, free: 8.184 MB / 1.045 GB Notification: Performance of Templates: time 0.01362/0.4798, allocations: 7.8 MB / 1.358 GB, free: 436 kB / 1.045 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.37583371787332]