Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|kMinU.u|kMinU.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001622/0.001622, allocations: 107.3 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002201/0.002201, allocations: 189.4 kB / 16.25 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.452/2.452, allocations: 390.2 MB / 0.6643 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001408, allocations: 63.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8665/0.8679, allocations: 140.4 MB / 0.9491 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.003517/0.8715, allocations: 1.479 MB / 0.9505 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008804/0.8724, allocations: 395.4 kB / 0.9509 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.988e-05/0.8725, allocations: 5.688 kB / 0.9509 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.896e-05/0.8726, allocations: 0 / 0.9509 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.544e-05/0.8727, allocations: 3.938 kB / 0.9509 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.8729, allocations: 6.828 kB / 0.9509 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.213e-05/0.873, allocations: 25.7 kB / 0.951 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.8732, allocations: 6.688 kB / 0.951 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.8733, allocations: 13.64 kB / 0.951 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.36e-05/0.8734, allocations: 15.11 kB / 0.951 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.8734, allocations: 5.438 kB / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.181e-05/0.8734, allocations: 1.438 kB / 0.951 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.363e-05/0.8734, allocations: 5.312 kB / 0.951 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.193e-05/0.8735, allocations: 14.67 kB / 0.951 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.8736, allocations: 21.66 kB / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.8736, allocations: 0 / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.8736, allocations: 0 / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.365e-06/0.8737, allocations: 4 kB / 0.951 GB, free: 7.605 MB / 0.7169 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.0004996/0.8742, allocations: 332.6 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.8742, allocations: 9.531 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.115e-05/0.8743, allocations: 10.03 kB / 0.9514 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.8744, allocations: 170.9 kB / 0.9515 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.8744, allocations: 1.656 kB / 0.9516 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.8745, allocations: 1.562 kB / 0.9516 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.8746, allocations: 53.34 kB / 0.9516 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.8747, allocations: 4 kB / 0.9516 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.8747, allocations: 0 / 0.9516 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.8747, allocations: 1.281 kB / 0.9516 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.991e-05/0.8748, allocations: 18.7 kB / 0.9516 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004418/0.8753, allocations: 249.9 kB / 0.9519 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.343e-05/0.8754, allocations: 31.5 kB / 0.9519 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.528e-05/0.8754, allocations: 20.67 kB / 0.9519 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.8754, allocations: 1.312 kB / 0.9519 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.8755, allocations: 30.56 kB / 0.9519 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 2.144e-06/0.8755, allocations: 0 / 0.9519 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002865/0.8758, allocations: 70.23 kB / 0.952 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.8758, allocations: 51.53 kB / 0.9521 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.917e-05/0.8759, allocations: 109.2 kB / 0.9522 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.8759, allocations: 26.73 kB / 0.9522 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.412e-05/0.876, allocations: 81.8 kB / 0.9523 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.467e-05/0.876, allocations: 7.906 kB / 0.9523 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.101e-05/0.8761, allocations: 16.77 kB / 0.9523 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.922e-05/0.8762, allocations: 312.4 kB / 0.9526 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.423e-05/0.8762, allocations: 8.062 kB / 0.9526 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.589e-05/0.8763, allocations: 14.83 kB / 0.9526 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.461e-05/0.8763, allocations: 27.28 kB / 0.9526 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.8764, allocations: 1.375 kB / 0.9526 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000123/0.8765, allocations: 52.88 kB / 0.9527 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.8765, allocations: 6.125 kB / 0.9527 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.8765, allocations: 0 / 0.9527 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.8766, allocations: 0 / 0.9527 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.9e-05/0.8767, allocations: 12.39 kB / 0.9527 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.8767, allocations: 3.938 kB / 0.9527 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.444e-05/0.8767, allocations: 2.781 kB / 0.9527 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.8767, allocations: 0 / 0.9527 GB, free: 5.836 MB / 0.7169 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 7.183e-05/0.8768, allocations: 115.3 kB / 0.9528 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.853e-05/0.8768, allocations: 6.531 kB / 0.9528 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.768e-05/0.8769, allocations: 7.531 kB / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.8769, allocations: 5.297 kB / 0.9528 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.8769, allocations: 0 / 0.9528 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.8769, allocations: 4 kB / 0.9528 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.877, allocations: 163.7 kB / 0.953 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.8771, allocations: 0 / 0.953 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.852e-05/0.8771, allocations: 3.656 kB / 0.953 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.8771, allocations: 5.797 kB / 0.953 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-06/0.8771, allocations: 0 / 0.953 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.8771, allocations: 0 / 0.953 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.8771, allocations: 0 / 0.953 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000137/0.8773, allocations: 156.6 kB / 0.9532 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.985e-05/0.8773, allocations: 78.3 kB / 0.9532 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.8773, allocations: 3.984 kB / 0.9532 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.943e-05/0.8774, allocations: 2.438 kB / 0.9532 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/0.8774, allocations: 1.406 kB / 0.9532 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.8774, allocations: 0 / 0.9532 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.614e-05/0.8775, allocations: 88.27 kB / 0.9533 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8775, allocations: 0 / 0.9533 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002288/0.8777, allocations: 3.531 kB / 0.9533 GB, free: 5.152 MB / 0.7169 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 9.413e-05/0.8778, allocations: 103 kB / 0.9534 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001345/0.8779, allocations: 24.67 kB / 0.9535 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.8779, allocations: 1.75 kB / 0.9535 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.83e-05/0.878, allocations: 14.2 kB / 0.9535 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002156/0.8782, allocations: 9.531 kB / 0.9535 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002879/0.8785, allocations: 126.2 kB / 0.9536 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.8786, allocations: 0.6818 MB / 0.9543 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.361e-05/0.8787, allocations: 0 / 0.9543 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.355e-05/0.8787, allocations: 9.125 kB / 0.9543 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.8787, allocations: 0 / 0.9543 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of Templates: time 0.00232/0.881, allocations: 297.8 kB / 0.9546 GB, free: 4.035 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches