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.001275/0.001275, allocations: 114.9 kB / 16.37 MB, free: 5.539 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.001208/0.001208, allocations: 189.4 kB / 17.3 MB, free: 5.18 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.208/1.208, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 1.97/1.97, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 60.77 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2202, allocations: 140.4 MB / 0.9511 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002478/0.2227, allocations: 1.437 MB / 0.9525 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005558/0.2233, allocations: 399.1 kB / 0.9529 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.843e-05/0.2234, allocations: 0 / 0.9529 GB, free: 6.195 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.528e-05/0.2234, allocations: 7.938 kB / 0.9529 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.554e-05/0.2234, allocations: 0 / 0.9529 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000127/0.2236, allocations: 15.91 kB / 0.9529 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.709e-05/0.2236, allocations: 23.92 kB / 0.953 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.01e-05/0.2237, allocations: 4 kB / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.706e-05/0.2238, allocations: 15.92 kB / 0.953 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.578e-05/0.2238, allocations: 15.94 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.2239, allocations: 0 / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.546e-06/0.2239, allocations: 4 kB / 0.953 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.508e-05/0.2239, allocations: 3.984 kB / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.87e-05/0.2239, allocations: 15.86 kB / 0.953 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 6.479e-05/0.224, allocations: 23.91 kB / 0.953 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.224, allocations: 0 / 0.953 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.222e-06/0.224, allocations: 0 / 0.953 GB, free: 6.066 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.077e-06/0.224, allocations: 0 / 0.953 GB, free: 6.066 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.0003634/0.2244, allocations: 343.3 kB / 0.9534 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.2244, allocations: 8.031 kB / 0.9534 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.592e-05/0.2245, allocations: 4.938 kB / 0.9534 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.2246, allocations: 168.3 kB / 0.9535 GB, free: 5.469 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.667e-06/0.2246, allocations: 4.375 kB / 0.9535 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.2246, allocations: 4.375 kB / 0.9535 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001061/0.2247, allocations: 38 kB / 0.9536 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.2247, allocations: 0 / 0.9536 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/0.2247, allocations: 8 kB / 0.9536 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.2247, allocations: 0 / 0.9536 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.684e-05/0.2248, allocations: 15.98 kB / 0.9536 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002789/0.2251, allocations: 264.8 kB / 0.9539 GB, free: 5.086 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.349e-05/0.2252, allocations: 26.56 kB / 0.9539 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.902e-05/0.2252, allocations: 20.91 kB / 0.9539 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.719e-06/0.2253, allocations: 4 kB / 0.9539 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.55e-05/0.2253, allocations: 30.56 kB / 0.9539 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.2253, allocations: 0 / 0.9539 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.000202/0.2255, allocations: 61.62 kB / 0.954 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.2255, allocations: 55.41 kB / 0.954 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.323e-05/0.2256, allocations: 101.8 kB / 0.9541 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.2256, allocations: 25.7 kB / 0.9542 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.485e-05/0.2257, allocations: 92.27 kB / 0.9543 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.2257, allocations: 15.77 kB / 0.9543 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/0.2257, allocations: 13.72 kB / 0.9543 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.111e-05/0.2258, allocations: 314.8 kB / 0.9546 GB, free: 4.266 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.634e-05/0.2259, allocations: 7.984 kB / 0.9546 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.82e-05/0.2259, allocations: 8 kB / 0.9546 GB, free: 4.25 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.627e-05/0.226, allocations: 32.84 kB / 0.9546 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.226, allocations: 0 / 0.9546 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.864e-05/0.2261, allocations: 53.62 kB / 0.9547 GB, free: 4.156 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.2261, allocations: 4 kB / 0.9547 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.2261, allocations: 256 / 0.9547 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2261, allocations: 0 / 0.9547 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.542e-05/0.2262, allocations: 11.98 kB / 0.9547 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.2262, allocations: 0 / 0.9547 GB, free: 4.141 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.062e-05/0.2262, allocations: 8 kB / 0.9547 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/0.2262, allocations: 7.969 kB / 0.9547 GB, free: 4.125 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 6.612e-05/0.2263, allocations: 109.8 kB / 0.9548 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.459e-05/0.2263, allocations: 11.89 kB / 0.9548 GB, free: 3.996 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.787e-05/0.2264, allocations: 7.531 kB / 0.9548 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.2264, allocations: 0 / 0.9548 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.2264, allocations: 0 / 0.9548 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2264, allocations: 0 / 0.9548 GB, free: 3.984 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.2265, allocations: 165.6 kB / 0.955 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.2265, allocations: 0 / 0.955 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-05/0.2266, allocations: 11.98 kB / 0.955 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.2266, allocations: 0 / 0.955 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.2266, allocations: 0 / 0.955 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2266, allocations: 0 / 0.955 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2266, allocations: 0 / 0.955 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.2267, allocations: 147.4 kB / 0.9551 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.192e-05/0.2268, allocations: 85.09 kB / 0.9552 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.858e-06/0.2268, allocations: 4.031 kB / 0.9552 GB, free: 3.496 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.72e-05/0.2269, allocations: 4 kB / 0.9552 GB, free: 3.492 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.573e-05/0.2269, allocations: 4 kB / 0.9552 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.2269, allocations: 0 / 0.9552 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.34e-05/0.2269, allocations: 83.27 kB / 0.9553 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of sort global known variables: time 8.606e-06/0.2269, allocations: 0 / 0.9553 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0001972/0.2271, allocations: 7.938 kB / 0.9553 GB, free: 3.398 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 8.517e-05/0.2272, allocations: 99.25 kB / 0.9554 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000112/0.2274, allocations: 31.92 kB / 0.9555 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.2274, allocations: 0 / 0.9555 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.691e-05/0.2274, allocations: 11.98 kB / 0.9555 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001914/0.2276, allocations: 5.438 kB / 0.9555 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000249/0.2279, allocations: 121.3 kB / 0.9556 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.2281, allocations: 0.6806 MB / 0.9563 GB, free: 2.398 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 2.142e-05/0.2281, allocations: 8 kB / 0.9563 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.909e-05/0.2281, allocations: 7.438 kB / 0.9563 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.2281, allocations: 0 / 0.9563 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of Templates: time 0.001866/0.23, allocations: 314.7 kB / 0.9566 GB, free: 2.078 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 -s cvode -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