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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.000814/0.000814, allocations: 92 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.001284/0.001284, allocations: 180.3 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.433/1.433, 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 10.1.0-maint.10.0.x/package.mo): time 2.665/2.665, allocations: 437.8 MB / 0.7128 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005552/0.000555, allocations: 8 kB / 0.8735 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7171/0.7177, allocations: 153.8 MB / 1.024 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.0585/0.7762, allocations: 59.13 MB / 1.081 GB, free: 4.48 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01841/0.7947, allocations: 13.16 MB / 1.094 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002486/0.7972, allocations: 59.62 kB / 1.094 GB, free: 7.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002607/0.7998, allocations: 0.8177 MB / 1.095 GB, free: 6.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.006107/0.806, allocations: 2.139 MB / 1.097 GB, free: 4.262 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003842/0.8098, allocations: 1.439 MB / 1.099 GB, free: 2.836 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00638/0.8162, allocations: 5.562 MB / 1.104 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001955/0.8182, allocations: 1.103 MB / 1.105 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002794/0.821, allocations: 1.326 MB / 1.106 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001914/0.8229, allocations: 1.159 MB / 1.108 GB, free: 9.625 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0003189/0.8233, allocations: 63.98 kB / 1.108 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003176/0.8265, allocations: 1.399 MB / 1.109 GB, free: 8.16 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0005213/0.827, allocations: 350.4 kB / 1.109 GB, free: 7.816 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.8284, allocations: 0.8564 MB / 1.11 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002781/0.8312, allocations: 2.077 MB / 1.112 GB, free: 4.867 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.8312, allocations: 0 / 1.112 GB, free: 4.867 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8312, allocations: 0 / 1.112 GB, free: 4.867 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.33e-05/0.8312, allocations: 0 / 1.112 GB, free: 4.867 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.003786/0.835, allocations: 1.911 MB / 1.114 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.8351, allocations: 12.03 kB / 1.114 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003805/0.8389, allocations: 0.5917 MB / 1.115 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002571/0.8415, allocations: 1.422 MB / 1.116 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.8417, allocations: 145.4 kB / 1.116 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002167/0.8419, allocations: 108 kB / 1.116 GB, free: 0.5547 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003181/0.8451, allocations: 1.358 MB / 1.118 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.078e-05/0.8451, allocations: 7.938 kB / 1.118 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001162/0.8453, allocations: 40 kB / 1.118 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.488e-05/0.8453, allocations: 24 kB / 1.118 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004013/0.8493, allocations: 1.409 MB / 1.119 GB, free: 13.68 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.008391/0.8577, allocations: 5.509 MB / 1.124 GB, free: 7.816 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002667/0.8604, allocations: 1.1 MB / 1.126 GB, free: 6.672 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001723/0.8622, allocations: 0.631 MB / 1.126 GB, free: 6.039 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009903/0.8632, allocations: 1.236 MB / 1.127 GB, free: 4.523 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001925/0.8651, allocations: 0.694 MB / 1.128 GB, free: 3.82 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=70): time 3.436e-06/0.8652, allocations: 0 / 1.128 GB, free: 3.82 MB / 0.8731 GB Notification: Performance of matching and sorting (n=70): time 0.005503/0.8707, allocations: 1.82 MB / 1.13 GB, free: 1.992 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/0.8707, allocations: 55.97 kB / 1.13 GB, free: 1.926 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002214/0.873, allocations: 1.336 MB / 1.131 GB, free: 0.582 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.8731, allocations: 41.7 kB / 1.131 GB, free: 0.5352 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006126/0.8737, allocations: 0.6739 MB / 1.132 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002997/0.874, allocations: 236.6 kB / 1.132 GB, free: 15.62 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.8742, allocations: 81.67 kB / 1.132 GB, free: 15.53 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.8743, allocations: 334 kB / 1.132 GB, free: 15.2 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.876, allocations: 0.5602 MB / 1.133 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001906/0.878, allocations: 0.7868 MB / 1.134 GB, free: 13.77 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003339/0.8813, allocations: 1.226 MB / 1.135 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.8813, allocations: 0 / 1.135 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004238/0.8856, allocations: 1.497 MB / 1.136 GB, free: 10.98 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001507/0.8858, allocations: 218.6 kB / 1.137 GB, free: 10.72 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.8858, allocations: 4 kB / 1.137 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.8858, allocations: 4 kB / 1.137 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.8871, allocations: 275.6 kB / 1.137 GB, free: 10.44 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.197e-05/0.8872, allocations: 11.94 kB / 1.137 GB, free: 10.43 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.8891, allocations: 247 kB / 1.137 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.8892, allocations: 43.97 kB / 1.137 GB, free: 10.14 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.8892, allocations: 4 kB / 1.137 GB, free: 10.14 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003759/0.893, allocations: 1.329 MB / 1.139 GB, free: 8.801 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.893, allocations: 4 kB / 1.139 GB, free: 8.797 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.893, allocations: 8 kB / 1.139 GB, free: 8.789 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.8943, allocations: 275.6 kB / 1.139 GB, free: 8.52 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-05/0.8943, allocations: 15.92 kB / 1.139 GB, free: 8.504 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.8963, allocations: 231.1 kB / 1.139 GB, free: 8.277 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.8964, allocations: 39.98 kB / 1.139 GB, free: 8.238 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.0008445/0.8973, allocations: 420.8 kB / 1.139 GB, free: 7.816 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003823/0.8976, allocations: 158.1 kB / 1.14 GB, free: 7.66 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004215/0.9019, allocations: 1.544 MB / 1.141 GB, free: 6.098 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/0.9019, allocations: 11.94 kB / 1.141 GB, free: 6.086 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.9019, allocations: 0 / 1.141 GB, free: 6.086 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003444/0.9054, allocations: 1.304 MB / 1.142 GB, free: 4.75 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007207/0.9126, allocations: 3.301 MB / 1.146 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.9126, allocations: 8.547 kB / 1.146 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001221/0.9139, allocations: 235.7 kB / 1.146 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.486e-05/0.9139, allocations: 11.98 kB / 1.146 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.245e-05/0.914, allocations: 35.92 kB / 1.146 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.029e-05/0.914, allocations: 7.984 kB / 1.146 GB, free: 1 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.914, allocations: 11.94 kB / 1.146 GB, free: 0.9883 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00584/0.9199, allocations: 2.337 MB / 1.148 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007951/0.9207, allocations: 382.8 kB / 1.149 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003154/0.921, allocations: 19.94 kB / 1.149 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001672/0.9227, allocations: 190.9 kB / 1.149 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.9229, allocations: 68.36 kB / 1.149 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.923, allocations: 39.97 kB / 1.149 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001474/0.9244, allocations: 0.9454 MB / 1.15 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9245, allocations: 4 kB / 1.15 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002447/0.9269, allocations: 0.7994 MB / 1.151 GB, free: 12.12 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.001183/0.9281, allocations: 0.519 MB / 1.151 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.005815/0.9339, allocations: 2.117 MB / 1.153 GB, free: 9.465 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.934, allocations: 0 / 1.153 GB, free: 9.465 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.936, allocations: 0.707 MB / 1.154 GB, free: 8.754 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005394/0.9414, allocations: 0.7677 MB / 1.155 GB, free: 7.992 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007335/0.9488, allocations: 3.573 MB / 1.158 GB, free: 4.32 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008953/0.9497, allocations: 1.25 MB / 1.159 GB, free: 3.043 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006315/0.9503, allocations: 139.4 kB / 1.159 GB, free: 2.906 MB / 0.9044 GB Notification: Performance of SimCode: time 1.072e-06/0.9504, allocations: 0 / 1.159 GB, free: 2.906 MB / 0.9044 GB Notification: Performance of Templates: time 0.04165/0.992, allocations: 26.93 MB / 1.186 GB, free: 8.188 MB / 0.9356 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 -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