Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.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.Fluid.Chillers.Examples.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.sta_a1.T|chi.sta_b1.T|chi.sta_a2.T|chi.sta_b2.T|chi.QEva_flow|chi.QCon_flow|chi.P|chi.dp1|chi.dp2|chi.COP_nominal|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y") translateModel(Buildings.Fluid.Chillers.Examples.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.sta_a1.T|chi.sta_b1.T|chi.sta_a2.T|chi.sta_b2.T|chi.QEva_flow|chi.QCon_flow|chi.P|chi.dp1|chi.dp2|chi.COP_nominal|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001427/0.001428, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.469/2.469, allocations: 390.3 MB / 0.6653 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 12 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9077/0.9081, allocations: 142.3 MB / 0.9535 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.Carnot_y): time 0.06239/0.9705, allocations: 62.96 MB / 1.015 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01811/0.9887, allocations: 11 MB / 1.026 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003121/0.9918, allocations: 59.56 kB / 1.026 GB, free: 5.961 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002955/0.9948, allocations: 0.7423 MB / 1.027 GB, free: 5.215 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.008635/1.003, allocations: 2.306 MB / 1.029 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004689/1.008, allocations: 1.524 MB / 1.03 GB, free: 1.41 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.005007/1.013, allocations: 2.51 MB / 1.033 GB, free: 14.89 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001702/1.015, allocations: 1.039 MB / 1.034 GB, free: 13.83 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002499/1.017, allocations: 1.156 MB / 1.035 GB, free: 12.67 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001163/1.019, allocations: 0.77 MB / 1.036 GB, free: 11.9 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001376/1.019, allocations: 56 kB / 1.036 GB, free: 11.84 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002438/1.021, allocations: 0.8347 MB / 1.036 GB, free: 11.01 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0003079/1.022, allocations: 262.9 kB / 1.037 GB, free: 10.75 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0004766/1.022, allocations: 360.9 kB / 1.037 GB, free: 10.39 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.002496/1.024, allocations: 2.007 MB / 1.039 GB, free: 8.379 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/1.025, allocations: 3.938 kB / 1.039 GB, free: 8.375 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.084e-06/1.025, allocations: 0 / 1.039 GB, free: 8.375 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.522e-05/1.025, allocations: 0 / 1.039 GB, free: 8.375 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003247/1.028, allocations: 1.775 MB / 1.041 GB, free: 6.535 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/1.028, allocations: 12.03 kB / 1.041 GB, free: 6.523 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007419/1.029, allocations: 241.9 kB / 1.041 GB, free: 6.285 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002212/1.031, allocations: 1.373 MB / 1.042 GB, free: 4.855 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.274e-05/1.031, allocations: 78 kB / 1.042 GB, free: 4.781 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001444/1.031, allocations: 111.9 kB / 1.043 GB, free: 4.672 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001897/1.033, allocations: 1.108 MB / 1.044 GB, free: 3.527 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/1.033, allocations: 0 / 1.044 GB, free: 3.527 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.326e-05/1.033, allocations: 44 kB / 1.044 GB, free: 3.484 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.88e-05/1.033, allocations: 24 kB / 1.044 GB, free: 3.461 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/1.035, allocations: 0.9173 MB / 1.045 GB, free: 2.547 MB / 0.795 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005842/1.041, allocations: 4.954 MB / 1.049 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/1.042, allocations: 0.6409 MB / 1.05 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005991/1.043, allocations: 0.8238 MB / 1.051 GB, free: 11.65 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/1.043, allocations: 43.12 kB / 1.051 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=61): time 2.134e-06/1.043, allocations: 0 / 1.051 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of matching and sorting (n=61): time 0.007051/1.05, allocations: 1.877 MB / 1.053 GB, free: 9.691 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/1.05, allocations: 63.91 kB / 1.053 GB, free: 9.617 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/1.052, allocations: 1.245 MB / 1.054 GB, free: 8.355 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.208e-05/1.052, allocations: 37.7 kB / 1.054 GB, free: 8.312 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004802/1.052, allocations: 0.6026 MB / 1.055 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/1.052, allocations: 220.8 kB / 1.055 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/1.052, allocations: 12 kB / 1.055 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001171/1.053, allocations: 333.9 kB / 1.055 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006355/1.053, allocations: 301.8 kB / 1.055 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007909/1.054, allocations: 499.9 kB / 1.056 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007012/1.055, allocations: 359 kB / 1.056 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/1.055, allocations: 4 kB / 1.056 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004599/1.059, allocations: 1.386 MB / 1.058 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009619/1.06, allocations: 1.427 MB / 1.059 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/1.06, allocations: 0 / 1.059 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007413/1.061, allocations: 148.7 kB / 1.059 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007093/1.062, allocations: 163.8 kB / 1.059 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/1.063, allocations: 0.7122 MB / 1.06 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001636/1.065, allocations: 167 kB / 1.06 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-05/1.065, allocations: 31.98 kB / 1.06 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/1.065, allocations: 11.94 kB / 1.06 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004441/1.069, allocations: 1.242 MB / 1.061 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/1.069, allocations: 4 kB / 1.061 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004846/1.07, allocations: 153 kB / 1.062 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005731/1.07, allocations: 163.8 kB / 1.062 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007986/1.071, allocations: 0.7084 MB / 1.062 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/1.072, allocations: 155.1 kB / 1.063 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.544e-05/1.072, allocations: 36 kB / 1.063 GB, free: 15.28 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (79): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0008063/1.073, allocations: 424.8 kB / 1.063 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/1.073, allocations: 134.4 kB / 1.063 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004481/1.078, allocations: 1.389 MB / 1.064 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/1.078, allocations: 12 kB / 1.064 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/1.078, allocations: 0 / 1.064 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004099/1.082, allocations: 1.236 MB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007162/1.089, allocations: 2.758 MB / 1.068 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.089, allocations: 4 kB / 1.068 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005078/1.09, allocations: 124.2 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005138/1.09, allocations: 136.7 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-05/1.09, allocations: 19.98 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004907/1.095, allocations: 2.506 MB / 1.071 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.095, allocations: 7.938 kB / 1.071 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005846/1.101, allocations: 2.054 MB / 1.073 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008824/1.102, allocations: 343 kB / 1.073 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/1.102, allocations: 24.55 kB / 1.073 GB, free: 3.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008557/1.103, allocations: 95.88 kB / 1.074 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/1.103, allocations: 64.19 kB / 1.074 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.631e-05/1.103, allocations: 31.92 kB / 1.074 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001306/1.105, allocations: 0.905 MB / 1.075 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/1.105, allocations: 0 / 1.075 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00196/1.107, allocations: 0.7174 MB / 1.075 GB, free: 1.75 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (chi.con.vol.dynBal.U,chi.eva.vol.dynBal.U) * 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 (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008597/1.108, allocations: 446.3 kB / 1.076 GB, free: 1.312 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002615/1.11, allocations: 1.16 MB / 1.077 GB, free: 160 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/1.11, allocations: 0 / 1.077 GB, free: 160 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001507/1.112, allocations: 0.5917 MB / 1.077 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003588/1.115, allocations: 0.7551 MB / 1.078 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003968/1.119, allocations: 2.754 MB / 1.081 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007245/1.12, allocations: 1.2 MB / 1.082 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001265/1.121, allocations: 307 kB / 1.082 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/1.122, allocations: 107.4 kB / 1.082 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of SimCode: time 5.01e-07/1.122, allocations: 0 / 1.082 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of Templates: time 0.05374/1.175, allocations: 29.95 MB / 1.112 GB, free: 12.75 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_Carnot_y.csv","../files/Buildings_9_Buildings.Fluid.Chillers.Examples.Carnot_y.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches