Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001632/0.001632, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001972/0.001972, allocations: 210.3 kB / 22.99 MB, free: 4.957 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.476/1.476, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.167/3.167, allocations: 0.49 GB / 0.7959 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 177] 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.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_12_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_12_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.002075/0.002075, allocations: 63.91 kB / 1.155 GB, free: 25.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3102, allocations: 176.1 MB / 1.327 GB, free: 1.031 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005367/0.3156, allocations: 3.357 MB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002786/0.3183, allocations: 1.332 MB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003395/0.3187, allocations: 35.75 kB / 1.332 GB, free: 12.28 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003461/0.319, allocations: 130.5 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005471/0.3196, allocations: 188.3 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.00123/0.3208, allocations: 0.5793 MB / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001107/0.3219, allocations: 0.9526 MB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004609/0.3224, allocations: 254.1 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004758/0.3229, allocations: 382.4 kB / 1.334 GB, free: 9.801 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004246/0.3233, allocations: 362.1 kB / 1.334 GB, free: 9.445 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001355/0.3234, allocations: 80 kB / 1.334 GB, free: 9.367 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.3235, allocations: 80 kB / 1.335 GB, free: 9.289 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001747/0.3237, allocations: 183.3 kB / 1.335 GB, free: 9.109 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002856/0.324, allocations: 302.2 kB / 1.335 GB, free: 8.812 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0009897/0.325, allocations: 0.9139 MB / 1.336 GB, free: 7.895 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.325, allocations: 0 / 1.336 GB, free: 7.895 MB / 1.029 GB Notification: Performance of FrontEnd: time 3.457e-06/0.325, allocations: 4 kB / 1.336 GB, free: 7.891 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.167e-05/0.325, allocations: 0 / 1.336 GB, free: 7.891 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002198/0.3272, allocations: 1.127 MB / 1.337 GB, free: 6.723 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3272, allocations: 16.03 kB / 1.337 GB, free: 6.707 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.3274, allocations: 96.33 kB / 1.337 GB, free: 6.613 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.3286, allocations: 0.5545 MB / 1.338 GB, free: 6.035 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.3287, allocations: 152.4 kB / 1.338 GB, free: 5.863 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.151e-05/0.3288, allocations: 52.38 kB / 1.338 GB, free: 5.812 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.3301, allocations: 0.7634 MB / 1.339 GB, free: 4.969 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.3301, allocations: 4 kB / 1.339 GB, free: 4.965 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.357e-05/0.3302, allocations: 27.98 kB / 1.339 GB, free: 4.938 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.3302, allocations: 12 kB / 1.339 GB, free: 4.926 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001036/0.3312, allocations: 427.6 kB / 1.339 GB, free: 4.508 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002791/0.334, allocations: 1.819 MB / 1.341 GB, free: 2.625 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.3352, allocations: 476.6 kB / 1.341 GB, free: 2.148 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004912/0.3357, allocations: 204.9 kB / 1.341 GB, free: 1.945 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.3358, allocations: 15.88 kB / 1.342 GB, free: 1.93 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007367/0.3365, allocations: 337.3 kB / 1.342 GB, free: 1.574 MB / 1.029 GB Notification: Performance of pre-optimization done (n=45): time 2.545e-06/0.3365, allocations: 4 kB / 1.342 GB, free: 1.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=45): time 0.001569/0.3381, allocations: 0.6156 MB / 1.342 GB, free: 0.9492 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.236e-05/0.3382, allocations: 118.5 kB / 1.343 GB, free: 0.8086 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007267/0.3389, allocations: 0.5747 MB / 1.343 GB, free: 228 kB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.452e-05/0.339, allocations: 37.7 kB / 1.343 GB, free: 184 kB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/0.3393, allocations: 369.1 kB / 1.343 GB, free: 15.81 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.3394, allocations: 162.5 kB / 1.344 GB, free: 15.65 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/0.3396, allocations: 94.34 kB / 1.344 GB, free: 15.55 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000203/0.3398, allocations: 382.8 kB / 1.344 GB, free: 15.17 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005098/0.3403, allocations: 209.1 kB / 1.344 GB, free: 14.96 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006227/0.3409, allocations: 375.1 kB / 1.345 GB, free: 14.53 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.342, allocations: 478 kB / 1.345 GB, free: 14.02 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.342, allocations: 0 / 1.345 GB, free: 14.02 MB / 1.045 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001352/0.3433, allocations: 0.6354 MB / 1.346 GB, free: 13.37 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.3434, allocations: 33.7 kB / 1.346 GB, free: 13.33 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.3434, allocations: 0 / 1.346 GB, free: 13.33 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3434, allocations: 4 kB / 1.346 GB, free: 13.32 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005309/0.3439, allocations: 116.1 kB / 1.346 GB, free: 13.21 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.3439, allocations: 11.97 kB / 1.346 GB, free: 13.2 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004392/0.3444, allocations: 63.64 kB / 1.346 GB, free: 13.14 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.06e-05/0.3444, allocations: 16 kB / 1.346 GB, free: 13.12 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000633/0.345, allocations: 343.1 kB / 1.346 GB, free: 12.78 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005667/0.3456, allocations: 363.1 kB / 1.347 GB, free: 12.36 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009118/0.3465, allocations: 450 kB / 1.347 GB, free: 11.88 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.098e-06/0.3465, allocations: 4 kB / 1.347 GB, free: 11.88 MB / 1.045 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00124/0.3478, allocations: 0.612 MB / 1.348 GB, free: 11.25 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.841e-05/0.3478, allocations: 37.69 kB / 1.348 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.3478, allocations: 0 / 1.348 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.3478, allocations: 8 kB / 1.348 GB, free: 11.2 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004945/0.3483, allocations: 95.89 kB / 1.348 GB, free: 11.1 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.3483, allocations: 7.938 kB / 1.348 GB, free: 11.09 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004277/0.3488, allocations: 51.97 kB / 1.348 GB, free: 11.04 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.819e-05/0.3488, allocations: 24 kB / 1.348 GB, free: 11.02 MB / 1.045 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.0002062/0.349, allocations: 213.3 kB / 1.348 GB, free: 10.8 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.3491, allocations: 83.41 kB / 1.348 GB, free: 10.72 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001562/0.3493, allocations: 74.77 kB / 1.348 GB, free: 10.65 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3493, allocations: 4 kB / 1.348 GB, free: 10.64 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3493, allocations: 0 / 1.348 GB, free: 10.64 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.3493, allocations: 3.984 kB / 1.348 GB, free: 10.64 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006166/0.3499, allocations: 460.8 kB / 1.349 GB, free: 10.16 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3499, allocations: 0 / 1.349 GB, free: 10.16 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005159/0.3504, allocations: 87.81 kB / 1.349 GB, free: 10.07 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.3504, allocations: 4 kB / 1.349 GB, free: 10.07 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/0.3505, allocations: 12 kB / 1.349 GB, free: 10.06 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3505, allocations: 3.938 kB / 1.349 GB, free: 10.05 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3505, allocations: 0 / 1.349 GB, free: 10.05 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.3521, allocations: 0.7358 MB / 1.35 GB, free: 9.301 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.3524, allocations: 115.4 kB / 1.35 GB, free: 9.188 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.82e-05/0.3525, allocations: 15.98 kB / 1.35 GB, free: 9.172 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004636/0.3529, allocations: 35.91 kB / 1.35 GB, free: 9.137 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.901e-05/0.353, allocations: 31.94 kB / 1.35 GB, free: 9.105 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.04e-05/0.3531, allocations: 19.98 kB / 1.35 GB, free: 9.086 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0005131/0.3536, allocations: 403.1 kB / 1.35 GB, free: 8.695 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3536, allocations: 0 / 1.35 GB, free: 8.695 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0006503/0.3542, allocations: 231.4 kB / 1.35 GB, free: 8.469 MB / 1.045 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.0001472/0.3544, allocations: 115.2 kB / 1.35 GB, free: 8.348 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001742/0.3561, allocations: 0.8083 MB / 1.351 GB, free: 7.504 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.3561, allocations: 4 kB / 1.351 GB, free: 7.5 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004989/0.3566, allocations: 204.3 kB / 1.351 GB, free: 7.301 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009091/0.3575, allocations: 206.3 kB / 1.352 GB, free: 7.109 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002229/0.3597, allocations: 1.187 MB / 1.353 GB, free: 5.891 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.3601, allocations: 322.9 kB / 1.353 GB, free: 5.547 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0003924/0.3604, allocations: 84.97 kB / 1.353 GB, free: 5.461 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001575/0.3606, allocations: 47.42 kB / 1.353 GB, free: 5.414 MB / 1.045 GB Notification: Performance of SimCode: time 7.61e-07/0.3606, allocations: 0 / 1.353 GB, free: 5.414 MB / 1.045 GB Notification: Performance of Templates: time 0.01655/0.3771, allocations: 8.803 MB / 1.362 GB, free: 12.79 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_12_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 8.893606921003084]