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.001441/0.001441, allocations: 77.78 kB / 19.76 MB, free: 2.031 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.001541/0.001541, allocations: 162.4 kB / 23.01 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.479/1.479, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.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 2.809/2.809, allocations: 377.9 MB / 0.6228 GB, free: 12.6 MB / 0.5919 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.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.00229/0.00229, allocations: 64.17 kB / 0.9819 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.037/1.039, allocations: 176.1 MB / 1.154 GB, free: 33.35 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004444/1.044, allocations: 3.364 MB / 1.157 GB, free: 31.08 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.002727/1.046, allocations: 1.333 MB / 1.158 GB, free: 30.13 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004633/1.047, allocations: 35.84 kB / 1.158 GB, free: 30.12 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0003514/1.047, allocations: 135 kB / 1.159 GB, free: 30.02 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0005321/1.048, allocations: 182.3 kB / 1.159 GB, free: 29.89 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.001134/1.049, allocations: 0.5742 MB / 1.159 GB, free: 29.57 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.001131/1.05, allocations: 0.961 MB / 1.16 GB, free: 29.08 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005063/1.051, allocations: 229.6 kB / 1.161 GB, free: 28.94 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004808/1.051, allocations: 379.1 kB / 1.161 GB, free: 28.75 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004076/1.051, allocations: 326 kB / 1.161 GB, free: 28.57 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0001286/1.052, allocations: 79.16 kB / 1.161 GB, free: 28.57 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/1.052, allocations: 82.5 kB / 1.161 GB, free: 28.57 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001693/1.052, allocations: 183.7 kB / 1.162 GB, free: 28.45 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0002807/1.052, allocations: 296.4 kB / 1.162 GB, free: 28.25 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0009993/1.053, allocations: 0.9109 MB / 1.163 GB, free: 27.82 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/1.053, allocations: 0 / 1.163 GB, free: 27.82 MB / 1.076 GB Notification: Performance of FrontEnd: time 3.416e-06/1.053, allocations: 0 / 1.163 GB, free: 27.82 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.501e-05/1.053, allocations: 3.938 kB / 1.163 GB, free: 27.82 MB / 1.076 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.002249/1.055, allocations: 1.124 MB / 1.164 GB, free: 27.06 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 6.326e-05/1.056, allocations: 14.75 kB / 1.164 GB, free: 27.06 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002053/1.056, allocations: 98.73 kB / 1.164 GB, free: 27.01 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/1.057, allocations: 0.5627 MB / 1.164 GB, free: 26.64 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/1.057, allocations: 149.5 kB / 1.165 GB, free: 26.5 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.062e-05/1.057, allocations: 51.88 kB / 1.165 GB, free: 26.48 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/1.058, allocations: 0.7635 MB / 1.165 GB, free: 25.97 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/1.058, allocations: 7.938 kB / 1.165 GB, free: 25.96 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.664e-05/1.058, allocations: 21.66 kB / 1.165 GB, free: 25.95 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/1.058, allocations: 11.16 kB / 1.165 GB, free: 25.95 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/1.059, allocations: 430 kB / 1.166 GB, free: 25.8 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002646/1.062, allocations: 1.821 MB / 1.168 GB, free: 24.5 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/1.063, allocations: 483.5 kB / 1.168 GB, free: 24.31 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/1.064, allocations: 209.4 kB / 1.168 GB, free: 24.23 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 5.197e-05/1.064, allocations: 9.438 kB / 1.168 GB, free: 24.22 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007507/1.064, allocations: 333.4 kB / 1.169 GB, free: 24.04 MB / 1.076 GB Notification: Performance of pre-optimization done (n=45): time 3.507e-06/1.064, allocations: 4 kB / 1.169 GB, free: 24.04 MB / 1.076 GB Notification: Performance of matching and sorting (n=45): time 0.001542/1.066, allocations: 0.6166 MB / 1.169 GB, free: 23.79 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.906e-05/1.066, allocations: 112 kB / 1.169 GB, free: 23.66 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006486/1.067, allocations: 0.5753 MB / 1.17 GB, free: 23.39 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 4.479e-05/1.067, allocations: 36.33 kB / 1.17 GB, free: 23.36 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/1.067, allocations: 372 kB / 1.17 GB, free: 23.06 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/1.067, allocations: 158.1 kB / 1.17 GB, free: 22.93 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/1.067, allocations: 95.88 kB / 1.171 GB, free: 22.88 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001302/1.067, allocations: 385.7 kB / 1.171 GB, free: 22.54 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/1.068, allocations: 212.1 kB / 1.171 GB, free: 22.43 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000472/1.068, allocations: 375.5 kB / 1.171 GB, free: 22.14 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008423/1.069, allocations: 477.6 kB / 1.172 GB, free: 21.87 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/1.069, allocations: 0 / 1.172 GB, free: 21.87 MB / 1.076 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001241/1.07, allocations: 0.6345 MB / 1.173 GB, free: 21.55 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.586e-05/1.07, allocations: 32.67 kB / 1.173 GB, free: 21.52 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/1.07, allocations: 2.469 kB / 1.173 GB, free: 21.52 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/1.071, allocations: 5.812 kB / 1.173 GB, free: 21.52 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005795/1.071, allocations: 108.9 kB / 1.173 GB, free: 21.51 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/1.071, allocations: 10 kB / 1.173 GB, free: 21.5 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004437/1.072, allocations: 63.98 kB / 1.173 GB, free: 21.47 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/1.072, allocations: 18.03 kB / 1.173 GB, free: 21.47 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006587/1.072, allocations: 343.2 kB / 1.173 GB, free: 21.26 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005694/1.073, allocations: 353.9 kB / 1.173 GB, free: 20.98 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008857/1.074, allocations: 463.3 kB / 1.174 GB, free: 20.7 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.394e-06/1.074, allocations: 0 / 1.174 GB, free: 20.7 MB / 1.076 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001125/1.075, allocations: 0.6122 MB / 1.174 GB, free: 20.39 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/1.075, allocations: 36.14 kB / 1.174 GB, free: 20.36 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/1.075, allocations: 1.406 kB / 1.174 GB, free: 20.36 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.614e-06/1.075, allocations: 9.844 kB / 1.174 GB, free: 20.35 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004593/1.075, allocations: 109.7 kB / 1.175 GB, free: 20.33 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/1.075, allocations: 5.312 kB / 1.175 GB, free: 20.33 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004081/1.076, allocations: 56.55 kB / 1.175 GB, free: 20.3 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/1.076, allocations: 18.47 kB / 1.175 GB, free: 20.3 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.0001873/1.076, allocations: 218 kB / 1.175 GB, free: 20.09 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/1.076, allocations: 78.56 kB / 1.175 GB, free: 20.05 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001423/1.076, allocations: 74.98 kB / 1.175 GB, free: 20 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/1.076, allocations: 5 kB / 1.175 GB, free: 20 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/1.076, allocations: 2.906 kB / 1.175 GB, free: 20 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.076, allocations: 1.219 kB / 1.175 GB, free: 20 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005776/1.077, allocations: 459.3 kB / 1.175 GB, free: 19.74 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/1.077, allocations: 4 kB / 1.175 GB, free: 19.73 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004721/1.077, allocations: 92.39 kB / 1.176 GB, free: 19.72 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/1.077, allocations: 2.125 kB / 1.176 GB, free: 19.72 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/1.077, allocations: 6.438 kB / 1.176 GB, free: 19.71 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/1.077, allocations: 2.219 kB / 1.176 GB, free: 19.71 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/1.077, allocations: 0 / 1.176 GB, free: 19.71 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/1.079, allocations: 0.7343 MB / 1.176 GB, free: 19.38 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002127/1.079, allocations: 120 kB / 1.176 GB, free: 19.3 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.991e-05/1.079, allocations: 11.38 kB / 1.176 GB, free: 19.29 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004311/1.08, allocations: 33.8 kB / 1.176 GB, free: 19.29 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.727e-05/1.08, allocations: 40.39 kB / 1.176 GB, free: 19.28 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.79e-05/1.08, allocations: 17 kB / 1.177 GB, free: 19.27 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0004326/1.08, allocations: 406.1 kB / 1.177 GB, free: 19.09 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/1.08, allocations: 0 / 1.177 GB, free: 19.09 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0006994/1.081, allocations: 227.1 kB / 1.177 GB, free: 19.02 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.0001247/1.081, allocations: 118.2 kB / 1.177 GB, free: 18.92 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.00158/1.083, allocations: 0.8072 MB / 1.178 GB, free: 18.52 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/1.083, allocations: 1.375 kB / 1.178 GB, free: 18.52 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0004458/1.083, allocations: 212.2 kB / 1.178 GB, free: 18.45 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008948/1.084, allocations: 195.6 kB / 1.178 GB, free: 18.38 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/1.086, allocations: 1.19 MB / 1.18 GB, free: 17.71 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/1.086, allocations: 330.4 kB / 1.18 GB, free: 17.59 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0003766/1.087, allocations: 89.8 kB / 1.18 GB, free: 17.57 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/1.087, allocations: 43.53 kB / 1.18 GB, free: 17.56 MB / 1.076 GB Notification: Performance of SimCode: time 8.92e-07/1.087, allocations: 1.125 kB / 1.18 GB, free: 17.56 MB / 1.076 GB Notification: Performance of Templates: time 0.01934/1.106, allocations: 8.052 MB / 1.188 GB, free: 16.6 MB / 1.076 GB " [Timeout remaining time 299] 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 ida -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: 9.45854971697554]