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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001191/0.001191, allocations: 107 kB / 15.99 MB, free: 6.348 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.001253/0.001253, allocations: 195 kB / 16.91 MB, free: 6.184 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.366/1.366, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.524/2.524, allocations: 469.4 MB / 0.7423 GB, free: 3.883 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 60.73 kB / 0.9083 GB, free: 14.52 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3207, allocations: 159.1 MB / 1.064 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.002985/0.3237, allocations: 1.486 MB / 1.065 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0006309/0.3244, allocations: 391.2 kB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.486e-05/0.3244, allocations: 4 kB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.799e-05/0.3245, allocations: 3.984 kB / 1.066 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.817e-05/0.3246, allocations: 7.922 kB / 1.066 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000162/0.3247, allocations: 8 kB / 1.066 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.532e-05/0.3248, allocations: 23.92 kB / 1.066 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.3249, allocations: 11.94 kB / 1.066 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.998e-05/0.325, allocations: 15.92 kB / 1.066 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.243e-05/0.3251, allocations: 11.94 kB / 1.066 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.379e-05/0.3251, allocations: 0 / 1.066 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.163e-05/0.3251, allocations: 4 kB / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.156e-05/0.3252, allocations: 11.97 kB / 1.066 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.915e-05/0.3252, allocations: 7.938 kB / 1.066 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 6.57e-05/0.3253, allocations: 11.98 kB / 1.066 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.3253, allocations: 0 / 1.066 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3253, allocations: 0 / 1.066 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.3253, allocations: 0 / 1.066 GB, free: 13.4 MB / 0.8419 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.0003765/0.3257, allocations: 347.6 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.3257, allocations: 8.031 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.167e-05/0.3257, allocations: 0.9375 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.3259, allocations: 168.3 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.3259, allocations: 384 / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-06/0.3259, allocations: 384 / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.326, allocations: 46 kB / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.326, allocations: 0 / 1.066 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.3261, allocations: 11.98 kB / 1.066 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3261, allocations: 0 / 1.066 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.42e-05/0.3262, allocations: 19.92 kB / 1.066 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003178/0.3265, allocations: 252.9 kB / 1.066 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.768e-05/0.3266, allocations: 30.56 kB / 1.067 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.32e-05/0.3266, allocations: 24.92 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.3267, allocations: 0 / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.3267, allocations: 30.56 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3267, allocations: 0 / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0002272/0.3269, allocations: 65.61 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.327, allocations: 51.41 kB / 1.067 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.366e-05/0.3271, allocations: 106 kB / 1.067 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.3271, allocations: 29.7 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.255e-05/0.3271, allocations: 84.14 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.3271, allocations: 7.844 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.54e-05/0.3272, allocations: 21.7 kB / 1.067 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3273, allocations: 310.8 kB / 1.067 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.161e-05/0.3273, allocations: 8 kB / 1.067 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.292e-05/0.3274, allocations: 11.98 kB / 1.067 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.237e-05/0.3275, allocations: 32.84 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3275, allocations: 0 / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000112/0.3276, allocations: 53.53 kB / 1.067 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3276, allocations: 8 kB / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.3276, allocations: 3.938 kB / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.3276, allocations: 0 / 1.067 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.461e-05/0.3277, allocations: 7.984 kB / 1.067 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.3277, allocations: 0 / 1.067 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.303e-05/0.3278, allocations: 8.031 kB / 1.067 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.3278, allocations: 0 / 1.067 GB, free: 11.46 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 7.177e-05/0.3279, allocations: 113.8 kB / 1.067 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.406e-05/0.3279, allocations: 4 kB / 1.067 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.927e-05/0.3279, allocations: 3.531 kB / 1.067 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3279, allocations: 0 / 1.067 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3279, allocations: 3.984 kB / 1.067 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3279, allocations: 0 / 1.067 GB, free: 11.33 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001518/0.3281, allocations: 165.6 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3281, allocations: 4 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.211e-05/0.3282, allocations: 4 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3282, allocations: 7.922 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.3282, allocations: 0 / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3282, allocations: 0 / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3282, allocations: 0 / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001639/0.3284, allocations: 155.4 kB / 1.068 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/0.3284, allocations: 85.02 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.3284, allocations: 256 / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.084e-05/0.3285, allocations: 7.984 kB / 1.068 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/0.3285, allocations: 0 / 1.068 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/0.3285, allocations: 7.984 kB / 1.068 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 3.61e-05/0.3286, allocations: 83.28 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3286, allocations: 0 / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002067/0.3288, allocations: 4 kB / 1.068 GB, free: 10.73 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.0001062/0.3289, allocations: 103.3 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000124/0.329, allocations: 23.92 kB / 1.068 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.329, allocations: 4 kB / 1.068 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 4.118e-05/0.3291, allocations: 8 kB / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.3293, allocations: 11.92 kB / 1.068 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002946/0.3296, allocations: 144.6 kB / 1.068 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/0.3298, allocations: 0.6729 MB / 1.069 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.589e-05/0.3299, allocations: 11.42 kB / 1.069 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of SimCode: time 3.61e-07/0.3299, allocations: 0 / 1.069 GB, free: 9.699 MB / 0.8419 GB Notification: Performance of Templates: time 0.001775/0.3317, allocations: 0.5157 MB / 1.069 GB, free: 9.188 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=480 -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