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.007567/0.007567, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001701/0.001702, allocations: 194 kB / 16.79 MB, free: 5.809 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.381/1.381, allocations: 222.9 MB / 240.5 MB, free: 4.547 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.477/2.477, allocations: 390.2 MB / 0.6649 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 63.91 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8559/0.8582, allocations: 140.3 MB / 0.9496 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002571/0.8608, allocations: 1.494 MB / 0.951 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005618/0.8614, allocations: 383.2 kB / 0.9514 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.637e-05/0.8614, allocations: 4 kB / 0.9514 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.29e-05/0.8615, allocations: 1.375 kB / 0.9514 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.996e-05/0.8615, allocations: 11.91 kB / 0.9514 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001493/0.8617, allocations: 6.75 kB / 0.9514 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.35e-05/0.8618, allocations: 29.48 kB / 0.9515 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.8619, allocations: 2.75 kB / 0.9515 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.451e-05/0.862, allocations: 13.42 kB / 0.9515 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.253e-05/0.862, allocations: 6.75 kB / 0.9515 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.977e-05/0.8621, allocations: 1.375 kB / 0.9515 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.129e-05/0.8621, allocations: 9.312 kB / 0.9515 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.795e-05/0.8621, allocations: 5.359 kB / 0.9515 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.806e-05/0.8621, allocations: 14.67 kB / 0.9515 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.2e-05/0.8622, allocations: 14.73 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.8622, allocations: 1.375 kB / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.01e-07/0.8622, allocations: 0 / 0.9515 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.648e-06/0.8622, allocations: 0 / 0.9515 GB, free: 7.613 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.0003537/0.8626, allocations: 332.4 kB / 0.9518 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.8626, allocations: 9.469 kB / 0.9519 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.211e-05/0.8627, allocations: 10.12 kB / 0.9519 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.255e-05/0.8628, allocations: 174.6 kB / 0.952 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.8628, allocations: 1.562 kB / 0.952 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.297e-06/0.8628, allocations: 1.844 kB / 0.952 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.8629, allocations: 45.06 kB / 0.9521 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-06/0.8629, allocations: 0 / 0.9521 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.8629, allocations: 0 / 0.9521 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.863, allocations: 1.312 kB / 0.9521 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.338e-05/0.863, allocations: 26.53 kB / 0.9521 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002861/0.8633, allocations: 251.2 kB / 0.9523 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.657e-05/0.8634, allocations: 34.84 kB / 0.9524 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.557e-05/0.8635, allocations: 16.23 kB / 0.9524 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.8635, allocations: 1.688 kB / 0.9524 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.554e-05/0.8635, allocations: 34.56 kB / 0.9524 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.8635, allocations: 0 / 0.9524 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000236/0.8638, allocations: 65.48 kB / 0.9525 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.8638, allocations: 52.97 kB / 0.9525 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.028e-05/0.8639, allocations: 104.1 kB / 0.9526 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.542e-06/0.8639, allocations: 30.77 kB / 0.9527 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.922e-05/0.8639, allocations: 85.89 kB / 0.9527 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.513e-05/0.8639, allocations: 8.031 kB / 0.9528 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.5e-05/0.864, allocations: 12.44 kB / 0.9528 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.367e-05/0.864, allocations: 320.2 kB / 0.9531 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.787e-05/0.864, allocations: 5.5 kB / 0.9531 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.139e-05/0.8641, allocations: 13.67 kB / 0.9531 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.807e-05/0.8642, allocations: 28.38 kB / 0.9531 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.8642, allocations: 4.062 kB / 0.9531 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.823e-05/0.8643, allocations: 53.12 kB / 0.9532 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.8643, allocations: 9.094 kB / 0.9532 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.8643, allocations: 0 / 0.9532 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.8643, allocations: 1.344 kB / 0.9532 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.456e-05/0.8644, allocations: 8.297 kB / 0.9532 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.8644, allocations: 0 / 0.9532 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.088e-05/0.8644, allocations: 1.281 kB / 0.9532 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.8645, allocations: 1.281 kB / 0.9532 GB, free: 5.84 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 4.482e-05/0.8645, allocations: 115.2 kB / 0.9533 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.8645, allocations: 2.5 kB / 0.9533 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.961e-05/0.8646, allocations: 7.531 kB / 0.9533 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.8646, allocations: 1.25 kB / 0.9533 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.8646, allocations: 0 / 0.9533 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.8646, allocations: 5.328 kB / 0.9533 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/0.8647, allocations: 162.3 kB / 0.9535 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.8647, allocations: 0 / 0.9535 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.141e-05/0.8647, allocations: 4.438 kB / 0.9535 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.8648, allocations: 4 kB / 0.9535 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.8648, allocations: 5.172 kB / 0.9535 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.8648, allocations: 0 / 0.9535 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.8648, allocations: 256 / 0.9535 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.8649, allocations: 152 kB / 0.9536 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.797e-05/0.8649, allocations: 78.39 kB / 0.9537 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.8649, allocations: 5.188 kB / 0.9537 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.232e-05/0.865, allocations: 9.297 kB / 0.9537 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.094e-05/0.865, allocations: 1.531 kB / 0.9537 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/0.8651, allocations: 1.062 kB / 0.9537 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.749e-05/0.8651, allocations: 88.09 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8651, allocations: 0 / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002115/0.8653, allocations: 2.969 kB / 0.9538 GB, free: 5.156 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 8.763e-05/0.8654, allocations: 101.2 kB / 0.9539 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001204/0.8655, allocations: 24.64 kB / 0.9539 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.8655, allocations: 1.438 kB / 0.9539 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.735e-05/0.8656, allocations: 10.12 kB / 0.9539 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.8658, allocations: 15.97 kB / 0.954 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000267/0.8661, allocations: 152.7 kB / 0.9541 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.485e-05/0.8662, allocations: 0.6821 MB / 0.9548 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.452e-05/0.8662, allocations: 12.48 kB / 0.9548 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.8662, allocations: 0 / 0.9548 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of Templates: time 0.001584/0.8678, allocations: 0.5038 MB / 0.9553 GB, free: 3.914 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