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.001481/0.001481, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001846/0.001846, allocations: 195.7 kB / 16.14 MB, free: 6.648 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.413/1.413, allocations: 222.9 MB / 239.8 MB, free: 4.52 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.473/2.473, allocations: 390.2 MB / 0.6642 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 67.89 kB / 0.8119 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7875/0.7887, allocations: 140.4 MB / 0.9489 GB, free: 9.379 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.00274/0.7915, allocations: 1.49 MB / 0.9504 GB, free: 8.207 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005653/0.7921, allocations: 387.8 kB / 0.9507 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.175e-05/0.7921, allocations: 5.312 kB / 0.9508 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.182e-05/0.7922, allocations: 4 kB / 0.9508 GB, free: 7.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.117e-05/0.7922, allocations: 3.984 kB / 0.9508 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001549/0.7924, allocations: 14.14 kB / 0.9508 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.111e-05/0.7925, allocations: 22 kB / 0.9508 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.7926, allocations: 7.891 kB / 0.9508 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.5e-05/0.7927, allocations: 8.625 kB / 0.9508 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.192e-05/0.7927, allocations: 11.86 kB / 0.9508 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.7928, allocations: 3.938 kB / 0.9508 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.078e-05/0.7928, allocations: 1.312 kB / 0.9508 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.616e-05/0.7928, allocations: 12.92 kB / 0.9508 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.77e-05/0.7928, allocations: 10.94 kB / 0.9509 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.075e-05/0.7929, allocations: 16.19 kB / 0.9509 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.7929, allocations: 1.25 kB / 0.9509 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.022e-06/0.7929, allocations: 0 / 0.9509 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.7929, allocations: 0 / 0.9509 GB, free: 7.824 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.0003707/0.7933, allocations: 337.9 kB / 0.9512 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.7934, allocations: 8.219 kB / 0.9512 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.062e-05/0.7934, allocations: 10.25 kB / 0.9512 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.138e-05/0.7935, allocations: 171.1 kB / 0.9514 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.7935, allocations: 384 / 0.9514 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.22e-05/0.7935, allocations: 1.75 kB / 0.9514 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000129/0.7937, allocations: 54.33 kB / 0.9514 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.066e-06/0.7937, allocations: 0 / 0.9514 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.7937, allocations: 0 / 0.9514 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.7937, allocations: 1.438 kB / 0.9514 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.948e-05/0.7938, allocations: 18.55 kB / 0.9514 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002806/0.7941, allocations: 253.5 kB / 0.9517 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.616e-05/0.7942, allocations: 31.89 kB / 0.9517 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.99e-05/0.7942, allocations: 20.78 kB / 0.9517 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.7942, allocations: 0 / 0.9517 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.7943, allocations: 35.94 kB / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.7943, allocations: 0 / 0.9518 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0002425/0.7945, allocations: 65.23 kB / 0.9518 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.239e-05/0.7945, allocations: 52.88 kB / 0.9519 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.014e-05/0.7946, allocations: 104.9 kB / 0.952 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.604e-06/0.7946, allocations: 29.64 kB / 0.952 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.083e-05/0.7946, allocations: 81.58 kB / 0.9521 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.7947, allocations: 5.344 kB / 0.9521 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.56e-05/0.7947, allocations: 21.03 kB / 0.9521 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.516e-05/0.7948, allocations: 314.8 kB / 0.9524 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.222e-05/0.7948, allocations: 9.562 kB / 0.9524 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.183e-05/0.7948, allocations: 9.141 kB / 0.9524 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.745e-05/0.7949, allocations: 28.81 kB / 0.9525 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.7949, allocations: 0 / 0.9525 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.663e-05/0.795, allocations: 53.72 kB / 0.9525 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.795, allocations: 5.375 kB / 0.9525 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.7951, allocations: 0 / 0.9525 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.7951, allocations: 0 / 0.9525 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.197e-05/0.7951, allocations: 8.375 kB / 0.9525 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.7952, allocations: 9.234 kB / 0.9525 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.067e-05/0.7952, allocations: 5.344 kB / 0.9525 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.7952, allocations: 1.406 kB / 0.9525 GB, free: 6.047 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.715e-05/0.7953, allocations: 119.1 kB / 0.9527 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.7953, allocations: 5.375 kB / 0.9527 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.819e-05/0.7953, allocations: 4.906 kB / 0.9527 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.7953, allocations: 0 / 0.9527 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.7953, allocations: 1.375 kB / 0.9527 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.7953, allocations: 0 / 0.9527 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.7955, allocations: 171 kB / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.7955, allocations: 0 / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.997e-05/0.7955, allocations: 4.125 kB / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.7955, allocations: 0 / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.7955, allocations: 1.375 kB / 0.9528 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.7955, allocations: 7.984 kB / 0.9528 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.7955, allocations: 0 / 0.9528 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.7957, allocations: 151.9 kB / 0.953 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.756e-05/0.7957, allocations: 78.48 kB / 0.9531 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.7957, allocations: 1.375 kB / 0.9531 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.985e-05/0.7958, allocations: 5.359 kB / 0.9531 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.13e-05/0.7958, allocations: 5.406 kB / 0.9531 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.7958, allocations: 0 / 0.9531 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.663e-05/0.7958, allocations: 84.78 kB / 0.9532 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7959, allocations: 0 / 0.9532 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002079/0.7961, allocations: 4.125 kB / 0.9532 GB, free: 5.363 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.576e-05/0.7962, allocations: 99.73 kB / 0.9533 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001156/0.7963, allocations: 21.73 kB / 0.9533 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.7963, allocations: 4.062 kB / 0.9533 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.86e-05/0.7963, allocations: 16.19 kB / 0.9533 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000209/0.7966, allocations: 5.312 kB / 0.9533 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002861/0.7968, allocations: 126.2 kB / 0.9534 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.797, allocations: 0.6786 MB / 0.9541 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.579e-05/0.797, allocations: 5.531 kB / 0.9541 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.459e-05/0.797, allocations: 11.42 kB / 0.9541 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of SimCode: time 3.81e-07/0.797, allocations: 0 / 0.9541 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of Templates: time 0.002323/0.7994, allocations: 289.1 kB / 0.9544 GB, free: 4.25 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