Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.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.002157/0.002157, 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.002927/0.002927, allocations: 214.6 kB / 22.25 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.532/1.532, allocations: 230.6 MB / 256 MB, free: 7.797 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.215/3.215, allocations: 0.4892 GB / 0.7943 GB, free: 35.56 MB / 0.6231 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.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") [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.002849/0.002849, allocations: 68.36 kB / 1.154 GB, free: 25.51 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.3432, allocations: 176.1 MB / 1.326 GB, free: 1.867 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002802/0.346, allocations: 1.454 MB / 1.327 GB, free: 416 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008637/0.3469, allocations: 427 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.136e-05/0.347, allocations: 0 / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.817e-05/0.347, allocations: 3.938 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.993e-05/0.347, allocations: 3.938 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002161/0.3472, allocations: 27.89 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 9.044e-05/0.3473, allocations: 27.88 kB / 1.327 GB, free: 15.92 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 8.131e-05/0.3474, allocations: 7.984 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.3475, allocations: 16 kB / 1.327 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.133e-05/0.3476, allocations: 19.91 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.051e-05/0.3476, allocations: 0 / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 3.694e-05/0.3476, allocations: 4 kB / 1.327 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 1.208e-05/0.3476, allocations: 4 kB / 1.327 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 2.752e-05/0.3477, allocations: 11.92 kB / 1.327 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 9.63e-05/0.3478, allocations: 27.8 kB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.3478, allocations: 3.984 kB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3478, allocations: 4 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.893e-06/0.3478, allocations: 7.938 kB / 1.328 GB, free: 15.82 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004075/0.3482, allocations: 258.3 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.3482, allocations: 8.031 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.3484, allocations: 16.88 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.3486, allocations: 118.5 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.3486, allocations: 4.359 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.3486, allocations: 4.375 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001298/0.3487, allocations: 49.94 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-06/0.3487, allocations: 4 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.3487, allocations: 0 / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.3487, allocations: 0 / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.033e-05/0.3488, allocations: 19.98 kB / 1.328 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002877/0.3491, allocations: 196.5 kB / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.738e-05/0.3492, allocations: 30.55 kB / 1.328 GB, free: 15.02 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.788e-05/0.3493, allocations: 20.91 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.3493, allocations: 0 / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.3493, allocations: 38.56 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.3493, allocations: 0 / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.000231/0.3496, allocations: 65.61 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.3496, allocations: 51.41 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.911e-05/0.3497, allocations: 101.9 kB / 1.328 GB, free: 14.71 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.3497, allocations: 29.69 kB / 1.328 GB, free: 14.68 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.3498, allocations: 88.14 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.3498, allocations: 7.891 kB / 1.329 GB, free: 14.58 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-05/0.3498, allocations: 9.719 kB / 1.329 GB, free: 14.56 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.35, allocations: 323 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.174e-05/0.35, allocations: 7.984 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.072e-05/0.35, allocations: 4 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.582e-05/0.3501, allocations: 24.84 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3501, allocations: 4 kB / 1.329 GB, free: 14.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001255/0.3502, allocations: 65.5 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.3503, allocations: 8 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.3503, allocations: 4.094 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.3503, allocations: 0 / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.951e-05/0.3503, allocations: 4 kB / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.3503, allocations: 320 / 1.329 GB, free: 14.11 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.574e-05/0.3504, allocations: 7.984 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-06/0.3504, allocations: 0 / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 8.715e-05/0.3505, allocations: 114.2 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/0.3505, allocations: 4 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.554e-05/0.3505, allocations: 7.625 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3505, allocations: 0 / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3505, allocations: 4 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-06/0.3505, allocations: 3.938 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001686/0.3507, allocations: 109.3 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3507, allocations: 3.938 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.206e-05/0.3507, allocations: 4 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3507, allocations: 3.984 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.3508, allocations: 4 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.3508, allocations: 3.938 kB / 1.329 GB, free: 13.8 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3508, allocations: 3.984 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001742/0.3509, allocations: 147.5 kB / 1.329 GB, free: 13.63 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.045e-05/0.3509, allocations: 7.891 kB / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.351, allocations: 0 / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.902e-05/0.351, allocations: 7.984 kB / 1.329 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.246e-05/0.3511, allocations: 4 kB / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.3511, allocations: 0 / 1.329 GB, free: 13.61 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.377e-05/0.3511, allocations: 87.27 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3511, allocations: 0 / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002176/0.3513, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001067/0.3514, allocations: 99.28 kB / 1.33 GB, free: 13.42 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001219/0.3516, allocations: 23.92 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.3516, allocations: 8 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.109e-05/0.3516, allocations: 11.98 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.3518, allocations: 3.938 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002935/0.3521, allocations: 115 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.994e-05/0.3522, allocations: 63.34 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.213e-05/0.3522, allocations: 8.109 kB / 1.33 GB, free: 13.14 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.649e-05/0.3523, allocations: 11.44 kB / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3523, allocations: 0 / 1.33 GB, free: 13.13 MB / 1.029 GB Notification: Performance of Templates: time 0.002502/0.3548, allocations: 329.8 kB / 1.33 GB, free: 12.82 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.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.860610354691744]