Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001345/0.001345, allocations: 112.7 kB / 16.41 MB, free: 6.508 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.001278/0.001278, allocations: 189.2 kB / 17.34 MB, free: 5.738 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: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.644/2.644, allocations: 437.1 MB / 0.7112 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 63.91 kB / 1.019 GB, free: 9.305 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9647/0.9667, allocations: 151.6 MB / 1.167 GB, free: 3.785 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06848/1.035, allocations: 60.62 MB / 1.227 GB, free: 6.949 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0217/1.057, allocations: 13.24 MB / 1.24 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002626/1.06, allocations: 71.56 kB / 1.24 GB, free: 9.598 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002892/1.063, allocations: 0.9899 MB / 1.241 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006837/1.069, allocations: 2.444 MB / 1.243 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004364/1.074, allocations: 1.6 MB / 1.244 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.006331/1.08, allocations: 4.339 MB / 1.249 GB, free: 216 kB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002152/1.082, allocations: 1.346 MB / 1.25 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00371/1.086, allocations: 1.612 MB / 1.252 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001974/1.088, allocations: 1.202 MB / 1.253 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002616/1.088, allocations: 144 kB / 1.253 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003376/1.092, allocations: 1.505 MB / 1.254 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000504/1.092, allocations: 430.4 kB / 1.255 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001203/1.093, allocations: 0.9289 MB / 1.256 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.004611/1.098, allocations: 2.845 MB / 1.258 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/1.098, allocations: 0 / 1.258 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.533e-06/1.098, allocations: 0 / 1.258 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.102e-05/1.098, allocations: 0 / 1.258 GB, free: 6.16 MB / 0.9825 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.004158/1.102, allocations: 2.277 MB / 1.261 GB, free: 3.812 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/1.102, allocations: 8.922 kB / 1.261 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004233/1.107, allocations: 0.6317 MB / 1.261 GB, free: 3.172 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002932/1.11, allocations: 1.486 MB / 1.263 GB, free: 1.637 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002014/1.11, allocations: 153.3 kB / 1.263 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/1.11, allocations: 96 kB / 1.263 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003377/1.113, allocations: 1.385 MB / 1.264 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.054e-05/1.113, allocations: 7.938 kB / 1.264 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/1.113, allocations: 36 kB / 1.264 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.375e-05/1.114, allocations: 28 kB / 1.264 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00429/1.118, allocations: 1.432 MB / 1.266 GB, free: 14.46 MB / 0.9981 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.008895/1.127, allocations: 5.609 MB / 1.271 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/1.13, allocations: 1.12 MB / 1.272 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/1.131, allocations: 0.6203 MB / 1.273 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001135/1.133, allocations: 1.236 MB / 1.274 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001995/1.135, allocations: 0.6862 MB / 1.275 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=70): time 4.329e-06/1.135, allocations: 7.938 kB / 1.275 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=70): time 0.005919/1.14, allocations: 1.79 MB / 1.277 GB, free: 2.703 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/1.141, allocations: 59.97 kB / 1.277 GB, free: 2.633 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002056/1.143, allocations: 1.344 MB / 1.278 GB, free: 1.281 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001262/1.143, allocations: 49.69 kB / 1.278 GB, free: 1.227 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006734/1.143, allocations: 0.6788 MB / 1.279 GB, free: 0.5391 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002892/1.144, allocations: 253.8 kB / 1.279 GB, free: 296 kB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003427/1.144, allocations: 182.5 kB / 1.279 GB, free: 104 kB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000182/1.144, allocations: 333.9 kB / 1.279 GB, free: 15.77 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/1.146, allocations: 0.559 MB / 1.28 GB, free: 15.21 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002/1.148, allocations: 0.7829 MB / 1.281 GB, free: 14.34 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003453/1.151, allocations: 1.199 MB / 1.282 GB, free: 13.1 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/1.152, allocations: 0 / 1.282 GB, free: 13.1 MB / 1.014 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004373/1.156, allocations: 1.482 MB / 1.283 GB, free: 11.6 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.257e-05/1.156, allocations: 41.64 kB / 1.283 GB, free: 11.55 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/1.156, allocations: 0 / 1.283 GB, free: 11.55 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/1.156, allocations: 8 kB / 1.283 GB, free: 11.54 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/1.157, allocations: 263.8 kB / 1.284 GB, free: 11.29 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/1.157, allocations: 11.94 kB / 1.284 GB, free: 11.27 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/1.159, allocations: 195.2 kB / 1.284 GB, free: 11.08 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/1.159, allocations: 43.97 kB / 1.284 GB, free: 11.04 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002183/1.161, allocations: 0.8219 MB / 1.285 GB, free: 10.21 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001939/1.163, allocations: 0.7673 MB / 1.285 GB, free: 9.363 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003408/1.167, allocations: 1.199 MB / 1.287 GB, free: 8.121 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.136e-06/1.167, allocations: 0 / 1.287 GB, free: 8.121 MB / 1.014 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004288/1.171, allocations: 1.466 MB / 1.288 GB, free: 6.637 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/1.171, allocations: 33.7 kB / 1.288 GB, free: 6.598 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/1.171, allocations: 4 kB / 1.288 GB, free: 6.594 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/1.171, allocations: 11.94 kB / 1.288 GB, free: 6.582 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/1.172, allocations: 267.9 kB / 1.288 GB, free: 6.32 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/1.172, allocations: 11.98 kB / 1.288 GB, free: 6.309 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/1.174, allocations: 183.5 kB / 1.289 GB, free: 6.129 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.781e-05/1.174, allocations: 43.98 kB / 1.289 GB, free: 6.086 MB / 1.014 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.0003158/1.174, allocations: 232 kB / 1.289 GB, free: 5.852 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002897/1.175, allocations: 159 kB / 1.289 GB, free: 5.695 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004356/1.179, allocations: 1.532 MB / 1.29 GB, free: 4.145 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.636e-05/1.179, allocations: 8 kB / 1.291 GB, free: 4.137 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/1.179, allocations: 0 / 1.291 GB, free: 4.137 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003615/1.183, allocations: 1.285 MB / 1.292 GB, free: 2.824 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00826/1.191, allocations: 3.297 MB / 1.295 GB, free: 15.36 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/1.191, allocations: 12.05 kB / 1.295 GB, free: 15.35 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/1.192, allocations: 235.6 kB / 1.295 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.859e-05/1.192, allocations: 11.94 kB / 1.295 GB, free: 15.11 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.567e-05/1.192, allocations: 23.98 kB / 1.295 GB, free: 15.08 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.36e-05/1.192, allocations: 11.98 kB / 1.295 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/1.192, allocations: 11.94 kB / 1.295 GB, free: 15.06 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00645/1.199, allocations: 2.322 MB / 1.298 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/1.2, allocations: 367.6 kB / 1.298 GB, free: 12.29 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004171/1.2, allocations: 16 kB / 1.298 GB, free: 12.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/1.202, allocations: 135.9 kB / 1.298 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/1.202, allocations: 76.36 kB / 1.298 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/1.202, allocations: 43.95 kB / 1.298 GB, free: 12.02 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001883/1.204, allocations: 0.9533 MB / 1.299 GB, free: 11.07 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/1.204, allocations: 0 / 1.299 GB, free: 11.07 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003063/1.207, allocations: 0.8265 MB / 1.3 GB, free: 10.24 MB / 1.029 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.001604/1.209, allocations: 0.5333 MB / 1.3 GB, free: 9.715 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.006251/1.215, allocations: 2.097 MB / 1.302 GB, free: 7.594 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/1.215, allocations: 4 kB / 1.302 GB, free: 7.59 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.002135/1.217, allocations: 0.7147 MB / 1.303 GB, free: 6.875 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004132/1.221, allocations: 0.7617 MB / 1.304 GB, free: 6.125 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00721/1.229, allocations: 2.99 MB / 1.307 GB, free: 3.047 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/1.23, allocations: 1.245 MB / 1.308 GB, free: 1.773 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001735/1.232, allocations: 376.5 kB / 1.308 GB, free: 1.402 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000471/1.232, allocations: 127.4 kB / 1.309 GB, free: 1.277 MB / 1.029 GB Notification: Performance of SimCode: time 8.71e-07/1.232, allocations: 3.938 kB / 1.309 GB, free: 1.273 MB / 1.029 GB Notification: Performance of Templates: time 0.06453/1.297, allocations: 32.46 MB / 1.34 GB, free: 1.184 MB / 1.061 GB make -j1 -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches