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.00159/0.00159, 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.001794/0.001794, allocations: 220.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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.828 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.193/3.193, allocations: 0.4892 GB / 0.7951 GB, free: 35.72 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.002091/0.002091, allocations: 68.12 kB / 1.154 GB, free: 25.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3446, allocations: 176.1 MB / 1.326 GB, free: 1.953 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006085/0.3507, allocations: 3.767 MB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002885/0.3535, allocations: 1.313 MB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003524/0.3539, allocations: 27.81 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.00036/0.3542, allocations: 130.7 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003749/0.3546, allocations: 186.4 kB / 1.332 GB, free: 12.51 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009161/0.3555, allocations: 428.1 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001081/0.3566, allocations: 0.9554 MB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005832/0.3572, allocations: 294.5 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004486/0.3577, allocations: 342.7 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003771/0.358, allocations: 294.3 kB / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.3582, allocations: 96 kB / 1.334 GB, free: 10.11 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.3583, allocations: 88 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.3584, allocations: 179.4 kB / 1.334 GB, free: 9.844 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003168/0.3588, allocations: 310.5 kB / 1.334 GB, free: 9.539 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001223/0.36, allocations: 1.07 MB / 1.335 GB, free: 8.465 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.36, allocations: 0 / 1.335 GB, free: 8.465 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.224e-06/0.36, allocations: 0 / 1.335 GB, free: 8.465 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.362e-05/0.36, allocations: 0 / 1.335 GB, free: 8.465 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.002071/0.3621, allocations: 1.08 MB / 1.337 GB, free: 7.34 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.3621, allocations: 12.03 kB / 1.337 GB, free: 7.328 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.3623, allocations: 84.42 kB / 1.337 GB, free: 7.246 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.3633, allocations: 0.5077 MB / 1.337 GB, free: 6.715 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.852e-05/0.3634, allocations: 41.69 kB / 1.337 GB, free: 6.676 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.98e-05/0.3635, allocations: 60.36 kB / 1.337 GB, free: 6.617 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001198/0.3647, allocations: 0.6658 MB / 1.338 GB, free: 5.914 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.3647, allocations: 0 / 1.338 GB, free: 5.914 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/0.3648, allocations: 24 kB / 1.338 GB, free: 5.891 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.3648, allocations: 16 kB / 1.338 GB, free: 5.875 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.3659, allocations: 460.9 kB / 1.338 GB, free: 5.422 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002972/0.3689, allocations: 1.702 MB / 1.34 GB, free: 3.664 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.3699, allocations: 429.2 kB / 1.34 GB, free: 3.234 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004935/0.3704, allocations: 226.6 kB / 1.341 GB, free: 3.008 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.3704, allocations: 8.438 kB / 1.341 GB, free: 3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000577/0.371, allocations: 257.4 kB / 1.341 GB, free: 2.738 MB / 1.029 GB Notification: Performance of pre-optimization done (n=49): time 2.184e-06/0.371, allocations: 0 / 1.341 GB, free: 2.738 MB / 1.029 GB Notification: Performance of matching and sorting (n=49): time 0.00142/0.3724, allocations: 0.5884 MB / 1.341 GB, free: 2.145 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.3725, allocations: 63.84 kB / 1.342 GB, free: 2.066 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005349/0.373, allocations: 426.5 kB / 1.342 GB, free: 1.641 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.422e-05/0.373, allocations: 37.7 kB / 1.342 GB, free: 1.598 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002993/0.3733, allocations: 336.8 kB / 1.342 GB, free: 1.266 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.3735, allocations: 174.5 kB / 1.342 GB, free: 1.094 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.3737, allocations: 94.3 kB / 1.343 GB, free: 0.9961 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002473/0.3739, allocations: 358.8 kB / 1.343 GB, free: 0.6367 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004442/0.3744, allocations: 198.9 kB / 1.343 GB, free: 448 kB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00051/0.3749, allocations: 284.3 kB / 1.343 GB, free: 128 kB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009463/0.3758, allocations: 451.1 kB / 1.344 GB, free: 15.65 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3758, allocations: 3.938 kB / 1.344 GB, free: 15.64 MB / 1.045 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001206/0.377, allocations: 0.5863 MB / 1.344 GB, free: 15.04 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.878e-05/0.3771, allocations: 37.69 kB / 1.344 GB, free: 15 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3771, allocations: 8.188 kB / 1.344 GB, free: 14.99 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.3771, allocations: 4 kB / 1.344 GB, free: 14.98 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005396/0.3777, allocations: 111.9 kB / 1.344 GB, free: 14.88 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.3777, allocations: 7.938 kB / 1.345 GB, free: 14.87 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.378, allocations: 59.61 kB / 1.345 GB, free: 14.81 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.3781, allocations: 19.98 kB / 1.345 GB, free: 14.79 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.000287/0.3783, allocations: 202.7 kB / 1.345 GB, free: 14.58 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.675e-05/0.3784, allocations: 59.67 kB / 1.345 GB, free: 14.52 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/0.3786, allocations: 69.38 kB / 1.345 GB, free: 14.46 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.3786, allocations: 7.938 kB / 1.345 GB, free: 14.45 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3786, allocations: 0 / 1.345 GB, free: 14.45 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3786, allocations: 0 / 1.345 GB, free: 14.45 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001868/0.3805, allocations: 1.002 MB / 1.346 GB, free: 13.41 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3805, allocations: 3.938 kB / 1.346 GB, free: 13.41 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005093/0.381, allocations: 99.88 kB / 1.346 GB, free: 13.31 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.381, allocations: 0 / 1.346 GB, free: 13.31 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.161e-05/0.381, allocations: 8 kB / 1.346 GB, free: 13.3 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.156e-05/0.381, allocations: 7.938 kB / 1.346 GB, free: 13.3 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.381, allocations: 0 / 1.346 GB, free: 13.3 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.3825, allocations: 0.7536 MB / 1.347 GB, free: 12.53 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.3827, allocations: 103.5 kB / 1.347 GB, free: 12.43 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-05/0.3828, allocations: 15.98 kB / 1.347 GB, free: 12.41 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002951/0.3831, allocations: 19.98 kB / 1.347 GB, free: 12.39 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.3832, allocations: 40.36 kB / 1.347 GB, free: 12.35 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.983e-05/0.3832, allocations: 12.12 kB / 1.347 GB, free: 12.34 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003764/0.3836, allocations: 299.1 kB / 1.347 GB, free: 12.05 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3836, allocations: 0 / 1.347 GB, free: 12.05 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004838/0.3841, allocations: 143.6 kB / 1.347 GB, free: 11.91 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.0001467/0.3842, allocations: 119.1 kB / 1.347 GB, free: 11.79 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001038/0.3853, allocations: 482.4 kB / 1.348 GB, free: 11.3 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3853, allocations: 0 / 1.348 GB, free: 11.3 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004723/0.3857, allocations: 210.8 kB / 1.348 GB, free: 11.09 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008234/0.3866, allocations: 150.7 kB / 1.348 GB, free: 10.95 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002985/0.3896, allocations: 1.386 MB / 1.35 GB, free: 9.52 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.3899, allocations: 292.7 kB / 1.35 GB, free: 9.207 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.3901, allocations: 47.38 kB / 1.35 GB, free: 9.16 MB / 1.045 GB Notification: Performance of SimCode: time 5.61e-07/0.3901, allocations: 0 / 1.35 GB, free: 9.16 MB / 1.045 GB Notification: Performance of Templates: time 0.01224/0.4023, allocations: 7.803 MB / 1.358 GB, free: 1.398 MB / 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.047495868988335]