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.001633/0.001633, allocations: 104.3 kB / 19.7 MB, free: 2.152 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.002026/0.002026, allocations: 215.2 kB / 22.99 MB, free: 4.965 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.531/1.531, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.311/3.311, allocations: 0.49 GB / 0.7959 GB, free: 35.43 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.002064/0.002064, allocations: 67.14 kB / 1.155 GB, free: 25.22 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4116/0.4136, allocations: 176.1 MB / 1.327 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005847/0.4195, allocations: 3.763 MB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002935/0.4224, allocations: 1.321 MB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004156/0.4228, allocations: 35.75 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0004025/0.4232, allocations: 126.8 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003891/0.4236, allocations: 182.4 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009234/0.4245, allocations: 420.8 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001037/0.4256, allocations: 0.9631 MB / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005381/0.4261, allocations: 302.6 kB / 1.334 GB, free: 9.879 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004179/0.4265, allocations: 354.7 kB / 1.334 GB, free: 9.531 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003696/0.4269, allocations: 330.4 kB / 1.335 GB, free: 9.207 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.427, allocations: 95.94 kB / 1.335 GB, free: 9.113 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.4271, allocations: 92 kB / 1.335 GB, free: 9.023 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.4273, allocations: 171.5 kB / 1.335 GB, free: 8.855 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003106/0.4276, allocations: 310.5 kB / 1.335 GB, free: 8.551 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.4287, allocations: 1.066 MB / 1.336 GB, free: 7.48 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4287, allocations: 0 / 1.336 GB, free: 7.48 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.324e-06/0.4287, allocations: 0 / 1.336 GB, free: 7.48 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.024e-05/0.4288, allocations: 0 / 1.336 GB, free: 7.48 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.001998/0.4308, allocations: 1.091 MB / 1.337 GB, free: 6.344 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4308, allocations: 11.97 kB / 1.337 GB, free: 6.332 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.431, allocations: 92.41 kB / 1.337 GB, free: 6.242 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.432, allocations: 0.496 MB / 1.338 GB, free: 5.723 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.506e-05/0.432, allocations: 45.69 kB / 1.338 GB, free: 5.68 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.4321, allocations: 60.38 kB / 1.338 GB, free: 5.621 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.4333, allocations: 0.6619 MB / 1.339 GB, free: 4.922 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.4333, allocations: 0 / 1.339 GB, free: 4.922 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.164e-05/0.4334, allocations: 24 kB / 1.339 GB, free: 4.898 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.4334, allocations: 16 kB / 1.339 GB, free: 4.883 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.4344, allocations: 464.9 kB / 1.339 GB, free: 4.426 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002826/0.4372, allocations: 1.698 MB / 1.341 GB, free: 2.672 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000943/0.4382, allocations: 422 kB / 1.341 GB, free: 2.25 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004557/0.4386, allocations: 230.6 kB / 1.341 GB, free: 2.02 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.4387, allocations: 8.438 kB / 1.341 GB, free: 2.012 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005562/0.4392, allocations: 253.4 kB / 1.342 GB, free: 1.754 MB / 1.029 GB Notification: Performance of pre-optimization done (n=49): time 2.044e-06/0.4392, allocations: 3.938 kB / 1.342 GB, free: 1.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=49): time 0.001358/0.4406, allocations: 0.5885 MB / 1.342 GB, free: 1.156 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.4407, allocations: 59.84 kB / 1.342 GB, free: 1.082 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005373/0.4412, allocations: 434.5 kB / 1.343 GB, free: 0.6484 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.958e-05/0.4412, allocations: 29.7 kB / 1.343 GB, free: 0.6133 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002831/0.4415, allocations: 340.8 kB / 1.343 GB, free: 284 kB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.4417, allocations: 174.5 kB / 1.343 GB, free: 108 kB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.4418, allocations: 94.3 kB / 1.343 GB, free: 8 kB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001999/0.442, allocations: 366.8 kB / 1.344 GB, free: 15.64 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/0.4424, allocations: 194.9 kB / 1.344 GB, free: 15.45 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004681/0.4429, allocations: 276.3 kB / 1.344 GB, free: 15.14 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008498/0.4438, allocations: 459 kB / 1.345 GB, free: 14.66 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4438, allocations: 0 / 1.345 GB, free: 14.66 MB / 1.045 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001129/0.4449, allocations: 0.5865 MB / 1.345 GB, free: 14.05 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/0.4449, allocations: 33.7 kB / 1.345 GB, free: 14.02 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.4449, allocations: 7.938 kB / 1.345 GB, free: 14.01 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.445, allocations: 4 kB / 1.345 GB, free: 14 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005198/0.4455, allocations: 115.8 kB / 1.345 GB, free: 13.89 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.4455, allocations: 4 kB / 1.345 GB, free: 13.89 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003282/0.4458, allocations: 63.59 kB / 1.345 GB, free: 13.82 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.762e-05/0.4459, allocations: 16 kB / 1.345 GB, free: 13.81 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.0002946/0.4462, allocations: 213.8 kB / 1.346 GB, free: 13.59 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.992e-05/0.4462, allocations: 59.64 kB / 1.346 GB, free: 13.53 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001394/0.4464, allocations: 65.39 kB / 1.346 GB, free: 13.47 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.4464, allocations: 4 kB / 1.346 GB, free: 13.46 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.4464, allocations: 8 kB / 1.346 GB, free: 13.46 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.298e-05/0.4464, allocations: 3.984 kB / 1.346 GB, free: 13.45 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/0.4482, allocations: 0.9945 MB / 1.347 GB, free: 12.42 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.4482, allocations: 3.938 kB / 1.347 GB, free: 12.42 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000491/0.4487, allocations: 95.83 kB / 1.347 GB, free: 12.32 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.4487, allocations: 4 kB / 1.347 GB, free: 12.32 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.4487, allocations: 15.98 kB / 1.347 GB, free: 12.3 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4487, allocations: 0 / 1.347 GB, free: 12.3 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4487, allocations: 0 / 1.347 GB, free: 12.3 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.4501, allocations: 0.7652 MB / 1.348 GB, free: 11.52 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/0.4503, allocations: 95.5 kB / 1.348 GB, free: 11.43 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.402e-05/0.4503, allocations: 12 kB / 1.348 GB, free: 11.42 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000279/0.4506, allocations: 23.97 kB / 1.348 GB, free: 11.39 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.4507, allocations: 36.38 kB / 1.348 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.25e-05/0.4508, allocations: 12 kB / 1.348 GB, free: 11.35 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003541/0.4511, allocations: 299.1 kB / 1.348 GB, free: 11.05 MB / 1.045 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4511, allocations: 7.938 kB / 1.348 GB, free: 11.05 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004719/0.4516, allocations: 143.6 kB / 1.348 GB, free: 10.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.0001613/0.4517, allocations: 112.9 kB / 1.348 GB, free: 10.79 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009795/0.4527, allocations: 490.8 kB / 1.349 GB, free: 10.29 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4527, allocations: 4 kB / 1.349 GB, free: 10.29 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004227/0.4531, allocations: 198.4 kB / 1.349 GB, free: 10.09 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007721/0.4539, allocations: 158.5 kB / 1.349 GB, free: 9.945 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/0.4567, allocations: 1.349 MB / 1.35 GB, free: 8.559 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.457, allocations: 288.7 kB / 1.351 GB, free: 8.25 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0002556/0.4572, allocations: 60.53 kB / 1.351 GB, free: 8.188 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.4573, allocations: 47.36 kB / 1.351 GB, free: 8.141 MB / 1.045 GB Notification: Performance of SimCode: time 6.72e-07/0.4573, allocations: 0 / 1.351 GB, free: 8.141 MB / 1.045 GB Notification: Performance of Templates: time 0.01502/0.4724, allocations: 6.682 MB / 1.357 GB, free: 1.609 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 -s cvode -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: 9.73244259999774]