Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 108 kB / 15.6 MB, free: 132 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.001939/0.001939, allocations: 191.9 kB / 16.53 MB, free: 6.391 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.536/1.536, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.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.817/2.817, allocations: 437 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.89 kB / 0.8692 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8564/0.8584, allocations: 151.6 MB / 1.017 GB, free: 2.496 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.07538/0.9338, allocations: 60.61 MB / 1.076 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02617/0.9601, allocations: 13.21 MB / 1.089 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003717/0.9638, allocations: 67.62 kB / 1.089 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003449/0.9674, allocations: 0.9645 MB / 1.09 GB, free: 7.395 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00799/0.9754, allocations: 2.32 MB / 1.093 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004788/0.9802, allocations: 1.563 MB / 1.094 GB, free: 3.512 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.007605/0.9878, allocations: 4.318 MB / 1.098 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00348/0.9913, allocations: 1.353 MB / 1.1 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004951/0.9963, allocations: 1.569 MB / 1.101 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003217/0.9995, allocations: 1.206 MB / 1.102 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0006771/1, allocations: 144 kB / 1.103 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005338/1.006, allocations: 1.47 MB / 1.104 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0009621/1.007, allocations: 422.5 kB / 1.104 GB, free: 8.984 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003159/1.01, allocations: 0.9134 MB / 1.105 GB, free: 8.066 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.008052/1.018, allocations: 2.75 MB / 1.108 GB, free: 5.309 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.456e-05/1.018, allocations: 3.984 kB / 1.108 GB, free: 5.305 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.826e-06/1.018, allocations: 0 / 1.108 GB, free: 5.305 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001215/1.018, allocations: 0 / 1.108 GB, free: 5.305 MB / 0.8575 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.007592/1.026, allocations: 2.193 MB / 1.11 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/1.026, allocations: 8.031 kB / 1.11 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004984/1.031, allocations: 0.6073 MB / 1.111 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003865/1.035, allocations: 1.371 MB / 1.112 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000273/1.035, allocations: 149.4 kB / 1.112 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003785/1.035, allocations: 100 kB / 1.112 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004254/1.04, allocations: 1.369 MB / 1.114 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.855e-05/1.04, allocations: 7.984 kB / 1.114 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001807/1.04, allocations: 44 kB / 1.114 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.609e-05/1.04, allocations: 27.98 kB / 1.114 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00504/1.045, allocations: 1.425 MB / 1.115 GB, free: 13.84 MB / 0.8731 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.0114/1.056, allocations: 5.61 MB / 1.121 GB, free: 7.875 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006281/1.063, allocations: 1.381 MB / 1.122 GB, free: 6.469 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001989/1.065, allocations: 0.6193 MB / 1.123 GB, free: 5.848 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001278/1.066, allocations: 1.244 MB / 1.124 GB, free: 4.328 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002231/1.068, allocations: 0.6823 MB / 1.124 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 3.627e-06/1.068, allocations: 0 / 1.124 GB, free: 3.633 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.006259/1.075, allocations: 1.754 MB / 1.126 GB, free: 1.871 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/1.075, allocations: 63.97 kB / 1.126 GB, free: 1.797 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002498/1.077, allocations: 1.299 MB / 1.127 GB, free: 500 kB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001629/1.077, allocations: 49.64 kB / 1.128 GB, free: 444 kB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007982/1.078, allocations: 0.6464 MB / 1.128 GB, free: 15.77 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.00033/1.079, allocations: 248.3 kB / 1.128 GB, free: 15.53 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003787/1.079, allocations: 174.5 kB / 1.129 GB, free: 15.36 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001777/1.079, allocations: 334 kB / 1.129 GB, free: 15.02 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001867/1.081, allocations: 0.5551 MB / 1.129 GB, free: 14.46 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/1.083, allocations: 0.7767 MB / 1.13 GB, free: 13.61 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003826/1.087, allocations: 1.183 MB / 1.131 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.238e-06/1.087, allocations: 4 kB / 1.131 GB, free: 12.37 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004759/1.092, allocations: 1.454 MB / 1.133 GB, free: 10.9 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 5.031e-05/1.092, allocations: 29.7 kB / 1.133 GB, free: 10.86 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/1.092, allocations: 4 kB / 1.133 GB, free: 10.86 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.216e-05/1.092, allocations: 11.94 kB / 1.133 GB, free: 10.85 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/1.093, allocations: 275.9 kB / 1.133 GB, free: 10.58 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.021e-05/1.093, allocations: 8 kB / 1.133 GB, free: 10.57 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001816/1.095, allocations: 195.1 kB / 1.133 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/1.095, allocations: 43.95 kB / 1.133 GB, free: 10.34 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002424/1.098, allocations: 0.8063 MB / 1.134 GB, free: 9.527 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00215/1.1, allocations: 0.7712 MB / 1.135 GB, free: 8.676 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003711/1.104, allocations: 1.175 MB / 1.136 GB, free: 7.453 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.953e-06/1.104, allocations: 3.984 kB / 1.136 GB, free: 7.449 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004899/1.109, allocations: 1.446 MB / 1.137 GB, free: 5.988 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 4.936e-05/1.109, allocations: 35.89 kB / 1.137 GB, free: 5.949 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/1.109, allocations: 4 kB / 1.137 GB, free: 5.945 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/1.109, allocations: 8.312 kB / 1.137 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/1.11, allocations: 271.6 kB / 1.138 GB, free: 5.672 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.305e-05/1.11, allocations: 7.938 kB / 1.138 GB, free: 5.664 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/1.112, allocations: 179.4 kB / 1.138 GB, free: 5.488 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/1.112, allocations: 39.98 kB / 1.138 GB, free: 5.449 MB / 0.8887 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.0004405/1.113, allocations: 232.1 kB / 1.138 GB, free: 5.215 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006352/1.113, allocations: 150.1 kB / 1.138 GB, free: 5.066 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005018/1.118, allocations: 1.505 MB / 1.14 GB, free: 3.539 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/1.118, allocations: 19.94 kB / 1.14 GB, free: 3.52 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/1.118, allocations: 0 / 1.14 GB, free: 3.52 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003823/1.122, allocations: 1.273 MB / 1.141 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008921/1.131, allocations: 3.268 MB / 1.144 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-05/1.131, allocations: 4 kB / 1.144 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001335/1.133, allocations: 236.2 kB / 1.144 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.142e-05/1.133, allocations: 4 kB / 1.144 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-05/1.133, allocations: 31.91 kB / 1.144 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.75e-05/1.133, allocations: 12 kB / 1.144 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/1.133, allocations: 7.938 kB / 1.144 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006735/1.139, allocations: 2.294 MB / 1.147 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/1.141, allocations: 354.8 kB / 1.147 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004107/1.141, allocations: 19.94 kB / 1.147 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/1.143, allocations: 135.9 kB / 1.147 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/1.143, allocations: 76.34 kB / 1.147 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/1.143, allocations: 39.97 kB / 1.147 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002052/1.145, allocations: 0.9207 MB / 1.148 GB, free: 10.58 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.51e-07/1.145, allocations: 4 kB / 1.148 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.003491/1.149, allocations: 0.7993 MB / 1.149 GB, free: 9.773 MB / 0.9044 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.001597/1.15, allocations: 0.5126 MB / 1.15 GB, free: 9.266 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.006904/1.157, allocations: 2.128 MB / 1.152 GB, free: 7.117 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.157, allocations: 0 / 1.152 GB, free: 7.117 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.002286/1.16, allocations: 0.7108 MB / 1.152 GB, free: 6.406 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004571/1.164, allocations: 0.7531 MB / 1.153 GB, free: 5.672 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007836/1.172, allocations: 2.919 MB / 1.156 GB, free: 2.668 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001337/1.174, allocations: 1.229 MB / 1.157 GB, free: 1.406 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.00211/1.176, allocations: 375.5 kB / 1.157 GB, free: 1.035 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005067/1.176, allocations: 131.3 kB / 1.158 GB, free: 0.9062 MB / 0.9044 GB Notification: Performance of SimCode: time 7.81e-07/1.176, allocations: 7.938 kB / 1.158 GB, free: 0.8984 MB / 0.9044 GB Notification: Performance of Templates: time 0.06382/1.24, allocations: 31.85 MB / 1.189 GB, free: 1.469 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches