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.001617/0.001624, allocations: 106.9 kB / 15.99 MB, free: 6.363 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.001978/0.001979, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.368/1.368, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.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.197/2.197, allocations: 390.2 MB / 0.665 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 60.58 kB / 0.8127 GB, free: 32.45 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2692, allocations: 140.4 MB / 0.9498 GB, free: 9.246 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002703/0.272, allocations: 1.491 MB / 0.9512 GB, free: 7.746 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006298/0.2726, allocations: 391.2 kB / 0.9516 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.654e-05/0.2726, allocations: 0 / 0.9516 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.952e-05/0.2727, allocations: 3.938 kB / 0.9516 GB, free: 7.355 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.701e-05/0.2727, allocations: 0 / 0.9516 GB, free: 7.355 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.2729, allocations: 19.97 kB / 0.9516 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.573e-05/0.273, allocations: 19.92 kB / 0.9516 GB, free: 7.316 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.815e-05/0.273, allocations: 8 kB / 0.9516 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.096e-05/0.2731, allocations: 15.88 kB / 0.9517 GB, free: 7.293 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.048e-05/0.2732, allocations: 7.984 kB / 0.9517 GB, free: 7.285 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.324e-05/0.2732, allocations: 4 kB / 0.9517 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.833e-06/0.2732, allocations: 0 / 0.9517 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.497e-05/0.2732, allocations: 7.938 kB / 0.9517 GB, free: 7.273 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.483e-05/0.2733, allocations: 15.91 kB / 0.9517 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 6.367e-05/0.2733, allocations: 19.98 kB / 0.9517 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2733, allocations: 0 / 0.9517 GB, free: 7.238 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2733, allocations: 3.938 kB / 0.9517 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.2734, allocations: 0 / 0.9517 GB, free: 7.234 MB / 0.7325 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.0003793/0.2737, allocations: 339.6 kB / 0.952 GB, free: 6.855 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2738, allocations: 12.03 kB / 0.9521 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.989e-05/0.2738, allocations: 0.9375 kB / 0.9521 GB, free: 6.844 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.2739, allocations: 160.4 kB / 0.9522 GB, free: 6.648 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.317e-06/0.274, allocations: 4.375 kB / 0.9522 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.674e-06/0.274, allocations: 4.375 kB / 0.9522 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.2741, allocations: 49.98 kB / 0.9523 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.2741, allocations: 0 / 0.9523 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.2741, allocations: 0 / 0.9523 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2741, allocations: 0 / 0.9523 GB, free: 6.586 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.102e-05/0.2742, allocations: 23.92 kB / 0.9523 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003292/0.2746, allocations: 252.8 kB / 0.9525 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.71e-05/0.2746, allocations: 30.58 kB / 0.9526 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.283e-05/0.2747, allocations: 20.91 kB / 0.9526 GB, free: 6.203 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.645e-05/0.2747, allocations: 4 kB / 0.9526 GB, free: 6.199 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.2748, allocations: 34.5 kB / 0.9526 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.2748, allocations: 0 / 0.9526 GB, free: 6.156 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0002101/0.275, allocations: 65.67 kB / 0.9527 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.275, allocations: 51.41 kB / 0.9527 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.86e-05/0.2751, allocations: 105.8 kB / 0.9528 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.2751, allocations: 25.7 kB / 0.9529 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.9e-05/0.2752, allocations: 80.14 kB / 0.9529 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.2752, allocations: 15.84 kB / 0.9529 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.2752, allocations: 9.719 kB / 0.953 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.2753, allocations: 319 kB / 0.9533 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.34e-05/0.2754, allocations: 12 kB / 0.9533 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.084e-05/0.2754, allocations: 11.92 kB / 0.9533 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.357e-05/0.2755, allocations: 28.73 kB / 0.9533 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2755, allocations: 3.984 kB / 0.9533 GB, free: 5.387 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000116/0.2756, allocations: 49.69 kB / 0.9534 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.2757, allocations: 4.094 kB / 0.9534 GB, free: 5.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.2757, allocations: 4 kB / 0.9534 GB, free: 5.324 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.2757, allocations: 4 kB / 0.9534 GB, free: 5.32 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.763e-05/0.2757, allocations: 4 kB / 0.9534 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.2758, allocations: 0 / 0.9534 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.218e-05/0.2758, allocations: 3.984 kB / 0.9534 GB, free: 5.312 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.2758, allocations: 0 / 0.9534 GB, free: 5.312 MB / 0.7325 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.132e-05/0.2759, allocations: 117.8 kB / 0.9535 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.2759, allocations: 3.906 kB / 0.9535 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.806e-05/0.2759, allocations: 7.531 kB / 0.9535 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.2759, allocations: 7.938 kB / 0.9535 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.276, allocations: 0 / 0.9535 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.276, allocations: 3.938 kB / 0.9535 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000155/0.2761, allocations: 161.8 kB / 0.9537 GB, free: 4.953 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.2761, allocations: 4 kB / 0.9537 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.323e-05/0.2762, allocations: 4 kB / 0.9537 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.2762, allocations: 0 / 0.9537 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.2762, allocations: 0 / 0.9537 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2762, allocations: 4 kB / 0.9537 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.2762, allocations: 0 / 0.9537 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001577/0.2764, allocations: 155.5 kB / 0.9538 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.394e-05/0.2764, allocations: 77.11 kB / 0.9539 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.2764, allocations: 0 / 0.9539 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.234e-05/0.2765, allocations: 4 kB / 0.9539 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.447e-05/0.2765, allocations: 3.984 kB / 0.9539 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-06/0.2765, allocations: 0 / 0.9539 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.175e-05/0.2766, allocations: 87.31 kB / 0.954 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2766, allocations: 0 / 0.954 GB, free: 4.586 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002164/0.2768, allocations: 4 kB / 0.954 GB, free: 4.582 MB / 0.7325 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.0001029/0.2769, allocations: 107.2 kB / 0.9541 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001198/0.2771, allocations: 19.98 kB / 0.9541 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.2771, allocations: 0 / 0.9541 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.021e-05/0.2771, allocations: 16 kB / 0.9541 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002053/0.2773, allocations: 8 kB / 0.9541 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002865/0.2776, allocations: 156.3 kB / 0.9543 GB, free: 4.242 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.2779, allocations: 0.6805 MB / 0.955 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.653e-05/0.2779, allocations: 11.44 kB / 0.955 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.2779, allocations: 0 / 0.955 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of Templates: time 0.001619/0.2795, allocations: 0.5158 MB / 0.9555 GB, free: 3.012 MB / 0.7325 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