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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.01289/0.01289, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.002392/0.002392, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.427/2.427, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 63.91 kB / 0.9509 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.087/1.089, allocations: 140.4 MB / 1.088 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06936/1.158, allocations: 60.45 MB / 1.147 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02581/1.184, allocations: 13.21 MB / 1.16 GB, free: 0.6641 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005228/1.189, allocations: 71 kB / 1.16 GB, free: 0.6367 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.004397/1.194, allocations: 0.9626 MB / 1.161 GB, free: 52 kB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.009855/1.204, allocations: 2.308 MB / 1.163 GB, free: 14.67 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.00626/1.21, allocations: 1.565 MB / 1.165 GB, free: 13.82 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.009073/1.219, allocations: 4.286 MB / 1.169 GB, free: 11.76 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003192/1.222, allocations: 1.324 MB / 1.17 GB, free: 11.13 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00591/1.228, allocations: 1.586 MB / 1.172 GB, free: 10.38 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004004/1.232, allocations: 1.177 MB / 1.173 GB, free: 9.832 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.000521/1.233, allocations: 140.1 kB / 1.173 GB, free: 9.832 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006329/1.239, allocations: 1.479 MB / 1.174 GB, free: 9.145 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000901/1.24, allocations: 424.6 kB / 1.175 GB, free: 8.824 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002336/1.242, allocations: 0.9138 MB / 1.176 GB, free: 8.211 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.009/1.251, allocations: 2.797 MB / 1.178 GB, free: 6.367 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 1.497e-05/1.251, allocations: 5.281 kB / 1.178 GB, free: 6.363 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.236e-06/1.251, allocations: 3.938 kB / 1.178 GB, free: 6.359 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.088e-05/1.251, allocations: 0 / 1.178 GB, free: 6.359 MB / 0.92 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.006349/1.258, allocations: 2.199 MB / 1.181 GB, free: 4.695 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.623e-05/1.258, allocations: 9.438 kB / 1.181 GB, free: 4.695 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004113/1.262, allocations: 0.6091 MB / 1.181 GB, free: 4.434 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003644/1.266, allocations: 1.439 MB / 1.183 GB, free: 3.328 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002052/1.266, allocations: 145.3 kB / 1.183 GB, free: 3.227 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002096/1.266, allocations: 103.4 kB / 1.183 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003516/1.27, allocations: 1.318 MB / 1.184 GB, free: 2.414 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/1.27, allocations: 5.312 kB / 1.184 GB, free: 2.41 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/1.27, allocations: 36.25 kB / 1.184 GB, free: 2.383 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.521e-05/1.27, allocations: 32.05 kB / 1.184 GB, free: 2.375 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003953/1.274, allocations: 1.322 MB / 1.186 GB, free: 1.77 MB / 0.92 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.01029/1.284, allocations: 5.381 MB / 1.191 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002666/1.287, allocations: 1.051 MB / 1.192 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001658/1.288, allocations: 0.5973 MB / 1.192 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001149/1.29, allocations: 1.242 MB / 1.194 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00196/1.292, allocations: 0.6581 MB / 1.194 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=69): time 4.379e-06/1.292, allocations: 0 / 1.194 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69): time 0.00593/1.298, allocations: 1.705 MB / 1.196 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/1.298, allocations: 59.19 kB / 1.196 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003191/1.301, allocations: 1.34 MB / 1.197 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001688/1.301, allocations: 41.14 kB / 1.197 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007925/1.302, allocations: 0.6668 MB / 1.198 GB, free: 8.301 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003241/1.302, allocations: 237.9 kB / 1.198 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004013/1.303, allocations: 174 kB / 1.198 GB, free: 7.992 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002491/1.303, allocations: 336.6 kB / 1.199 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/1.305, allocations: 0.5308 MB / 1.199 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001981/1.307, allocations: 0.7463 MB / 1.2 GB, free: 6.926 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003528/1.31, allocations: 1.149 MB / 1.201 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/1.31, allocations: 1.312 kB / 1.201 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004732/1.315, allocations: 1.408 MB / 1.202 GB, free: 5.621 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.238e-05/1.315, allocations: 32.98 kB / 1.202 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/1.315, allocations: 3.75 kB / 1.202 GB, free: 5.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.434e-05/1.315, allocations: 14.72 kB / 1.202 GB, free: 5.582 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/1.316, allocations: 257.3 kB / 1.203 GB, free: 5.504 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.688e-05/1.316, allocations: 6.156 kB / 1.203 GB, free: 5.504 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/1.318, allocations: 186.2 kB / 1.203 GB, free: 5.402 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/1.319, allocations: 38.05 kB / 1.203 GB, free: 5.391 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002636/1.321, allocations: 0.8001 MB / 1.204 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002193/1.323, allocations: 0.7407 MB / 1.204 GB, free: 4.465 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003491/1.327, allocations: 1.131 MB / 1.206 GB, free: 3.855 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.333e-06/1.327, allocations: 0.8438 kB / 1.206 GB, free: 3.855 MB / 0.9356 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.005266/1.332, allocations: 1.402 MB / 1.207 GB, free: 3.012 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.415e-05/1.332, allocations: 34.02 kB / 1.207 GB, free: 2.973 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/1.332, allocations: 8 kB / 1.207 GB, free: 2.965 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/1.332, allocations: 8 kB / 1.207 GB, free: 2.957 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/1.334, allocations: 259.5 kB / 1.207 GB, free: 2.703 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.35e-05/1.334, allocations: 4 kB / 1.207 GB, free: 2.699 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/1.336, allocations: 171.4 kB / 1.207 GB, free: 2.531 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/1.336, allocations: 35.98 kB / 1.207 GB, free: 2.496 MB / 0.9356 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 (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 (95): * Single equations (assignments): 94 * 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.0004764/1.337, allocations: 228.1 kB / 1.208 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00085/1.337, allocations: 150.1 kB / 1.208 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004523/1.342, allocations: 1.478 MB / 1.209 GB, free: 0.6211 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/1.342, allocations: 8 kB / 1.209 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-06/1.342, allocations: 0 / 1.209 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003384/1.345, allocations: 1.234 MB / 1.21 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008774/1.354, allocations: 3.226 MB / 1.214 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/1.354, allocations: 4 kB / 1.214 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/1.355, allocations: 215.8 kB / 1.214 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.158e-05/1.355, allocations: 15.88 kB / 1.214 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-05/1.356, allocations: 27.98 kB / 1.214 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.509e-05/1.356, allocations: 11.98 kB / 1.214 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/1.356, allocations: 8 kB / 1.214 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006123/1.362, allocations: 2.232 MB / 1.216 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/1.363, allocations: 350.8 kB / 1.216 GB, free: 9.008 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000562/1.363, allocations: 19.94 kB / 1.216 GB, free: 8.988 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001817/1.365, allocations: 131.9 kB / 1.216 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001716/1.365, allocations: 68.36 kB / 1.217 GB, free: 8.793 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/1.366, allocations: 43.97 kB / 1.217 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001878/1.367, allocations: 0.9529 MB / 1.218 GB, free: 7.801 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/1.367, allocations: 0 / 1.218 GB, free: 7.801 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.004367/1.372, allocations: 0.7954 MB / 1.218 GB, free: 7.004 MB / 0.9512 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 (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.001903/1.374, allocations: 0.5364 MB / 1.219 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.006304/1.38, allocations: 2.015 MB / 1.221 GB, free: 4.434 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/1.38, allocations: 0 / 1.221 GB, free: 4.434 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.00215/1.382, allocations: 0.6874 MB / 1.221 GB, free: 3.75 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005246/1.388, allocations: 0.7428 MB / 1.222 GB, free: 3.016 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006357/1.394, allocations: 2.712 MB / 1.225 GB, free: 220 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/1.395, allocations: 1.241 MB / 1.226 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002035/1.397, allocations: 375.5 kB / 1.226 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005407/1.398, allocations: 131.4 kB / 1.227 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of SimCode: time 1.724e-06/1.398, allocations: 3.938 kB / 1.227 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of Templates: time 0.05928/1.457, allocations: 32.03 MB / 1.258 GB, free: 14.84 MB / 0.9981 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches