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.001694/0.001694, allocations: 105.9 kB / 16.27 MB, free: 6.414 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.001932/0.001932, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.439/1.439, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.237/2.237, allocations: 390.3 MB / 0.6653 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 66.09 kB / 0.8132 GB, free: 33.11 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2754, allocations: 140.4 MB / 0.9503 GB, free: 8.855 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.KMinusU): time 0.003186/0.2786, allocations: 1.423 MB / 0.9517 GB, free: 7.418 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0006543/0.2793, allocations: 387.2 kB / 0.952 GB, free: 7.035 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.143e-05/0.2793, allocations: 4 kB / 0.952 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.669e-05/0.2794, allocations: 3.938 kB / 0.952 GB, free: 7.027 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.251e-05/0.2795, allocations: 7.922 kB / 0.9521 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001501/0.2796, allocations: 7.984 kB / 0.9521 GB, free: 7.012 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.717e-05/0.2797, allocations: 27.92 kB / 0.9521 GB, free: 6.984 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.679e-05/0.2798, allocations: 8 kB / 0.9521 GB, free: 6.977 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.219e-05/0.2799, allocations: 15.92 kB / 0.9521 GB, free: 6.961 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.399e-05/0.28, allocations: 8 kB / 0.9521 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.504e-05/0.28, allocations: 0 / 0.9521 GB, free: 6.953 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.253e-05/0.28, allocations: 4 kB / 0.9521 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.057e-05/0.28, allocations: 7.922 kB / 0.9521 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.398e-05/0.2801, allocations: 15.92 kB / 0.9521 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.315e-05/0.2802, allocations: 19.97 kB / 0.9522 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.2802, allocations: 0 / 0.9522 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.725e-06/0.2802, allocations: 3.938 kB / 0.9522 GB, free: 6.902 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.2802, allocations: 7.938 kB / 0.9522 GB, free: 6.895 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.0004312/0.2806, allocations: 339.6 kB / 0.9525 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2807, allocations: 8.031 kB / 0.9525 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.406e-05/0.2807, allocations: 8.938 kB / 0.9525 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.2808, allocations: 168.4 kB / 0.9527 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.764e-06/0.2809, allocations: 384 / 0.9527 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.2809, allocations: 4.375 kB / 0.9527 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000141/0.281, allocations: 46 kB / 0.9527 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.281, allocations: 4 kB / 0.9527 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-06/0.2811, allocations: 0 / 0.9527 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2811, allocations: 0 / 0.9527 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.302e-05/0.2812, allocations: 19.98 kB / 0.9527 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003513/0.2815, allocations: 252.8 kB / 0.953 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.326e-05/0.2816, allocations: 34.5 kB / 0.953 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.533e-05/0.2817, allocations: 24.91 kB / 0.953 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.2817, allocations: 0 / 0.953 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.936e-05/0.2817, allocations: 30.56 kB / 0.9531 GB, free: 5.812 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 9.01e-07/0.2817, allocations: 4 kB / 0.9531 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0002289/0.282, allocations: 57.62 kB / 0.9531 GB, free: 5.746 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/0.282, allocations: 55.53 kB / 0.9532 GB, free: 5.68 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.57e-05/0.2821, allocations: 105.8 kB / 0.9533 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.2821, allocations: 29.7 kB / 0.9533 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.132e-05/0.2822, allocations: 80.14 kB / 0.9534 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.2822, allocations: 11.83 kB / 0.9534 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.879e-05/0.2822, allocations: 17.72 kB / 0.9534 GB, free: 5.414 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2824, allocations: 310.8 kB / 0.9537 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.461e-05/0.2824, allocations: 11.98 kB / 0.9537 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.332e-05/0.2824, allocations: 12 kB / 0.9537 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.808e-05/0.2825, allocations: 28.78 kB / 0.9538 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2825, allocations: 0 / 0.9538 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001149/0.2827, allocations: 53.62 kB / 0.9538 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.2827, allocations: 4 kB / 0.9538 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2827, allocations: 0 / 0.9538 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.2827, allocations: 3.984 kB / 0.9538 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.261e-05/0.2828, allocations: 8.094 kB / 0.9538 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.2828, allocations: 7.922 kB / 0.9538 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.228e-05/0.2828, allocations: 4 kB / 0.9538 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-06/0.2829, allocations: 0 / 0.9538 GB, free: 4.961 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.692e-05/0.2829, allocations: 117.3 kB / 0.954 GB, free: 4.84 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.283, allocations: 11.89 kB / 0.954 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.888e-05/0.283, allocations: 3.531 kB / 0.954 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.283, allocations: 0 / 0.954 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.283, allocations: 0 / 0.954 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.283, allocations: 4 kB / 0.954 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.2832, allocations: 161.6 kB / 0.9541 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2832, allocations: 256 / 0.9541 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.855e-05/0.2832, allocations: 11.98 kB / 0.9541 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.2832, allocations: 0 / 0.9541 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.2833, allocations: 0 / 0.9541 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2833, allocations: 0 / 0.9541 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2833, allocations: 3.938 kB / 0.9541 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001601/0.2834, allocations: 151.5 kB / 0.9543 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.2835, allocations: 85.09 kB / 0.9544 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.2835, allocations: 0 / 0.9544 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.05e-05/0.2836, allocations: 0 / 0.9544 GB, free: 4.328 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.003e-05/0.2836, allocations: 7.938 kB / 0.9544 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.2836, allocations: 0 / 0.9544 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.219e-05/0.2837, allocations: 87.27 kB / 0.9545 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2837, allocations: 0 / 0.9545 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002289/0.2839, allocations: 4 kB / 0.9545 GB, free: 4.23 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 9.496e-05/0.284, allocations: 99.28 kB / 0.9546 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001321/0.2841, allocations: 27.92 kB / 0.9546 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2841, allocations: 0 / 0.9546 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 4.514e-05/0.2842, allocations: 15.98 kB / 0.9546 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.2844, allocations: 3.938 kB / 0.9546 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00032/0.2847, allocations: 144.5 kB / 0.9547 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/0.285, allocations: 0.6805 MB / 0.9554 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.42e-05/0.285, allocations: 11.44 kB / 0.9554 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of SimCode: time 4.11e-07/0.285, allocations: 0 / 0.9554 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of Templates: time 0.001854/0.2869, allocations: 0.5162 MB / 0.9559 GB, free: 2.676 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