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.001051/0.001051, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007059/0.007059, allocations: 174.4 kB / 16.27 MB, free: 6.66 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.409/1.409, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.538/2.538, allocations: 390.9 MB / 0.6663 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004713/0.0004714, allocations: 15.98 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8744/0.8749, allocations: 142.4 MB / 0.955 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002039/0.877, allocations: 1.148 MB / 0.9562 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006888/0.8777, allocations: 382.8 kB / 0.9565 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.002e-05/0.8778, allocations: 1.344 kB / 0.9565 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.065e-05/0.8778, allocations: 0 / 0.9565 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.682e-05/0.8779, allocations: 3.938 kB / 0.9565 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001725/0.8781, allocations: 10.77 kB / 0.9565 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.081e-05/0.8781, allocations: 28.89 kB / 0.9566 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.8783, allocations: 7.844 kB / 0.9566 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.8784, allocations: 8.609 kB / 0.9566 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.265e-05/0.8785, allocations: 15.08 kB / 0.9566 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.09e-05/0.8785, allocations: 1.062 kB / 0.9566 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.114e-05/0.8785, allocations: 1 kB / 0.9566 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.934e-05/0.8785, allocations: 0.7812 kB / 0.9566 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.987e-05/0.8786, allocations: 39.64 kB / 0.9566 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.836e-05/0.8787, allocations: 21.67 kB / 0.9567 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.8787, allocations: 0 / 0.9567 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.284e-06/0.8787, allocations: 4 kB / 0.9567 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.8787, allocations: 0 / 0.9567 GB, free: 6.547 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.0003655/0.8791, allocations: 337.1 kB / 0.957 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.8791, allocations: 10.06 kB / 0.957 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.747e-05/0.8792, allocations: 5.812 kB / 0.957 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.8793, allocations: 174.2 kB / 0.9572 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.8793, allocations: 1.438 kB / 0.9572 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.8793, allocations: 1.875 kB / 0.9572 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.8795, allocations: 55.56 kB / 0.9572 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.8795, allocations: 0 / 0.9572 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.117e-06/0.8795, allocations: 0 / 0.9572 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.8795, allocations: 1.281 kB / 0.9572 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.214e-05/0.8796, allocations: 30.22 kB / 0.9573 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002886/0.8799, allocations: 250.2 kB / 0.9575 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.439e-05/0.88, allocations: 29.64 kB / 0.9575 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.643e-05/0.8801, allocations: 22.28 kB / 0.9575 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.8801, allocations: 0.9062 kB / 0.9575 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.8801, allocations: 35.69 kB / 0.9576 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.8801, allocations: 0 / 0.9576 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002529/0.8804, allocations: 70.61 kB / 0.9576 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.668e-05/0.8804, allocations: 52.59 kB / 0.9577 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.428e-05/0.8805, allocations: 105.4 kB / 0.9578 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.205e-06/0.8805, allocations: 29.7 kB / 0.9578 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.448e-05/0.8805, allocations: 86.42 kB / 0.9579 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.8806, allocations: 3.906 kB / 0.9579 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.28e-05/0.8806, allocations: 10.72 kB / 0.9579 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.554e-05/0.8807, allocations: 320 kB / 0.9582 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.283e-05/0.8807, allocations: 6.812 kB / 0.9582 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.803e-05/0.8808, allocations: 16.08 kB / 0.9583 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.161e-05/0.8808, allocations: 32.39 kB / 0.9583 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.8808, allocations: 3.938 kB / 0.9583 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001288/0.881, allocations: 56.58 kB / 0.9583 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.881, allocations: 5.938 kB / 0.9583 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.881, allocations: 0 / 0.9583 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.881, allocations: 1.25 kB / 0.9583 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.314e-05/0.8811, allocations: 8.656 kB / 0.9584 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.8811, allocations: 3.984 kB / 0.9584 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.452e-05/0.8812, allocations: 7.266 kB / 0.9584 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.8812, allocations: 1.5 kB / 0.9584 GB, free: 4.77 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 5.601e-05/0.8812, allocations: 111 kB / 0.9585 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.8813, allocations: 1.5 kB / 0.9585 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.213e-05/0.8813, allocations: 8.938 kB / 0.9585 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.8813, allocations: 0 / 0.9585 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.8813, allocations: 4 kB / 0.9585 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.8813, allocations: 5.344 kB / 0.9585 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001219/0.8815, allocations: 161.7 kB / 0.9586 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.8815, allocations: 1.031 kB / 0.9586 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.252e-05/0.8815, allocations: 8.688 kB / 0.9587 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.8815, allocations: 3.938 kB / 0.9587 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.8815, allocations: 1.094 kB / 0.9587 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.8815, allocations: 0 / 0.9587 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.8815, allocations: 0.9688 kB / 0.9587 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001519/0.8817, allocations: 163.8 kB / 0.9588 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.043e-05/0.8817, allocations: 78.33 kB / 0.9589 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.8817, allocations: 5.125 kB / 0.9589 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.143e-05/0.8818, allocations: 6.453 kB / 0.9589 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.8819, allocations: 5.266 kB / 0.9589 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-06/0.8819, allocations: 0 / 0.9589 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.092e-05/0.8819, allocations: 89.03 kB / 0.959 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.3e-07/0.8819, allocations: 0 / 0.959 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002089/0.8821, allocations: 3.906 kB / 0.959 GB, free: 4.078 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.524e-05/0.8822, allocations: 95.62 kB / 0.9591 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001434/0.8824, allocations: 32.81 kB / 0.9591 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.8824, allocations: 5.469 kB / 0.9591 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.383e-05/0.8824, allocations: 8.469 kB / 0.9591 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.8827, allocations: 9.094 kB / 0.9591 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003062/0.883, allocations: 124 kB / 0.9593 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.8831, allocations: 0.678 MB / 0.9599 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.529e-05/0.8831, allocations: 4.062 kB / 0.9599 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.324e-05/0.8832, allocations: 8.781 kB / 0.9599 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of SimCode: time 1.163e-06/0.8832, allocations: 3.938 kB / 0.9599 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of Templates: time 0.002371/0.8855, allocations: 280.1 kB / 0.9602 GB, free: 2.973 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