Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001758/0.001758, allocations: 106.5 kB / 16.27 MB, free: 5.984 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.001918/0.001918, allocations: 191.7 kB / 17.2 MB, free: 5.621 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.446/1.446, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.804/2.804, allocations: 482.4 MB / 0.7553 GB, free: 7.004 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002596/0.002596, allocations: 60.84 kB / 0.9245 GB, free: 28 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.001/1.004, allocations: 162.2 MB / 1.083 GB, free: 1.676 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.00297/1.007, allocations: 1.421 MB / 1.084 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007105/1.007, allocations: 391.2 kB / 1.085 GB, free: 428 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.698e-05/1.007, allocations: 1.25 kB / 1.085 GB, free: 428 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.785e-05/1.007, allocations: 4.656 kB / 1.085 GB, free: 424 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.69e-05/1.008, allocations: 3.938 kB / 1.085 GB, free: 420 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001686/1.008, allocations: 10.5 kB / 1.085 GB, free: 416 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.721e-05/1.008, allocations: 28.09 kB / 1.085 GB, free: 400 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/1.008, allocations: 4.125 kB / 1.085 GB, free: 400 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.112e-05/1.008, allocations: 19.09 kB / 1.085 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.488e-05/1.008, allocations: 14.05 kB / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/1.008, allocations: 1.406 kB / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.193e-05/1.008, allocations: 2.625 kB / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.671e-05/1.008, allocations: 5.266 kB / 1.085 GB, free: 376 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.464e-05/1.008, allocations: 11.83 kB / 1.085 GB, free: 368 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.395e-05/1.008, allocations: 23.39 kB / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/1.008, allocations: 0.75 kB / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/1.008, allocations: 0 / 1.085 GB, free: 356 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.47e-06/1.008, allocations: 1.156 kB / 1.085 GB, free: 356 kB / 0.8262 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.0004287/1.009, allocations: 334.4 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/1.009, allocations: 9.812 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.138e-05/1.009, allocations: 2.062 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000172/1.009, allocations: 175.9 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/1.009, allocations: 1.125 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.659e-05/1.009, allocations: 2.438 kB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/1.009, allocations: 50.28 kB / 1.085 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/1.009, allocations: 0 / 1.085 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/1.009, allocations: 3.984 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/1.009, allocations: 1.406 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.092e-05/1.009, allocations: 18.77 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004264/1.01, allocations: 251.3 kB / 1.086 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 9.555e-05/1.01, allocations: 34.2 kB / 1.086 GB, free: 15.42 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.169e-05/1.01, allocations: 23.58 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/1.01, allocations: 0 / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/1.01, allocations: 40.92 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.011e-06/1.01, allocations: 0 / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0002553/1.01, allocations: 55.5 kB / 1.086 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/1.01, allocations: 53.06 kB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/1.01, allocations: 104.2 kB / 1.086 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/1.01, allocations: 33.64 kB / 1.086 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.124e-05/1.011, allocations: 83 kB / 1.086 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/1.011, allocations: 9.938 kB / 1.086 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-05/1.011, allocations: 20 kB / 1.086 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002476/1.011, allocations: 313.6 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.616e-05/1.011, allocations: 7.797 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.953e-05/1.011, allocations: 11.33 kB / 1.086 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.519e-05/1.011, allocations: 28.38 kB / 1.086 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/1.011, allocations: 0 / 1.086 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001314/1.011, allocations: 58.28 kB / 1.086 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/1.011, allocations: 5.344 kB / 1.086 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/1.011, allocations: 3.984 kB / 1.086 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/1.011, allocations: 1.094 kB / 1.086 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.615e-05/1.011, allocations: 9.438 kB / 1.086 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/1.011, allocations: 2.266 kB / 1.086 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.275e-05/1.011, allocations: 1.906 kB / 1.086 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/1.011, allocations: 0.7969 kB / 1.086 GB, free: 14.62 MB / 0.8419 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 0.0001082/1.012, allocations: 121.8 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.177e-05/1.012, allocations: 0 / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.105e-05/1.012, allocations: 5.375 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/1.012, allocations: 1.5 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/1.012, allocations: 1.078 kB / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/1.012, allocations: 0 / 1.087 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001937/1.012, allocations: 160.1 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/1.012, allocations: 1.281 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.444e-05/1.012, allocations: 5.219 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/1.012, allocations: 0 / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/1.012, allocations: 5.891 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/1.012, allocations: 0 / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.012, allocations: 2.078 kB / 1.087 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001946/1.012, allocations: 153.3 kB / 1.087 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.1e-05/1.012, allocations: 81.53 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/1.012, allocations: 1.812 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.149e-05/1.012, allocations: 3.562 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/1.012, allocations: 6.234 kB / 1.087 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/1.012, allocations: 7.938 kB / 1.087 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.541e-05/1.012, allocations: 87.42 kB / 1.087 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.645e-06/1.012, allocations: 0 / 1.087 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002062/1.013, allocations: 6.688 kB / 1.087 GB, free: 13.96 MB / 0.8419 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.0001267/1.013, allocations: 101.5 kB / 1.087 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001545/1.013, allocations: 26.62 kB / 1.087 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/1.013, allocations: 0 / 1.087 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.435e-05/1.013, allocations: 17.56 kB / 1.087 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/1.013, allocations: 11.2 kB / 1.087 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003666/1.014, allocations: 140.5 kB / 1.087 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/1.014, allocations: 0.6768 MB / 1.088 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.791e-05/1.014, allocations: 14.23 kB / 1.088 GB, free: 13 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/1.014, allocations: 0 / 1.088 GB, free: 13 MB / 0.8419 GB Notification: Performance of Templates: time 0.00247/1.016, allocations: 0.5082 MB / 1.089 GB, free: 12.97 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_KMinusU.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches