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.001317/0.001317, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.001623/0.001623, allocations: 171.9 kB / 16.26 MB, free: 6.66 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.633/1.633, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.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.466/2.466, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005812/0.000581, allocations: 8 kB / 0.8159 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8142/0.8149, allocations: 142.4 MB / 0.955 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06836/0.8832, allocations: 58.99 MB / 1.013 GB, free: 4.145 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02213/0.9054, allocations: 13.11 MB / 1.025 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0044/0.9099, allocations: 63.56 kB / 1.026 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003635/0.9135, allocations: 0.8138 MB / 1.026 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.008123/0.9217, allocations: 2.135 MB / 1.028 GB, free: 3.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004266/0.926, allocations: 1.409 MB / 1.03 GB, free: 2.586 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.009046/0.935, allocations: 5.538 MB / 1.035 GB, free: 13.03 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002521/0.9376, allocations: 1.08 MB / 1.036 GB, free: 11.92 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003329/0.9409, allocations: 1.33 MB / 1.038 GB, free: 10.59 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002583/0.9435, allocations: 1.151 MB / 1.039 GB, free: 9.43 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0005267/0.9441, allocations: 56 kB / 1.039 GB, free: 9.375 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004418/0.9485, allocations: 1.372 MB / 1.04 GB, free: 8 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0007317/0.9493, allocations: 342.5 kB / 1.04 GB, free: 7.664 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002216/0.9515, allocations: 0.8447 MB / 1.041 GB, free: 6.809 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.007954/0.9595, allocations: 2.663 MB / 1.044 GB, free: 4.137 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.9595, allocations: 0 / 1.044 GB, free: 4.137 MB / 0.795 GB Notification: Performance of FrontEnd: time 5.14e-06/0.9595, allocations: 4 kB / 1.044 GB, free: 4.133 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001501/0.9597, allocations: 4 kB / 1.044 GB, free: 4.129 MB / 0.795 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.006509/0.9662, allocations: 1.898 MB / 1.046 GB, free: 2.168 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 7.043e-05/0.9663, allocations: 8.031 kB / 1.046 GB, free: 2.16 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004242/0.9706, allocations: 0.6463 MB / 1.046 GB, free: 1.512 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003484/0.9741, allocations: 1.4 MB / 1.048 GB, free: 60 kB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002574/0.9743, allocations: 149.4 kB / 1.048 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003255/0.9747, allocations: 96 kB / 1.048 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003636/0.9783, allocations: 1.35 MB / 1.049 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.164e-05/0.9784, allocations: 7.906 kB / 1.049 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.9785, allocations: 36 kB / 1.049 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.311e-05/0.9786, allocations: 27.98 kB / 1.049 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004009/0.9826, allocations: 1.393 MB / 1.051 GB, free: 12.95 MB / 0.8106 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.008022/0.9906, allocations: 5.395 MB / 1.056 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002679/0.9933, allocations: 1.09 MB / 1.057 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001745/0.9951, allocations: 0.6432 MB / 1.058 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009389/0.996, allocations: 1.236 MB / 1.059 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001885/0.9979, allocations: 0.694 MB / 1.059 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 2.796e-06/0.9979, allocations: 0 / 1.059 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.005375/1.003, allocations: 1.809 MB / 1.061 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.05e-05/1.003, allocations: 59.97 kB / 1.061 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001905/1.005, allocations: 1.316 MB / 1.063 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001288/1.005, allocations: 49.64 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006099/1.006, allocations: 0.6777 MB / 1.063 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002612/1.006, allocations: 232.6 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/1.006, allocations: 69.69 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001188/1.007, allocations: 334 kB / 1.064 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001722/1.008, allocations: 0.5602 MB / 1.064 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001864/1.01, allocations: 0.7782 MB / 1.065 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003415/1.014, allocations: 1.21 MB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/1.014, allocations: 0 / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004164/1.018, allocations: 1.481 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001647/1.018, allocations: 211.5 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/1.018, allocations: 7.984 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.49e-05/1.018, allocations: 8 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/1.019, allocations: 271.6 kB / 1.068 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.489e-05/1.019, allocations: 8 kB / 1.068 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001918/1.021, allocations: 243 kB / 1.069 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/1.021, allocations: 35.98 kB / 1.069 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.368e-06/1.022, allocations: 0 / 1.069 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003792/1.025, allocations: 1.325 MB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/1.025, allocations: 4 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/1.025, allocations: 8 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/1.027, allocations: 268 kB / 1.07 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.729e-05/1.027, allocations: 7.938 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/1.028, allocations: 235.1 kB / 1.07 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/1.029, allocations: 39.98 kB / 1.07 GB, free: 7.75 MB / 0.8262 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.0008585/1.029, allocations: 416.9 kB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004261/1.03, allocations: 150.1 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004413/1.034, allocations: 1.536 MB / 1.072 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-05/1.034, allocations: 12 kB / 1.072 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/1.034, allocations: 3.938 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003543/1.038, allocations: 1.3 MB / 1.074 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008064/1.046, allocations: 3.289 MB / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/1.046, allocations: 4 kB / 1.077 GB, free: 0.8281 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/1.047, allocations: 239.8 kB / 1.077 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.507e-05/1.047, allocations: 8 kB / 1.077 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.886e-05/1.047, allocations: 27.92 kB / 1.077 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-05/1.047, allocations: 11.88 kB / 1.077 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.027e-06/1.047, allocations: 8 kB / 1.077 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00601/1.053, allocations: 2.337 MB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009335/1.054, allocations: 374.7 kB / 1.08 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003407/1.055, allocations: 20 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/1.056, allocations: 175.8 kB / 1.08 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/1.057, allocations: 72.36 kB / 1.08 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/1.057, allocations: 43.97 kB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001822/1.059, allocations: 0.9412 MB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/1.059, allocations: 0 / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002869/1.062, allocations: 0.7953 MB / 1.082 GB, free: 11.7 MB / 0.8419 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.001406/1.063, allocations: 0.5191 MB / 1.082 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.006223/1.069, allocations: 2.097 MB / 1.084 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/1.069, allocations: 0 / 1.084 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.002247/1.072, allocations: 0.7186 MB / 1.085 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005915/1.077, allocations: 0.7707 MB / 1.086 GB, free: 7.582 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007112/1.085, allocations: 3.333 MB / 1.089 GB, free: 4.164 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001176/1.086, allocations: 1.242 MB / 1.09 GB, free: 2.895 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.002411/1.088, allocations: 371.5 kB / 1.091 GB, free: 2.527 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005551/1.089, allocations: 127.4 kB / 1.091 GB, free: 2.402 MB / 0.8419 GB Notification: Performance of SimCode: time 1.303e-06/1.089, allocations: 7.938 kB / 1.091 GB, free: 2.395 MB / 0.8419 GB Notification: Performance of Templates: time 0.05866/1.147, allocations: 31.03 MB / 1.121 GB, free: 3.75 MB / 0.8731 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