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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001166/0.001166, allocations: 92.31 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001581/0.001581, allocations: 182.5 kB / 16.92 MB, free: 6.652 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.355/1.355, allocations: 223.3 MB / 241 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.429/2.429, allocations: 390.9 MB / 0.667 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003979/0.0003982, allocations: 12 kB / 0.8166 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8524/0.8528, allocations: 142.4 MB / 0.9557 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.001429/0.8543, allocations: 1.156 MB / 0.9568 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005157/0.8548, allocations: 382.7 kB / 0.9572 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.455e-05/0.8549, allocations: 5.25 kB / 0.9572 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.596e-05/0.8549, allocations: 0 / 0.9572 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.639e-05/0.855, allocations: 5.375 kB / 0.9572 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001566/0.8551, allocations: 13.59 kB / 0.9572 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.529e-05/0.8552, allocations: 17.47 kB / 0.9572 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.952e-05/0.8553, allocations: 6.422 kB / 0.9573 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.299e-05/0.8554, allocations: 12.84 kB / 0.9573 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.947e-05/0.8555, allocations: 7.828 kB / 0.9573 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.8555, allocations: 1.062 kB / 0.9573 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.628e-06/0.8555, allocations: 5.094 kB / 0.9573 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.432e-05/0.8555, allocations: 5.375 kB / 0.9573 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.33e-05/0.8556, allocations: 39.09 kB / 0.9573 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.504e-05/0.8556, allocations: 15.81 kB / 0.9573 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.8557, allocations: 1.031 kB / 0.9573 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.954e-06/0.8557, allocations: 0 / 0.9573 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.8557, allocations: 0 / 0.9573 GB, free: 6.414 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.000325/0.856, allocations: 329.5 kB / 0.9577 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.8561, allocations: 13 kB / 0.9577 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.83e-05/0.8561, allocations: 5.875 kB / 0.9577 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.072e-05/0.8562, allocations: 178.4 kB / 0.9578 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.8562, allocations: 1.5 kB / 0.9578 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.011e-05/0.8562, allocations: 1.5 kB / 0.9578 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.8563, allocations: 47.41 kB / 0.9579 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.8564, allocations: 0 / 0.9579 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.8564, allocations: 0 / 0.9579 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.8564, allocations: 1.094 kB / 0.9579 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.127e-05/0.8565, allocations: 26.33 kB / 0.9579 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003108/0.8568, allocations: 250.8 kB / 0.9582 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.081e-05/0.8569, allocations: 34.08 kB / 0.9582 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.856e-05/0.857, allocations: 26.19 kB / 0.9582 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.857, allocations: 0 / 0.9582 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.857, allocations: 31.75 kB / 0.9582 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 8.71e-07/0.857, allocations: 0 / 0.9582 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002485/0.8573, allocations: 67.73 kB / 0.9583 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.8573, allocations: 60.5 kB / 0.9584 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.135e-05/0.8574, allocations: 101 kB / 0.9585 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.125e-05/0.8574, allocations: 29.7 kB / 0.9585 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.23e-05/0.8574, allocations: 86.09 kB / 0.9586 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.846e-05/0.8575, allocations: 4.875 kB / 0.9586 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.101e-05/0.8575, allocations: 9.719 kB / 0.9586 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.677e-05/0.8576, allocations: 319.8 kB / 0.9589 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.544e-05/0.8576, allocations: 15.05 kB / 0.9589 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.548e-05/0.8577, allocations: 12.25 kB / 0.9589 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.255e-05/0.8578, allocations: 31.94 kB / 0.9589 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.8578, allocations: 0 / 0.9589 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001185/0.8579, allocations: 61.72 kB / 0.959 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.8579, allocations: 8.828 kB / 0.959 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.8579, allocations: 0 / 0.959 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.8579, allocations: 1.125 kB / 0.959 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.252e-05/0.858, allocations: 4.688 kB / 0.959 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.858, allocations: 0 / 0.959 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.222e-05/0.8581, allocations: 3.312 kB / 0.959 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.8581, allocations: 1.188 kB / 0.959 GB, free: 4.648 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 6.004e-05/0.8581, allocations: 118.9 kB / 0.9591 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.323e-05/0.8582, allocations: 2.406 kB / 0.9591 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.107e-05/0.8582, allocations: 11.52 kB / 0.9591 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.8582, allocations: 1.219 kB / 0.9591 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.8582, allocations: 0 / 0.9591 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.8582, allocations: 1.062 kB / 0.9591 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.8583, allocations: 158 kB / 0.9593 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.8583, allocations: 1.062 kB / 0.9593 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.155e-05/0.8584, allocations: 13.48 kB / 0.9593 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.8584, allocations: 4 kB / 0.9593 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-06/0.8584, allocations: 4 kB / 0.9593 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.8584, allocations: 1.688 kB / 0.9593 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.8584, allocations: 0 / 0.9593 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001416/0.8586, allocations: 164.4 kB / 0.9595 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.893e-05/0.8586, allocations: 77.11 kB / 0.9596 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.8586, allocations: 5.812 kB / 0.9596 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.956e-05/0.8587, allocations: 1.75 kB / 0.9596 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.052e-05/0.8587, allocations: 1.875 kB / 0.9596 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-06/0.8587, allocations: 0 / 0.9596 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.555e-05/0.8587, allocations: 88.7 kB / 0.9596 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8588, allocations: 0 / 0.9596 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002125/0.859, allocations: 3.75 kB / 0.9597 GB, free: 3.957 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.58e-05/0.8591, allocations: 99.47 kB / 0.9597 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001273/0.8592, allocations: 29.8 kB / 0.9598 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.8592, allocations: 0 / 0.9598 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.503e-05/0.8593, allocations: 17.36 kB / 0.9598 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.8595, allocations: 14.19 kB / 0.9598 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002665/0.8598, allocations: 152 kB / 0.9599 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.8599, allocations: 0.6786 MB / 0.9606 GB, free: 2.977 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.334e-05/0.8599, allocations: 7.438 kB / 0.9606 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.8599, allocations: 1.156 kB / 0.9606 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of Templates: time 0.001966/0.8619, allocations: 0.5112 MB / 0.9611 GB, free: 2.711 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/jenkins1/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