Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 109.2 kB / 15.99 MB, free: 6.352 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.001489/0.001489, allocations: 192.7 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.341/1.341, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.648/2.648, allocations: 469.8 MB / 0.7427 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 63.8 kB / 0.9087 GB, free: 14.24 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3204, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.5458/0.8662, allocations: 60.1 MB / 1.123 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02168/0.8879, allocations: 13.15 MB / 1.136 GB, free: 8.121 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003269/0.8912, allocations: 64.53 kB / 1.136 GB, free: 8.094 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.003188/0.8944, allocations: 0.8511 MB / 1.137 GB, free: 7.605 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.007569/0.9021, allocations: 2.166 MB / 1.139 GB, free: 6.324 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004766/0.9069, allocations: 1.46 MB / 1.14 GB, free: 5.512 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.007414/0.9143, allocations: 4.342 MB / 1.144 GB, free: 3.422 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002687/0.917, allocations: 1.328 MB / 1.146 GB, free: 2.793 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004737/0.9218, allocations: 1.596 MB / 1.147 GB, free: 2.031 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002611/0.9244, allocations: 1.238 MB / 1.148 GB, free: 1.469 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0004031/0.9248, allocations: 141.2 kB / 1.149 GB, free: 1.469 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004032/0.9289, allocations: 1.522 MB / 1.15 GB, free: 0.9023 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0005698/0.9294, allocations: 432.5 kB / 1.15 GB, free: 0.6562 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001492/0.9309, allocations: 0.9318 MB / 1.151 GB, free: 84 kB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004038/0.935, allocations: 2.137 MB / 1.153 GB, free: 15.4 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.935, allocations: 0 / 1.153 GB, free: 15.4 MB / 0.8887 GB Notification: Performance of FrontEnd: time 5.531e-06/0.935, allocations: 0 / 1.153 GB, free: 15.4 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.787e-05/0.9351, allocations: 3.938 kB / 1.153 GB, free: 15.39 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.004931/0.94, allocations: 2.214 MB / 1.156 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.9401, allocations: 8.812 kB / 1.156 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004507/0.9446, allocations: 0.615 MB / 1.156 GB, free: 13.82 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.9474, allocations: 1.437 MB / 1.158 GB, free: 12.96 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001714/0.9476, allocations: 150.8 kB / 1.158 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/0.9478, allocations: 101.1 kB / 1.158 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00335/0.9511, allocations: 1.385 MB / 1.159 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.9512, allocations: 3.938 kB / 1.159 GB, free: 12.29 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001192/0.9513, allocations: 44.94 kB / 1.159 GB, free: 12.26 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.327e-05/0.9513, allocations: 24.34 kB / 1.159 GB, free: 12.26 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004023/0.9554, allocations: 1.437 MB / 1.161 GB, free: 11.73 MB / 0.8887 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.008772/0.9642, allocations: 5.595 MB / 1.166 GB, free: 7.004 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002756/0.9669, allocations: 1.114 MB / 1.167 GB, free: 6.355 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001678/0.9686, allocations: 0.6236 MB / 1.168 GB, free: 6.066 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001069/0.9697, allocations: 1.242 MB / 1.169 GB, free: 4.609 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001958/0.9717, allocations: 0.686 MB / 1.17 GB, free: 4.238 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=70): time 2.925e-06/0.9717, allocations: 0 / 1.17 GB, free: 4.238 MB / 0.8887 GB Notification: Performance of matching and sorting (n=70): time 0.005646/0.9773, allocations: 1.786 MB / 1.171 GB, free: 3.426 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.9774, allocations: 63.33 kB / 1.172 GB, free: 3.359 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002113/0.9795, allocations: 1.327 MB / 1.173 GB, free: 2.648 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001635/0.9797, allocations: 44.14 kB / 1.173 GB, free: 2.605 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007022/0.9804, allocations: 0.6755 MB / 1.174 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002999/0.9807, allocations: 239 kB / 1.174 GB, free: 1.801 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003436/0.9811, allocations: 178.9 kB / 1.174 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.9812, allocations: 333.7 kB / 1.174 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/0.9829, allocations: 0.5662 MB / 1.175 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001946/0.9849, allocations: 0.7808 MB / 1.176 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003429/0.9883, allocations: 1.207 MB / 1.177 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.9884, allocations: 0 / 1.177 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004693/0.9931, allocations: 1.472 MB / 1.178 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.389e-05/0.9931, allocations: 40.34 kB / 1.178 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.9932, allocations: 7.438 kB / 1.178 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.9932, allocations: 7 kB / 1.178 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/0.9945, allocations: 261.9 kB / 1.178 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/0.9946, allocations: 10.59 kB / 1.178 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001948/0.9965, allocations: 240.5 kB / 1.179 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.9966, allocations: 47.97 kB / 1.179 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002199/0.9988, allocations: 0.8194 MB / 1.18 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001887/1.001, allocations: 0.7762 MB / 1.18 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003228/1.004, allocations: 1.19 MB / 1.181 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.939e-06/1.004, allocations: 1.375 kB / 1.181 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004181/1.008, allocations: 1.456 MB / 1.183 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.935e-05/1.008, allocations: 36.55 kB / 1.183 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/1.008, allocations: 2.906 kB / 1.183 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/1.008, allocations: 11 kB / 1.183 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/1.01, allocations: 264.8 kB / 1.183 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/1.01, allocations: 15.02 kB / 1.183 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001954/1.012, allocations: 218 kB / 1.183 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/1.012, allocations: 44.53 kB / 1.183 GB, free: 12.43 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (chi.tru.y,chi.on,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 1 * 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.0003659/1.012, allocations: 233.6 kB / 1.184 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003715/1.012, allocations: 150.3 kB / 1.184 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003985/1.016, allocations: 1.527 MB / 1.185 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/1.016, allocations: 7.625 kB / 1.185 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/1.016, allocations: 3.984 kB / 1.185 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003202/1.02, allocations: 1.284 MB / 1.187 GB, free: 10.65 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007377/1.027, allocations: 3.292 MB / 1.19 GB, free: 7.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/1.027, allocations: 4 kB / 1.19 GB, free: 7.406 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001221/1.028, allocations: 227.7 kB / 1.19 GB, free: 7.184 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-05/1.028, allocations: 11.94 kB / 1.19 GB, free: 7.172 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-05/1.028, allocations: 27.97 kB / 1.19 GB, free: 7.145 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.419e-05/1.028, allocations: 11.94 kB / 1.19 GB, free: 7.133 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/1.028, allocations: 8 kB / 1.19 GB, free: 7.125 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005971/1.034, allocations: 2.314 MB / 1.192 GB, free: 4.734 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009836/1.035, allocations: 362.7 kB / 1.193 GB, free: 4.359 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002956/1.036, allocations: 19.94 kB / 1.193 GB, free: 4.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/1.037, allocations: 167.9 kB / 1.193 GB, free: 4.176 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/1.038, allocations: 76.34 kB / 1.193 GB, free: 4.102 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/1.038, allocations: 43.97 kB / 1.193 GB, free: 4.059 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001415/1.039, allocations: 0.9454 MB / 1.194 GB, free: 3.117 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/1.039, allocations: 0 / 1.194 GB, free: 3.117 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002557/1.042, allocations: 0.8071 MB / 1.195 GB, free: 2.309 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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.001337/1.043, allocations: 0.5332 MB / 1.195 GB, free: 1.781 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.006057/1.049, allocations: 2.144 MB / 1.197 GB, free: 15.61 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.049, allocations: 0 / 1.197 GB, free: 15.61 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.001967/1.051, allocations: 0.703 MB / 1.198 GB, free: 14.91 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003699/1.055, allocations: 0.7517 MB / 1.199 GB, free: 14.17 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007086/1.062, allocations: 3.538 MB / 1.202 GB, free: 10.54 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000891/1.063, allocations: 1.241 MB / 1.203 GB, free: 9.273 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006698/1.063, allocations: 147.4 kB / 1.204 GB, free: 9.133 MB / 0.92 GB Notification: Performance of SimCode: time 1.122e-06/1.063, allocations: 0 / 1.204 GB, free: 9.133 MB / 0.92 GB Notification: Performance of Templates: time 0.04386/1.107, allocations: 27.24 MB / 1.23 GB, free: 14.11 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches