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.0008472/0.0008472, allocations: 91.77 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.001026/0.001026, allocations: 178.7 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.411/1.411, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.785/2.785, allocations: 462.6 MB / 0.7371 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003724, allocations: 9.938 kB / 0.9034 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3105, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05912/0.3697, allocations: 59.12 MB / 1.117 GB, free: 9.656 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02016/0.3899, allocations: 13.16 MB / 1.13 GB, free: 12.46 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002988/0.3929, allocations: 59.62 kB / 1.13 GB, free: 12.4 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003008/0.396, allocations: 0.8121 MB / 1.131 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007334/0.4033, allocations: 2.153 MB / 1.133 GB, free: 9.426 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004807/0.4082, allocations: 1.435 MB / 1.134 GB, free: 8.004 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.008077/0.4163, allocations: 5.554 MB / 1.14 GB, free: 2.434 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002542/0.4188, allocations: 1.107 MB / 1.141 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003775/0.4226, allocations: 1.326 MB / 1.142 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00251/0.4252, allocations: 1.166 MB / 1.143 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004864/0.4257, allocations: 63.98 kB / 1.143 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004128/0.4298, allocations: 1.403 MB / 1.145 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0007347/0.4306, allocations: 338.5 kB / 1.145 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.002149/0.4327, allocations: 0.8564 MB / 1.146 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.00407/0.4368, allocations: 2.069 MB / 1.148 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.4369, allocations: 0 / 1.148 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.336e-06/0.4369, allocations: 0 / 1.148 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.808e-05/0.437, allocations: 0 / 1.148 GB, free: 10.05 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.005244/0.4422, allocations: 1.91 MB / 1.15 GB, free: 8.078 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.88e-05/0.4423, allocations: 15.97 kB / 1.15 GB, free: 8.062 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004063/0.4464, allocations: 0.5839 MB / 1.15 GB, free: 7.477 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003477/0.4499, allocations: 1.426 MB / 1.152 GB, free: 5.996 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002217/0.4501, allocations: 153.3 kB / 1.152 GB, free: 5.836 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002899/0.4504, allocations: 96 kB / 1.152 GB, free: 5.742 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003455/0.4539, allocations: 1.373 MB / 1.153 GB, free: 4.332 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.4539, allocations: 7.906 kB / 1.153 GB, free: 4.324 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000118/0.454, allocations: 36 kB / 1.153 GB, free: 4.289 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.231e-05/0.4541, allocations: 24 kB / 1.153 GB, free: 4.266 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003932/0.458, allocations: 1.413 MB / 1.155 GB, free: 2.852 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.008902/0.467, allocations: 5.501 MB / 1.16 GB, free: 13 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002668/0.4697, allocations: 1.101 MB / 1.161 GB, free: 11.85 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00172/0.4714, allocations: 0.6354 MB / 1.162 GB, free: 11.21 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009787/0.4724, allocations: 1.24 MB / 1.163 GB, free: 9.695 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001936/0.4744, allocations: 0.6901 MB / 1.164 GB, free: 8.996 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 4.067e-06/0.4744, allocations: 0 / 1.164 GB, free: 8.996 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.005542/0.4799, allocations: 1.816 MB / 1.165 GB, free: 7.172 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.48, allocations: 59.97 kB / 1.165 GB, free: 7.102 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002325/0.4823, allocations: 1.336 MB / 1.167 GB, free: 5.758 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.4825, allocations: 41.7 kB / 1.167 GB, free: 5.711 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006765/0.4832, allocations: 0.6778 MB / 1.167 GB, free: 5.023 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003028/0.4835, allocations: 240.5 kB / 1.168 GB, free: 4.785 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.4836, allocations: 77.67 kB / 1.168 GB, free: 4.703 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4838, allocations: 330 kB / 1.168 GB, free: 4.375 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/0.4855, allocations: 0.5641 MB / 1.169 GB, free: 3.812 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/0.4873, allocations: 0.7958 MB / 1.169 GB, free: 2.93 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003329/0.4907, allocations: 1.222 MB / 1.171 GB, free: 1.664 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.4907, allocations: 0 / 1.171 GB, free: 1.664 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004174/0.4949, allocations: 1.497 MB / 1.172 GB, free: 156 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001936/0.4951, allocations: 218.1 kB / 1.172 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.4951, allocations: 0 / 1.172 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/0.4952, allocations: 11.98 kB / 1.172 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.4965, allocations: 271.6 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.949e-05/0.4965, allocations: 8 kB / 1.173 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/0.4984, allocations: 250.9 kB / 1.173 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.4985, allocations: 43.98 kB / 1.173 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.4986, allocations: 4 kB / 1.173 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003702/0.5023, allocations: 1.333 MB / 1.174 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.5023, allocations: 4 kB / 1.174 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.5023, allocations: 8 kB / 1.174 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.5036, allocations: 275.9 kB / 1.174 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.001e-05/0.5036, allocations: 11.94 kB / 1.174 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/0.5055, allocations: 227.2 kB / 1.175 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.5056, allocations: 43.97 kB / 1.175 GB, free: 13.41 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.0008268/0.5064, allocations: 426.8 kB / 1.175 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004249/0.5069, allocations: 150.1 kB / 1.175 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004248/0.5111, allocations: 1.548 MB / 1.177 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/0.5112, allocations: 11.94 kB / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.5112, allocations: 4 kB / 1.177 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003442/0.5146, allocations: 1.304 MB / 1.178 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007957/0.5226, allocations: 3.297 MB / 1.181 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/0.5226, allocations: 4 kB / 1.181 GB, free: 6.453 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.5239, allocations: 240 kB / 1.181 GB, free: 6.219 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/0.5239, allocations: 8 kB / 1.181 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.293e-05/0.524, allocations: 31.91 kB / 1.182 GB, free: 6.18 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.02e-05/0.524, allocations: 4 kB / 1.182 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/0.524, allocations: 11.94 kB / 1.182 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005924/0.53, allocations: 2.345 MB / 1.184 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009768/0.531, allocations: 382.7 kB / 1.184 GB, free: 3.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000411/0.5314, allocations: 19.94 kB / 1.184 GB, free: 3.328 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001753/0.5332, allocations: 191.7 kB / 1.184 GB, free: 3.141 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/0.5334, allocations: 72.36 kB / 1.184 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/0.5335, allocations: 43.95 kB / 1.185 GB, free: 3.023 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001625/0.5351, allocations: 0.9454 MB / 1.185 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5351, allocations: 0 / 1.185 GB, free: 2.082 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002593/0.5377, allocations: 0.8032 MB / 1.186 GB, free: 1.277 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.001227/0.539, allocations: 0.5194 MB / 1.187 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.005852/0.5448, allocations: 2.113 MB / 1.189 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.5449, allocations: 192 / 1.189 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001982/0.5469, allocations: 0.7106 MB / 1.189 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005657/0.5525, allocations: 0.7685 MB / 1.19 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007445/0.56, allocations: 3.573 MB / 1.194 GB, free: 9.484 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009486/0.561, allocations: 1.246 MB / 1.195 GB, free: 8.211 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006508/0.5617, allocations: 143.4 kB / 1.195 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of SimCode: time 1.333e-06/0.5617, allocations: 0 / 1.195 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of Templates: time 0.04219/0.6039, allocations: 26.94 MB / 1.221 GB, free: 13.34 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/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