Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.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_latest_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_latest_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.001183/0.001183, allocations: 92.7 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002181/0.002181, allocations: 178.9 kB / 16.92 MB, free: 6.652 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.371/1.371, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.618/2.618, allocations: 443.2 MB / 0.7181 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003848/0.0003852, allocations: 10.25 kB / 0.8801 GB, free: 42.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3133, allocations: 155.2 MB / 1.032 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05563/0.3689, allocations: 59.12 MB / 1.089 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.01915/0.3881, allocations: 13.15 MB / 1.102 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002546/0.3907, allocations: 59.62 kB / 1.102 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002765/0.3935, allocations: 0.816 MB / 1.103 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.006695/0.4002, allocations: 2.142 MB / 1.105 GB, free: 9.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004156/0.4044, allocations: 1.435 MB / 1.107 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.006976/0.4114, allocations: 5.57 MB / 1.112 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002175/0.4136, allocations: 1.115 MB / 1.113 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003114/0.4167, allocations: 1.31 MB / 1.114 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002148/0.4189, allocations: 1.174 MB / 1.116 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0003948/0.4193, allocations: 60 kB / 1.116 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003452/0.4227, allocations: 1.395 MB / 1.117 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0005482/0.4233, allocations: 350.4 kB / 1.117 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001449/0.4248, allocations: 0.8525 MB / 1.118 GB, free: 11.93 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002991/0.4278, allocations: 2.073 MB / 1.12 GB, free: 9.855 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.4278, allocations: 0 / 1.12 GB, free: 9.855 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.362e-06/0.4278, allocations: 0 / 1.12 GB, free: 9.855 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.792e-05/0.4279, allocations: 0 / 1.12 GB, free: 9.855 MB / 0.8731 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.003768/0.4316, allocations: 1.917 MB / 1.122 GB, free: 7.875 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.4317, allocations: 8.031 kB / 1.122 GB, free: 7.867 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00389/0.4356, allocations: 0.5878 MB / 1.123 GB, free: 7.277 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002568/0.4382, allocations: 1.418 MB / 1.124 GB, free: 5.805 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001761/0.4384, allocations: 153.4 kB / 1.124 GB, free: 5.645 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002185/0.4386, allocations: 100 kB / 1.124 GB, free: 5.547 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003266/0.4419, allocations: 1.362 MB / 1.126 GB, free: 4.148 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/0.4419, allocations: 3.938 kB / 1.126 GB, free: 4.145 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.442, allocations: 40 kB / 1.126 GB, free: 4.105 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.273e-05/0.4421, allocations: 24 kB / 1.126 GB, free: 4.082 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004005/0.4461, allocations: 1.405 MB / 1.127 GB, free: 2.68 MB / 0.8731 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.008221/0.4543, allocations: 5.525 MB / 1.132 GB, free: 12.8 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00284/0.4572, allocations: 1.104 MB / 1.133 GB, free: 11.66 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001741/0.459, allocations: 0.6271 MB / 1.134 GB, free: 11.03 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000883/0.4599, allocations: 1.244 MB / 1.135 GB, free: 9.508 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001899/0.4618, allocations: 0.6901 MB / 1.136 GB, free: 8.805 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=70): time 3.376e-06/0.4618, allocations: 0 / 1.136 GB, free: 8.805 MB / 0.8887 GB Notification: Performance of matching and sorting (n=70): time 0.005463/0.4673, allocations: 1.816 MB / 1.138 GB, free: 6.98 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.4673, allocations: 63.97 kB / 1.138 GB, free: 6.906 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001954/0.4693, allocations: 1.329 MB / 1.139 GB, free: 5.57 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001148/0.4694, allocations: 41.7 kB / 1.139 GB, free: 5.523 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.000598/0.47, allocations: 0.674 MB / 1.14 GB, free: 4.84 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002466/0.4703, allocations: 240.5 kB / 1.14 GB, free: 4.602 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.4704, allocations: 73.67 kB / 1.14 GB, free: 4.523 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.4706, allocations: 334 kB / 1.14 GB, free: 4.191 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.4723, allocations: 0.5602 MB / 1.141 GB, free: 3.629 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001857/0.4741, allocations: 0.7989 MB / 1.142 GB, free: 2.746 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00332/0.4775, allocations: 1.226 MB / 1.143 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-06/0.4775, allocations: 4 kB / 1.143 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004146/0.4816, allocations: 1.497 MB / 1.144 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.4818, allocations: 208.4 kB / 1.145 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.4818, allocations: 8 kB / 1.145 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.4819, allocations: 8 kB / 1.145 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.4832, allocations: 275.6 kB / 1.145 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/0.4832, allocations: 8 kB / 1.145 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/0.4851, allocations: 242.9 kB / 1.145 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.4852, allocations: 39.97 kB / 1.145 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/0.4852, allocations: 4 kB / 1.145 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003721/0.489, allocations: 1.333 MB / 1.146 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.489, allocations: 4 kB / 1.146 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-06/0.489, allocations: 8 kB / 1.146 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.4903, allocations: 271.8 kB / 1.147 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.092e-05/0.4903, allocations: 15.92 kB / 1.147 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001776/0.4921, allocations: 231.2 kB / 1.147 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.405e-05/0.4922, allocations: 31.98 kB / 1.147 GB, free: 13.23 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.000735/0.493, allocations: 434.2 kB / 1.147 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003239/0.4933, allocations: 154.1 kB / 1.148 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004233/0.4975, allocations: 1.548 MB / 1.149 GB, free: 11.08 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-05/0.4976, allocations: 11.94 kB / 1.149 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.4976, allocations: 0 / 1.149 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003479/0.5011, allocations: 1.304 MB / 1.15 GB, free: 9.734 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007071/0.5082, allocations: 3.313 MB / 1.154 GB, free: 6.262 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.5082, allocations: 12.02 kB / 1.154 GB, free: 6.25 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.5095, allocations: 231.7 kB / 1.154 GB, free: 6.023 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.575e-05/0.5095, allocations: 12 kB / 1.154 GB, free: 6.012 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-05/0.5096, allocations: 27.92 kB / 1.154 GB, free: 5.984 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-05/0.5096, allocations: 11.98 kB / 1.154 GB, free: 5.973 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.5096, allocations: 7.938 kB / 1.154 GB, free: 5.965 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005906/0.5155, allocations: 2.349 MB / 1.156 GB, free: 3.543 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007766/0.5163, allocations: 378.7 kB / 1.157 GB, free: 3.152 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003267/0.5167, allocations: 19.94 kB / 1.157 GB, free: 3.133 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001729/0.5184, allocations: 183.7 kB / 1.157 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.5186, allocations: 72.36 kB / 1.157 GB, free: 2.883 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.888e-05/0.5187, allocations: 35.97 kB / 1.157 GB, free: 2.848 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001579/0.5203, allocations: 0.961 MB / 1.158 GB, free: 1.891 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5203, allocations: 0 / 1.158 GB, free: 1.891 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.00254/0.5228, allocations: 0.7992 MB / 1.159 GB, free: 1.09 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.001347/0.5242, allocations: 0.5066 MB / 1.159 GB, free: 0.5859 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.006065/0.5303, allocations: 2.124 MB / 1.161 GB, free: 14.44 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.5303, allocations: 0 / 1.161 GB, free: 14.44 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.002055/0.5324, allocations: 0.7069 MB / 1.162 GB, free: 13.73 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005608/0.538, allocations: 0.7744 MB / 1.163 GB, free: 12.96 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007765/0.5458, allocations: 3.569 MB / 1.166 GB, free: 9.305 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001112/0.5469, allocations: 1.25 MB / 1.167 GB, free: 8.023 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007691/0.5477, allocations: 139.4 kB / 1.167 GB, free: 7.887 MB / 0.92 GB Notification: Performance of SimCode: time 9.82e-07/0.5477, allocations: 0 / 1.167 GB, free: 7.887 MB / 0.92 GB Notification: Performance of Templates: time 0.04628/0.594, allocations: 26.94 MB / 1.194 GB, free: 13.16 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches