Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.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.001311/0.001311, allocations: 110.2 kB / 19.69 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.001603/0.001603, allocations: 216.9 kB / 23.01 MB, free: 4.566 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.502/1.502, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.333/3.333, allocations: 0.505 GB / 0.8108 GB, free: 22.04 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.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") [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.002698/0.002698, allocations: 71.8 kB / 1.178 GB, free: 16.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4185/0.4212, allocations: 180.2 MB / 1.354 GB, free: 7.938 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005657/0.4268, allocations: 3.755 MB / 1.358 GB, free: 4.16 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.003081/0.4299, allocations: 1.367 MB / 1.359 GB, free: 2.785 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004143/0.4303, allocations: 35.75 kB / 1.359 GB, free: 2.75 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0003778/0.4307, allocations: 134.5 kB / 1.359 GB, free: 2.617 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0005461/0.4313, allocations: 178.6 kB / 1.359 GB, free: 2.441 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001293/0.4326, allocations: 0.5912 MB / 1.36 GB, free: 1.859 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001159/0.4337, allocations: 0.9643 MB / 1.361 GB, free: 0.8945 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000462/0.4342, allocations: 246.2 kB / 1.361 GB, free: 0.6406 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000459/0.4346, allocations: 382.4 kB / 1.362 GB, free: 272 kB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004529/0.4351, allocations: 358.1 kB / 1.362 GB, free: 15.91 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.4352, allocations: 80 kB / 1.362 GB, free: 15.84 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.4353, allocations: 80 kB / 1.362 GB, free: 15.76 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.4355, allocations: 183.3 kB / 1.362 GB, free: 15.58 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0003467/0.4358, allocations: 389.7 kB / 1.363 GB, free: 15.2 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.4369, allocations: 0.8983 MB / 1.363 GB, free: 14.29 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.4369, allocations: 0 / 1.363 GB, free: 14.29 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4369, allocations: 0 / 1.363 GB, free: 14.29 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.141e-05/0.4369, allocations: 0 / 1.363 GB, free: 14.29 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002166/0.4391, allocations: 1.127 MB / 1.365 GB, free: 13.12 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.4391, allocations: 12.03 kB / 1.365 GB, free: 13.11 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.4393, allocations: 100.3 kB / 1.365 GB, free: 13.02 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.4404, allocations: 0.5583 MB / 1.365 GB, free: 12.43 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/0.4406, allocations: 152.3 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.178e-05/0.4406, allocations: 56.33 kB / 1.365 GB, free: 12.2 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.4418, allocations: 0.6167 MB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.4418, allocations: 3.938 kB / 1.366 GB, free: 11.54 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.371e-05/0.4419, allocations: 23.98 kB / 1.366 GB, free: 11.51 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.4419, allocations: 16 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009789/0.4429, allocations: 419.7 kB / 1.366 GB, free: 11.09 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00295/0.4458, allocations: 2.064 MB / 1.368 GB, free: 8.938 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.4471, allocations: 483 kB / 1.369 GB, free: 8.453 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000479/0.4476, allocations: 218.9 kB / 1.369 GB, free: 8.238 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 4.618e-05/0.4476, allocations: 4 kB / 1.369 GB, free: 8.234 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007624/0.4484, allocations: 285.9 kB / 1.369 GB, free: 7.941 MB / 1.061 GB Notification: Performance of pre-optimization done (n=45): time 2.014e-06/0.4484, allocations: 0 / 1.369 GB, free: 7.941 MB / 1.061 GB Notification: Performance of matching and sorting (n=45): time 0.001532/0.4499, allocations: 0.6233 MB / 1.37 GB, free: 7.312 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.45, allocations: 110.6 kB / 1.37 GB, free: 7.18 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008756/0.4509, allocations: 0.6178 MB / 1.371 GB, free: 6.551 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.006e-05/0.4509, allocations: 37.7 kB / 1.371 GB, free: 6.508 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.00031/0.4512, allocations: 361.3 kB / 1.371 GB, free: 6.148 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.4514, allocations: 162.6 kB / 1.371 GB, free: 5.988 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000198/0.4516, allocations: 94.3 kB / 1.371 GB, free: 5.891 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001888/0.4518, allocations: 326 kB / 1.372 GB, free: 5.566 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004989/0.4523, allocations: 191.4 kB / 1.372 GB, free: 5.375 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007605/0.453, allocations: 290 kB / 1.372 GB, free: 5.055 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.4542, allocations: 475 kB / 1.373 GB, free: 4.551 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.4542, allocations: 7.938 kB / 1.373 GB, free: 4.543 MB / 1.061 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001345/0.4555, allocations: 0.6066 MB / 1.373 GB, free: 3.922 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.646e-05/0.4555, allocations: 37.77 kB / 1.373 GB, free: 3.879 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.4556, allocations: 0 / 1.373 GB, free: 3.879 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.4556, allocations: 8 kB / 1.373 GB, free: 3.871 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005006/0.4561, allocations: 107.8 kB / 1.373 GB, free: 3.766 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.4561, allocations: 4 kB / 1.373 GB, free: 3.762 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004321/0.4565, allocations: 67.59 kB / 1.373 GB, free: 3.695 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/0.4566, allocations: 20 kB / 1.373 GB, free: 3.676 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006518/0.4572, allocations: 318 kB / 1.374 GB, free: 3.359 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005264/0.4577, allocations: 274.1 kB / 1.374 GB, free: 3.055 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009048/0.4586, allocations: 453.9 kB / 1.374 GB, free: 2.57 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.854e-06/0.4587, allocations: 0 / 1.374 GB, free: 2.57 MB / 1.061 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001168/0.4598, allocations: 0.583 MB / 1.375 GB, free: 1.977 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.4599, allocations: 37.69 kB / 1.375 GB, free: 1.934 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.4599, allocations: 320 / 1.375 GB, free: 1.934 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.4599, allocations: 15.94 kB / 1.375 GB, free: 1.918 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004454/0.4603, allocations: 95.89 kB / 1.375 GB, free: 1.824 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.4603, allocations: 7.938 kB / 1.375 GB, free: 1.816 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004187/0.4607, allocations: 59.64 kB / 1.375 GB, free: 1.758 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.231e-05/0.4608, allocations: 23.98 kB / 1.375 GB, free: 1.734 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.000225/0.461, allocations: 208.1 kB / 1.375 GB, free: 1.523 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.4611, allocations: 83.48 kB / 1.375 GB, free: 1.441 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001691/0.4613, allocations: 79.22 kB / 1.376 GB, free: 1.363 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.852e-06/0.4613, allocations: 4 kB / 1.376 GB, free: 1.359 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.4613, allocations: 0 / 1.376 GB, free: 1.359 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.4613, allocations: 11.86 kB / 1.376 GB, free: 1.348 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007963/0.4621, allocations: 0.6053 MB / 1.376 GB, free: 0.6992 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.4621, allocations: 4 kB / 1.376 GB, free: 0.6953 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004917/0.4626, allocations: 83.88 kB / 1.376 GB, free: 0.6133 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.4626, allocations: 4 kB / 1.376 GB, free: 0.6094 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/0.4626, allocations: 8 kB / 1.376 GB, free: 0.6016 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.4627, allocations: 4 kB / 1.376 GB, free: 0.5977 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4627, allocations: 0 / 1.376 GB, free: 0.5977 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.4643, allocations: 0.7436 MB / 1.377 GB, free: 15.83 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002463/0.4645, allocations: 115.5 kB / 1.377 GB, free: 15.72 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.898e-05/0.4646, allocations: 12 kB / 1.377 GB, free: 15.71 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004326/0.465, allocations: 39.95 kB / 1.377 GB, free: 15.67 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.835e-05/0.4651, allocations: 31.94 kB / 1.377 GB, free: 15.64 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.4652, allocations: 19.98 kB / 1.377 GB, free: 15.62 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.000588/0.4657, allocations: 431 kB / 1.378 GB, free: 15.2 MB / 1.076 GB Notification: Performance of sort global known variables: time 1e-07/0.4657, allocations: 3.938 kB / 1.378 GB, free: 15.2 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0006595/0.4664, allocations: 219.5 kB / 1.378 GB, free: 14.98 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0001572/0.4666, allocations: 111.2 kB / 1.378 GB, free: 14.86 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001617/0.4682, allocations: 0.7503 MB / 1.379 GB, free: 14.09 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4682, allocations: 3.938 kB / 1.379 GB, free: 14.09 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0004676/0.4686, allocations: 212 kB / 1.379 GB, free: 13.88 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008727/0.4695, allocations: 201.8 kB / 1.379 GB, free: 13.7 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.4719, allocations: 1.222 MB / 1.38 GB, free: 12.43 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000552/0.4725, allocations: 0.9181 MB / 1.381 GB, free: 11.49 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.4727, allocations: 51.38 kB / 1.381 GB, free: 11.44 MB / 1.076 GB Notification: Performance of SimCode: time 7.61e-07/0.4727, allocations: 4 kB / 1.381 GB, free: 11.43 MB / 1.076 GB Notification: Performance of Templates: time 0.01403/0.4867, allocations: 8.819 MB / 1.39 GB, free: 2.664 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.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.911043986998266]