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.001235/0.001235, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.009062/0.009062, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.511/1.511, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.081/3.081, allocations: 462.6 MB / 0.7363 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004728/0.0004728, allocations: 8.25 kB / 0.9027 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3863, allocations: 159.6 MB / 1.059 GB, free: 5.047 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05672/0.443, allocations: 59.13 MB / 1.116 GB, free: 9.719 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02132/0.4644, allocations: 13.15 MB / 1.129 GB, free: 12.54 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00312/0.4676, allocations: 63.56 kB / 1.129 GB, free: 12.47 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003169/0.4708, allocations: 0.8121 MB / 1.13 GB, free: 11.66 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007278/0.4781, allocations: 2.149 MB / 1.132 GB, free: 9.5 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.00392/0.482, allocations: 1.42 MB / 1.134 GB, free: 8.09 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.006492/0.4885, allocations: 5.569 MB / 1.139 GB, free: 2.508 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002051/0.4906, allocations: 1.107 MB / 1.14 GB, free: 1.371 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002824/0.4934, allocations: 1.318 MB / 1.141 GB, free: 48 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.4951, allocations: 1.182 MB / 1.142 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001677/0.4953, allocations: 60 kB / 1.143 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003129/0.4984, allocations: 1.407 MB / 1.144 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003891/0.4988, allocations: 342.4 kB / 1.144 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.00108/0.4999, allocations: 0.8486 MB / 1.145 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003768/0.5037, allocations: 2.698 MB / 1.148 GB, free: 9.488 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.5037, allocations: 0 / 1.148 GB, free: 9.488 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.545e-06/0.5037, allocations: 3.938 kB / 1.148 GB, free: 9.484 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.192e-05/0.5038, allocations: 0 / 1.148 GB, free: 9.484 MB / 0.9044 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.003658/0.5074, allocations: 1.914 MB / 1.15 GB, free: 7.508 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.5075, allocations: 11.97 kB / 1.15 GB, free: 7.496 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003763/0.5113, allocations: 0.5917 MB / 1.15 GB, free: 6.902 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002508/0.5138, allocations: 1.418 MB / 1.152 GB, free: 5.43 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.514, allocations: 157.3 kB / 1.152 GB, free: 5.266 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.5141, allocations: 100 kB / 1.152 GB, free: 5.168 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00308/0.5172, allocations: 1.362 MB / 1.153 GB, free: 3.77 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.758e-05/0.5173, allocations: 3.906 kB / 1.153 GB, free: 3.766 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/0.5174, allocations: 40 kB / 1.153 GB, free: 3.727 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.458e-05/0.5174, allocations: 27.94 kB / 1.153 GB, free: 3.699 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003834/0.5213, allocations: 1.413 MB / 1.155 GB, free: 2.285 MB / 0.9044 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.007653/0.5289, allocations: 5.494 MB / 1.16 GB, free: 12.44 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002642/0.5316, allocations: 1.108 MB / 1.161 GB, free: 11.29 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.5334, allocations: 0.6366 MB / 1.162 GB, free: 10.64 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001013/0.5344, allocations: 1.236 MB / 1.163 GB, free: 9.133 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00192/0.5363, allocations: 0.7018 MB / 1.164 GB, free: 8.422 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 3.516e-06/0.5364, allocations: 0 / 1.164 GB, free: 8.422 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.005294/0.5417, allocations: 1.813 MB / 1.165 GB, free: 6.602 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.5417, allocations: 59.97 kB / 1.165 GB, free: 6.531 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002007/0.5437, allocations: 1.329 MB / 1.167 GB, free: 5.195 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.5438, allocations: 41.7 kB / 1.167 GB, free: 5.148 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006059/0.5445, allocations: 0.6855 MB / 1.167 GB, free: 4.453 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002783/0.5447, allocations: 240.5 kB / 1.168 GB, free: 4.215 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.5449, allocations: 73.67 kB / 1.168 GB, free: 4.137 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.545, allocations: 334 kB / 1.168 GB, free: 3.805 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001683/0.5467, allocations: 0.5641 MB / 1.169 GB, free: 3.242 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/0.5486, allocations: 0.788 MB / 1.169 GB, free: 2.367 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003337/0.5519, allocations: 1.222 MB / 1.171 GB, free: 1.102 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.5519, allocations: 0 / 1.171 GB, free: 1.102 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004083/0.556, allocations: 1.497 MB / 1.172 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.5562, allocations: 218.6 kB / 1.172 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.5562, allocations: 11.94 kB / 1.172 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.5563, allocations: 4 kB / 1.172 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.5576, allocations: 267.7 kB / 1.172 GB, free: 15.05 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.116e-05/0.5576, allocations: 11.94 kB / 1.172 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.5595, allocations: 246.9 kB / 1.173 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.5596, allocations: 43.92 kB / 1.173 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/0.5596, allocations: 4 kB / 1.173 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003656/0.5633, allocations: 1.333 MB / 1.174 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.5633, allocations: 0 / 1.174 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.5633, allocations: 11.98 kB / 1.174 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/0.5646, allocations: 271.9 kB / 1.174 GB, free: 13.13 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.027e-05/0.5646, allocations: 15.86 kB / 1.174 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.5663, allocations: 227.2 kB / 1.175 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.639e-05/0.5665, allocations: 43.97 kB / 1.175 GB, free: 12.85 MB / 0.9356 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.0007463/0.5672, allocations: 416.9 kB / 1.175 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003599/0.5676, allocations: 154.1 kB / 1.175 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004135/0.5717, allocations: 1.548 MB / 1.177 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/0.5718, allocations: 11.94 kB / 1.177 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.5718, allocations: 0 / 1.177 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003463/0.5752, allocations: 1.304 MB / 1.178 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007251/0.5825, allocations: 3.305 MB / 1.181 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.5825, allocations: 4 kB / 1.181 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/0.5837, allocations: 231.7 kB / 1.181 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-05/0.5838, allocations: 12 kB / 1.181 GB, free: 5.652 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.802e-05/0.5838, allocations: 35.91 kB / 1.181 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.295e-05/0.5839, allocations: 11.94 kB / 1.181 GB, free: 5.605 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.5839, allocations: 4 kB / 1.181 GB, free: 5.602 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005801/0.5897, allocations: 2.349 MB / 1.184 GB, free: 3.176 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008746/0.5906, allocations: 374.7 kB / 1.184 GB, free: 2.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003469/0.5909, allocations: 23.92 kB / 1.184 GB, free: 2.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001741/0.5927, allocations: 183.7 kB / 1.184 GB, free: 2.586 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.5929, allocations: 72.34 kB / 1.184 GB, free: 2.512 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.593, allocations: 39.97 kB / 1.184 GB, free: 2.473 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001839/0.5948, allocations: 0.9494 MB / 1.185 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.3e-07/0.5949, allocations: 0 / 1.185 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002715/0.5976, allocations: 0.7993 MB / 1.186 GB, free: 0.7266 MB / 0.9356 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.001419/0.599, allocations: 0.5237 MB / 1.187 GB, free: 212 kB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00606/0.6051, allocations: 2.113 MB / 1.189 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.6051, allocations: 0 / 1.189 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002088/0.6072, allocations: 0.7265 MB / 1.189 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005904/0.6131, allocations: 0.7726 MB / 1.19 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007832/0.621, allocations: 3.54 MB / 1.194 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.6221, allocations: 1.25 MB / 1.195 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.002191/0.6243, allocations: 375.5 kB / 1.195 GB, free: 7.305 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005393/0.6249, allocations: 127.4 kB / 1.195 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of SimCode: time 7.31e-07/0.6249, allocations: 4 kB / 1.195 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of Templates: time 0.05984/0.6848, allocations: 31.14 MB / 1.226 GB, free: 8.418 MB / 0.9825 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches