Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.001434/0.001434, allocations: 99.55 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.001464/0.001465, allocations: 177.3 kB / 15.94 MB, free: 228 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.411/1.411, allocations: 223.2 MB / 239.9 MB, free: 5.43 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.532/2.532, allocations: 390.3 MB / 0.6653 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003685, allocations: 12 kB / 0.8145 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7837/0.7841, allocations: 142.3 MB / 0.9535 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.0578/0.842, allocations: 50.62 MB / 1.003 GB, free: 13.42 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01808/0.8601, allocations: 11.36 MB / 1.014 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002978/0.8632, allocations: 59.56 kB / 1.014 GB, free: 1.984 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.003544/0.8667, allocations: 0.9291 MB / 1.015 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0081/0.8749, allocations: 2.271 MB / 1.017 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.005203/0.8801, allocations: 1.713 MB / 1.019 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.005725/0.8858, allocations: 2.543 MB / 1.021 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001902/0.8877, allocations: 0.9972 MB / 1.022 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002851/0.8906, allocations: 1.168 MB / 1.023 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001621/0.8922, allocations: 0.7894 MB / 1.024 GB, free: 7.566 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0002/0.8924, allocations: 56 kB / 1.024 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00308/0.8955, allocations: 0.9323 MB / 1.025 GB, free: 6.578 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000372/0.8959, allocations: 302.8 kB / 1.026 GB, free: 6.281 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0006417/0.8966, allocations: 364.8 kB / 1.026 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00298/0.8996, allocations: 1.884 MB / 1.028 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.8996, allocations: 3.938 kB / 1.028 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.685e-06/0.8996, allocations: 3.938 kB / 1.028 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.762e-05/0.8996, allocations: 0 / 1.028 GB, free: 4.023 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003941/0.9036, allocations: 1.898 MB / 1.03 GB, free: 2.059 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 7.014e-05/0.9037, allocations: 8.031 kB / 1.03 GB, free: 2.051 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003533/0.9072, allocations: 0.6417 MB / 1.03 GB, free: 1.406 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002607/0.9098, allocations: 1.25 MB / 1.031 GB, free: 108 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.91, allocations: 145.5 kB / 1.032 GB, free: 15.95 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.9102, allocations: 103.9 kB / 1.032 GB, free: 15.85 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00308/0.9133, allocations: 1.334 MB / 1.033 GB, free: 14.48 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/0.9133, allocations: 0 / 1.033 GB, free: 14.48 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.9134, allocations: 40 kB / 1.033 GB, free: 14.44 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/0.9135, allocations: 24 kB / 1.033 GB, free: 14.41 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003509/0.917, allocations: 1.382 MB / 1.034 GB, free: 13.04 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.008082/0.9251, allocations: 5.394 MB / 1.04 GB, free: 7.285 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002779/0.9279, allocations: 1.117 MB / 1.041 GB, free: 6.121 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001294/0.9292, allocations: 1.232 MB / 1.042 GB, free: 4.613 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001859/0.9311, allocations: 0.6939 MB / 1.043 GB, free: 3.91 MB / 0.795 GB Notification: Performance of pre-optimization done (n=69): time 3.828e-06/0.9311, allocations: 0 / 1.043 GB, free: 3.91 MB / 0.795 GB Notification: Performance of matching and sorting (n=69): time 0.005187/0.9363, allocations: 1.789 MB / 1.044 GB, free: 2.113 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/0.9364, allocations: 63.97 kB / 1.044 GB, free: 2.039 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001837/0.9382, allocations: 1.312 MB / 1.046 GB, free: 0.7188 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.9384, allocations: 41.7 kB / 1.046 GB, free: 0.6719 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000653/0.939, allocations: 0.674 MB / 1.046 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002516/0.9393, allocations: 236.6 kB / 1.047 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.183e-05/0.9393, allocations: 16 kB / 1.047 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.9395, allocations: 337.9 kB / 1.047 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001508/0.941, allocations: 0.5485 MB / 1.047 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001693/0.9427, allocations: 0.7704 MB / 1.048 GB, free: 14 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/0.9443, allocations: 0.6058 MB / 1.049 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.9443, allocations: 4 kB / 1.049 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003809/0.9481, allocations: 1.465 MB / 1.05 GB, free: 11.9 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005793/0.9487, allocations: 1.207 MB / 1.051 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.9487, allocations: 4 kB / 1.051 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.9488, allocations: 4 kB / 1.051 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/0.95, allocations: 279.6 kB / 1.052 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.9501, allocations: 8 kB / 1.052 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/0.9519, allocations: 243 kB / 1.052 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.952, allocations: 47.91 kB / 1.052 GB, free: 10.01 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.952, allocations: 8 kB / 1.052 GB, free: 10 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003307/0.9553, allocations: 1.305 MB / 1.053 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.9554, allocations: 7.984 kB / 1.053 GB, free: 8.684 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.9554, allocations: 8 kB / 1.053 GB, free: 8.676 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/0.9566, allocations: 276 kB / 1.054 GB, free: 8.406 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.9566, allocations: 11.94 kB / 1.054 GB, free: 8.395 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.9586, allocations: 239.1 kB / 1.054 GB, free: 8.16 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-05/0.9587, allocations: 39.91 kB / 1.054 GB, free: 8.121 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009382/0.9596, allocations: 420.8 kB / 1.054 GB, free: 7.699 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.9599, allocations: 150.1 kB / 1.054 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003775/0.9637, allocations: 1.54 MB / 1.056 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/0.9637, allocations: 4 kB / 1.056 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.9637, allocations: 4 kB / 1.056 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003069/0.9668, allocations: 1.292 MB / 1.057 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007201/0.974, allocations: 3.281 MB / 1.06 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.9741, allocations: 4 kB / 1.06 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/0.9752, allocations: 236.2 kB / 1.061 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.508e-05/0.9753, allocations: 8 kB / 1.061 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.451e-05/0.9754, allocations: 23.98 kB / 1.061 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.532e-05/0.9754, allocations: 15.92 kB / 1.061 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/0.9754, allocations: 7.953 kB / 1.061 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006112/0.9815, allocations: 2.613 MB / 1.063 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/0.9828, allocations: 378.7 kB / 1.064 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004048/0.9832, allocations: 23.98 kB / 1.064 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001728/0.9849, allocations: 184.3 kB / 1.064 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.9851, allocations: 68.41 kB / 1.064 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.9853, allocations: 43.97 kB / 1.064 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001752/0.987, allocations: 0.9294 MB / 1.065 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.582e-06/0.987, allocations: 0 / 1.065 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002971/0.99, allocations: 0.7992 MB / 1.066 GB, free: 11.64 MB / 0.8262 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 (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00147/0.9915, allocations: 0.5208 MB / 1.066 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.005638/0.9971, allocations: 2.093 MB / 1.068 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.9972, allocations: 4 kB / 1.068 GB, free: 9 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.9991, allocations: 0.7108 MB / 1.069 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004136/1.003, allocations: 0.7354 MB / 1.07 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006463/1.01, allocations: 3.225 MB / 1.073 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/1.011, allocations: 1.276 MB / 1.074 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.002036/1.013, allocations: 361.9 kB / 1.074 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004668/1.013, allocations: 119.4 kB / 1.074 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of SimCode: time 1.423e-06/1.013, allocations: 0 / 1.074 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of Templates: time 0.05677/1.07, allocations: 29.36 MB / 1.103 GB, free: 5.512 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches