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.001318/0.001318, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001414/0.001414, allocations: 215.2 kB / 22.99 MB, free: 4.945 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.2/3.2, allocations: 0.5107 GB / 0.8166 GB, free: 17.79 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.002116/0.002116, allocations: 61.62 kB / 1.187 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3725, allocations: 181.9 MB / 1.365 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005406/0.3779, allocations: 3.363 MB / 1.368 GB, free: 10.2 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003021/0.3809, allocations: 1.325 MB / 1.369 GB, free: 8.867 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006484/0.3816, allocations: 31.75 kB / 1.369 GB, free: 8.836 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0004595/0.382, allocations: 130.6 kB / 1.369 GB, free: 8.707 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0008096/0.3828, allocations: 192.7 kB / 1.369 GB, free: 8.52 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.3842, allocations: 0.5768 MB / 1.37 GB, free: 7.953 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001345/0.3855, allocations: 0.9566 MB / 1.371 GB, free: 6.992 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005459/0.3861, allocations: 242.1 kB / 1.371 GB, free: 6.738 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005865/0.3867, allocations: 374.4 kB / 1.372 GB, free: 6.371 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005349/0.3872, allocations: 330.1 kB / 1.372 GB, free: 6.047 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0002041/0.3874, allocations: 80 kB / 1.372 GB, free: 5.969 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.3876, allocations: 80 kB / 1.372 GB, free: 5.891 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.3878, allocations: 187.2 kB / 1.372 GB, free: 5.707 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.000342/0.3881, allocations: 302.2 kB / 1.373 GB, free: 5.41 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.3891, allocations: 0.9023 MB / 1.373 GB, free: 4.504 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3891, allocations: 0 / 1.373 GB, free: 4.504 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3891, allocations: 0 / 1.373 GB, free: 4.504 MB / 1.061 GB Notification: Performance of Transformations before backend: time 3.581e-05/0.3892, allocations: 3.938 kB / 1.373 GB, free: 4.5 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.002431/0.3916, allocations: 1.131 MB / 1.375 GB, free: 3.328 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3916, allocations: 8.031 kB / 1.375 GB, free: 3.32 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002067/0.3918, allocations: 104.3 kB / 1.375 GB, free: 3.219 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.393, allocations: 0.5622 MB / 1.375 GB, free: 2.633 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.3932, allocations: 144.4 kB / 1.375 GB, free: 2.469 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.513e-05/0.3933, allocations: 52.38 kB / 1.375 GB, free: 2.418 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.3946, allocations: 0.7751 MB / 1.376 GB, free: 1.566 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.3946, allocations: 0 / 1.376 GB, free: 1.566 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.482e-05/0.3946, allocations: 20 kB / 1.376 GB, free: 1.547 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.3946, allocations: 16 kB / 1.376 GB, free: 1.531 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.3957, allocations: 427.7 kB / 1.377 GB, free: 1.109 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002899/0.3986, allocations: 1.819 MB / 1.378 GB, free: 15.23 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.3998, allocations: 475.7 kB / 1.379 GB, free: 14.75 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004797/0.4003, allocations: 206.6 kB / 1.379 GB, free: 14.55 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 4.387e-05/0.4003, allocations: 7.938 kB / 1.379 GB, free: 14.54 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006721/0.401, allocations: 337.5 kB / 1.379 GB, free: 14.18 MB / 1.076 GB Notification: Performance of pre-optimization done (n=45): time 2.395e-06/0.401, allocations: 0 / 1.379 GB, free: 14.18 MB / 1.076 GB Notification: Performance of matching and sorting (n=45): time 0.001514/0.4025, allocations: 0.622 MB / 1.38 GB, free: 13.55 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.915e-05/0.4026, allocations: 110.6 kB / 1.38 GB, free: 13.42 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007181/0.4033, allocations: 0.5786 MB / 1.381 GB, free: 12.84 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 6.478e-05/0.4033, allocations: 37.7 kB / 1.381 GB, free: 12.79 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003111/0.4037, allocations: 361 kB / 1.381 GB, free: 12.43 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.4038, allocations: 162.6 kB / 1.381 GB, free: 12.27 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.404, allocations: 103.3 kB / 1.381 GB, free: 12.17 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001955/0.4042, allocations: 374.8 kB / 1.382 GB, free: 11.79 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004997/0.4047, allocations: 221.1 kB / 1.382 GB, free: 11.57 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.4052, allocations: 367.2 kB / 1.382 GB, free: 11.15 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009843/0.4062, allocations: 474 kB / 1.383 GB, free: 10.64 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4062, allocations: 4 kB / 1.383 GB, free: 10.64 MB / 1.076 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00128/0.4075, allocations: 0.6354 MB / 1.383 GB, free: 9.984 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.4075, allocations: 30.02 kB / 1.383 GB, free: 9.949 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.4076, allocations: 11.98 kB / 1.383 GB, free: 9.938 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.4076, allocations: 4 kB / 1.383 GB, free: 9.934 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004735/0.4081, allocations: 111.8 kB / 1.383 GB, free: 9.824 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.417e-05/0.4081, allocations: 8 kB / 1.383 GB, free: 9.816 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004173/0.4085, allocations: 63.62 kB / 1.383 GB, free: 9.754 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.391e-05/0.4085, allocations: 20 kB / 1.383 GB, free: 9.734 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005895/0.4091, allocations: 343.1 kB / 1.384 GB, free: 9.391 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000538/0.4097, allocations: 355.1 kB / 1.384 GB, free: 8.988 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008885/0.4105, allocations: 454 kB / 1.385 GB, free: 8.508 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.494e-06/0.4105, allocations: 0 / 1.385 GB, free: 8.508 MB / 1.076 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001163/0.4117, allocations: 0.6158 MB / 1.385 GB, free: 7.875 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.4117, allocations: 33.69 kB / 1.385 GB, free: 7.836 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.4117, allocations: 4 kB / 1.385 GB, free: 7.832 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.4118, allocations: 4 kB / 1.385 GB, free: 7.828 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004409/0.4122, allocations: 104.1 kB / 1.385 GB, free: 7.727 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.4122, allocations: 11.98 kB / 1.385 GB, free: 7.715 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004012/0.4126, allocations: 59.7 kB / 1.385 GB, free: 7.656 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/0.4127, allocations: 23.98 kB / 1.385 GB, free: 7.633 MB / 1.076 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.0001844/0.4128, allocations: 209.7 kB / 1.386 GB, free: 7.422 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.4129, allocations: 75.47 kB / 1.386 GB, free: 7.348 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001388/0.4131, allocations: 78.77 kB / 1.386 GB, free: 7.27 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.4131, allocations: 4 kB / 1.386 GB, free: 7.266 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.4131, allocations: 4 kB / 1.386 GB, free: 7.262 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.4131, allocations: 3.984 kB / 1.386 GB, free: 7.258 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005954/0.4137, allocations: 460.8 kB / 1.386 GB, free: 6.777 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.4137, allocations: 3.984 kB / 1.386 GB, free: 6.773 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004652/0.4142, allocations: 79.83 kB / 1.386 GB, free: 6.695 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.4142, allocations: 4 kB / 1.386 GB, free: 6.691 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.565e-05/0.4142, allocations: 8 kB / 1.386 GB, free: 6.684 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.4142, allocations: 4 kB / 1.386 GB, free: 6.68 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4142, allocations: 3.984 kB / 1.386 GB, free: 6.676 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.4158, allocations: 0.7293 MB / 1.387 GB, free: 5.926 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000257/0.416, allocations: 119.3 kB / 1.387 GB, free: 5.809 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.641e-05/0.4161, allocations: 15.98 kB / 1.387 GB, free: 5.793 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004179/0.4165, allocations: 35.97 kB / 1.387 GB, free: 5.758 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.775e-05/0.4166, allocations: 27.94 kB / 1.387 GB, free: 5.73 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.77e-05/0.4167, allocations: 19.98 kB / 1.387 GB, free: 5.711 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0004987/0.4172, allocations: 403.1 kB / 1.388 GB, free: 5.32 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4172, allocations: 3.938 kB / 1.388 GB, free: 5.316 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0006502/0.4178, allocations: 227.4 kB / 1.388 GB, free: 5.094 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.0001453/0.418, allocations: 111.2 kB / 1.388 GB, free: 4.977 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001689/0.4197, allocations: 0.8162 MB / 1.389 GB, free: 4.125 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4197, allocations: 0 / 1.389 GB, free: 4.125 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0004743/0.4201, allocations: 199.8 kB / 1.389 GB, free: 3.93 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008725/0.421, allocations: 200.9 kB / 1.389 GB, free: 3.738 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.4234, allocations: 1.219 MB / 1.39 GB, free: 2.48 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.4237, allocations: 322.9 kB / 1.391 GB, free: 2.137 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.4239, allocations: 51.42 kB / 1.391 GB, free: 2.086 MB / 1.076 GB Notification: Performance of SimCode: time 3.21e-07/0.4239, allocations: 3.938 kB / 1.391 GB, free: 2.082 MB / 1.076 GB Notification: Performance of Templates: time 0.016/0.4399, allocations: 8.921 MB / 1.399 GB, free: 9.211 MB / 1.092 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.346028331201524]