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.001958/0.001958, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002199/0.002199, allocations: 209.7 kB / 22.24 MB, free: 5.262 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.568/1.568, allocations: 230.6 MB / 256 MB, free: 7.809 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.489/3.489, allocations: 0.5107 GB / 0.8158 GB, free: 17.85 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.002156/0.002156, allocations: 72.44 kB / 1.186 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4561/0.4583, allocations: 181.9 MB / 1.364 GB, free: 13.67 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005551/0.4638, allocations: 3.368 MB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.003174/0.467, allocations: 1.325 MB / 1.368 GB, free: 8.941 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004781/0.4675, allocations: 31.75 kB / 1.368 GB, free: 8.91 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0003984/0.4679, allocations: 130.6 kB / 1.369 GB, free: 8.781 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0006008/0.4685, allocations: 192.9 kB / 1.369 GB, free: 8.594 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001339/0.4698, allocations: 0.5725 MB / 1.369 GB, free: 8.031 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.00114/0.471, allocations: 0.9605 MB / 1.37 GB, free: 7.066 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004784/0.4715, allocations: 234.1 kB / 1.37 GB, free: 6.82 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004508/0.4719, allocations: 378.4 kB / 1.371 GB, free: 6.449 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004074/0.4723, allocations: 326.1 kB / 1.371 GB, free: 6.129 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.4724, allocations: 80 kB / 1.371 GB, free: 6.051 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.4726, allocations: 80 kB / 1.371 GB, free: 5.973 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001843/0.4727, allocations: 183.2 kB / 1.371 GB, free: 5.793 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0002927/0.473, allocations: 302.2 kB / 1.372 GB, free: 5.496 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.4741, allocations: 0.9178 MB / 1.373 GB, free: 4.574 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4741, allocations: 0 / 1.373 GB, free: 4.574 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4741, allocations: 0 / 1.373 GB, free: 4.574 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.109e-05/0.4741, allocations: 0 / 1.373 GB, free: 4.574 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.002318/0.4764, allocations: 1.123 MB / 1.374 GB, free: 3.41 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 8.344e-05/0.4765, allocations: 11.97 kB / 1.374 GB, free: 3.398 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.4767, allocations: 100.3 kB / 1.374 GB, free: 3.301 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.4786, allocations: 0.5622 MB / 1.374 GB, free: 2.715 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002131/0.4788, allocations: 148.4 kB / 1.375 GB, free: 2.547 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.4789, allocations: 56.38 kB / 1.375 GB, free: 2.492 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.4804, allocations: 0.7673 MB / 1.375 GB, free: 1.648 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.4804, allocations: 0 / 1.375 GB, free: 1.648 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.665e-05/0.4804, allocations: 20 kB / 1.375 GB, free: 1.629 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.4804, allocations: 12 kB / 1.375 GB, free: 1.617 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009978/0.4814, allocations: 435.6 kB / 1.376 GB, free: 1.188 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002778/0.4842, allocations: 1.823 MB / 1.378 GB, free: 15.3 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.4855, allocations: 471.7 kB / 1.378 GB, free: 14.83 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004608/0.4859, allocations: 207 kB / 1.378 GB, free: 14.62 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 4.828e-05/0.486, allocations: 7.938 kB / 1.378 GB, free: 14.62 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00073/0.4867, allocations: 341.5 kB / 1.379 GB, free: 14.26 MB / 1.076 GB Notification: Performance of pre-optimization done (n=45): time 2.475e-06/0.4867, allocations: 0 / 1.379 GB, free: 14.26 MB / 1.076 GB Notification: Performance of matching and sorting (n=45): time 0.00152/0.4882, allocations: 0.6142 MB / 1.379 GB, free: 13.64 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.497e-05/0.4883, allocations: 110.6 kB / 1.379 GB, free: 13.5 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007249/0.489, allocations: 0.5786 MB / 1.38 GB, free: 12.92 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.481e-05/0.4891, allocations: 38.8 kB / 1.38 GB, free: 12.88 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003509/0.4894, allocations: 361 kB / 1.38 GB, free: 12.52 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.4896, allocations: 170.6 kB / 1.38 GB, free: 12.35 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.4898, allocations: 94.3 kB / 1.38 GB, free: 12.25 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001942/0.49, allocations: 378.8 kB / 1.381 GB, free: 11.87 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004926/0.4905, allocations: 217 kB / 1.381 GB, free: 11.65 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006002/0.4911, allocations: 371.2 kB / 1.381 GB, free: 11.23 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009601/0.492, allocations: 473.9 kB / 1.382 GB, free: 10.72 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.492, allocations: 4 kB / 1.382 GB, free: 10.72 MB / 1.076 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001288/0.4933, allocations: 0.6315 MB / 1.382 GB, free: 10.07 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/0.4934, allocations: 37.95 kB / 1.382 GB, free: 10.02 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.4934, allocations: 8 kB / 1.382 GB, free: 10.02 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.4934, allocations: 4 kB / 1.382 GB, free: 10.01 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.4939, allocations: 107.8 kB / 1.383 GB, free: 9.906 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.4939, allocations: 4 kB / 1.383 GB, free: 9.902 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004098/0.4943, allocations: 67.64 kB / 1.383 GB, free: 9.836 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.153e-05/0.4943, allocations: 23.98 kB / 1.383 GB, free: 9.812 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005997/0.4949, allocations: 340.2 kB / 1.383 GB, free: 9.473 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005427/0.4955, allocations: 359.1 kB / 1.383 GB, free: 9.062 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000866/0.4963, allocations: 454 kB / 1.384 GB, free: 8.582 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.863e-06/0.4963, allocations: 3.938 kB / 1.384 GB, free: 8.578 MB / 1.076 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001185/0.4975, allocations: 0.612 MB / 1.384 GB, free: 7.949 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.4976, allocations: 29.7 kB / 1.384 GB, free: 7.914 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.4976, allocations: 4 kB / 1.384 GB, free: 7.91 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.245e-06/0.4976, allocations: 4 kB / 1.384 GB, free: 7.906 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/0.498, allocations: 112.1 kB / 1.385 GB, free: 7.797 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.498, allocations: 8 kB / 1.385 GB, free: 7.789 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000399/0.4984, allocations: 55.7 kB / 1.385 GB, free: 7.734 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.4985, allocations: 20 kB / 1.385 GB, free: 7.715 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.000263/0.4987, allocations: 212.1 kB / 1.385 GB, free: 7.5 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.4989, allocations: 75.47 kB / 1.385 GB, free: 7.426 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001757/0.499, allocations: 78.75 kB / 1.385 GB, free: 7.348 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.499, allocations: 4 kB / 1.385 GB, free: 7.344 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.499, allocations: 4 kB / 1.385 GB, free: 7.34 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.499, allocations: 0 / 1.385 GB, free: 7.34 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006745/0.4997, allocations: 460.8 kB / 1.385 GB, free: 6.859 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.4997, allocations: 4 kB / 1.385 GB, free: 6.855 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004452/0.5002, allocations: 87.81 kB / 1.385 GB, free: 6.77 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.5002, allocations: 0 / 1.385 GB, free: 6.77 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.471e-05/0.5002, allocations: 12 kB / 1.386 GB, free: 6.758 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.5002, allocations: 4 kB / 1.386 GB, free: 6.754 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5002, allocations: 0 / 1.386 GB, free: 6.754 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.5018, allocations: 0.7332 MB / 1.386 GB, free: 6 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002552/0.502, allocations: 119.3 kB / 1.386 GB, free: 5.883 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.308e-05/0.5021, allocations: 8 kB / 1.386 GB, free: 5.875 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004048/0.5025, allocations: 43.95 kB / 1.386 GB, free: 5.832 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.5026, allocations: 31.88 kB / 1.386 GB, free: 5.801 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.503e-05/0.5026, allocations: 19.98 kB / 1.386 GB, free: 5.781 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0004945/0.5031, allocations: 399.1 kB / 1.387 GB, free: 5.395 MB / 1.076 GB Notification: Performance of sort global known variables: time 1e-07/0.5031, allocations: 0 / 1.387 GB, free: 5.395 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0006233/0.5038, allocations: 227.4 kB / 1.387 GB, free: 5.172 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.0001635/0.5039, allocations: 115.1 kB / 1.387 GB, free: 5.051 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001675/0.5056, allocations: 0.8162 MB / 1.388 GB, free: 4.199 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.5056, allocations: 0 / 1.388 GB, free: 4.199 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0004688/0.5061, allocations: 199.8 kB / 1.388 GB, free: 4.004 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008824/0.5069, allocations: 205 kB / 1.388 GB, free: 3.812 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002275/0.5092, allocations: 1.19 MB / 1.389 GB, free: 2.59 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.5096, allocations: 326.9 kB / 1.39 GB, free: 2.242 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0004043/0.51, allocations: 88.97 kB / 1.39 GB, free: 2.152 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.5101, allocations: 51.44 kB / 1.39 GB, free: 2.102 MB / 1.076 GB Notification: Performance of SimCode: time 6.81e-07/0.5101, allocations: 0 / 1.39 GB, free: 2.102 MB / 1.076 GB Notification: Performance of Templates: time 0.01744/0.5276, allocations: 8.673 MB / 1.398 GB, free: 9.598 MB / 1.092 GB " [Timeout remaining time 299] 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/jenkins/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: 10.160606477409601]