Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.405/1.405, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 179.2 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.763/1.763, allocations: 205.4 MB / 0.5775 GB, free: 20.23 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009156/0.0009156, allocations: 89.47 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003448, allocations: 14.06 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2336, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9092/1.143, allocations: 409.7 MB / 1.3 GB, free: 6.078 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/1.143, allocations: 91.2 kB / 1.3 GB, free: 6.031 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.333/3.476, allocations: 0.608 GB / 1.908 GB, free: 176.9 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.385e-06/3.476, allocations: 3.938 kB / 1.908 GB, free: 176.9 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002442/3.476, allocations: 43.33 kB / 1.908 GB, free: 176.9 MB / 0.8855 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.005963/3.482, allocations: 2.089 MB / 1.91 GB, free: 175.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/3.482, allocations: 9.906 kB / 1.91 GB, free: 175.4 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003872/3.486, allocations: 0.6369 MB / 1.911 GB, free: 175.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004465/3.491, allocations: 1.673 MB / 1.913 GB, free: 174 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/3.491, allocations: 149.5 kB / 1.913 GB, free: 173.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003821/3.491, allocations: 101.1 kB / 1.913 GB, free: 173.9 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003316/3.495, allocations: 1.336 MB / 1.914 GB, free: 173.1 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.401e-05/3.495, allocations: 6.906 kB / 1.914 GB, free: 173.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/3.495, allocations: 35.91 kB / 1.914 GB, free: 173.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.704e-05/3.495, allocations: 26.58 kB / 1.914 GB, free: 173.1 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00355/3.499, allocations: 1.401 MB / 1.916 GB, free: 172.5 MB / 0.8855 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.007725/3.506, allocations: 5.411 MB / 1.921 GB, free: 167.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/3.509, allocations: 0.9804 MB / 1.922 GB, free: 166.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007277/3.509, allocations: 1.241 MB / 1.923 GB, free: 164.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001621/3.511, allocations: 0.7048 MB / 1.924 GB, free: 164 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=67): time 3.095e-06/3.511, allocations: 0 / 1.924 GB, free: 164 MB / 0.8855 GB Notification: Performance of matching and sorting (n=67): time 0.004853/3.516, allocations: 1.861 MB / 1.925 GB, free: 162.2 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/3.516, allocations: 63.97 kB / 1.926 GB, free: 162.1 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002107/3.518, allocations: 1.184 MB / 1.927 GB, free: 160.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001857/3.518, allocations: 48.92 kB / 1.927 GB, free: 160.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006348/3.519, allocations: 0.6792 MB / 1.927 GB, free: 160.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/3.519, allocations: 227.7 kB / 1.928 GB, free: 160 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.168e-05/3.519, allocations: 16 kB / 1.928 GB, free: 159.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.178e-05/3.519, allocations: 330 kB / 1.928 GB, free: 159.6 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/3.521, allocations: 0.5632 MB / 1.929 GB, free: 159.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/3.522, allocations: 0.8334 MB / 1.929 GB, free: 158.1 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/3.524, allocations: 0.6085 MB / 1.93 GB, free: 157.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/3.524, allocations: 3.984 kB / 1.93 GB, free: 157.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004417/3.528, allocations: 1.471 MB / 1.931 GB, free: 156.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002707/3.529, allocations: 1.204 MB / 1.933 GB, free: 154.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/3.529, allocations: 0 / 1.933 GB, free: 154.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/3.529, allocations: 8 kB / 1.933 GB, free: 154.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00158/3.53, allocations: 276.4 kB / 1.933 GB, free: 154.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/3.53, allocations: 8 kB / 1.933 GB, free: 154.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/3.532, allocations: 244.1 kB / 1.933 GB, free: 154.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/3.532, allocations: 47.97 kB / 1.933 GB, free: 154.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/3.532, allocations: 4 kB / 1.933 GB, free: 154.2 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003153/3.536, allocations: 1.32 MB / 1.934 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/3.536, allocations: 4 kB / 1.934 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.827e-06/3.536, allocations: 4 kB / 1.934 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/3.537, allocations: 268.4 kB / 1.935 GB, free: 152.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/3.537, allocations: 11.92 kB / 1.935 GB, free: 152.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0019/3.539, allocations: 239 kB / 1.935 GB, free: 152.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.896e-05/3.539, allocations: 43.98 kB / 1.935 GB, free: 152.4 MB / 0.8855 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008068/3.54, allocations: 417.5 kB / 1.935 GB, free: 151.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002558/3.54, allocations: 153.7 kB / 1.935 GB, free: 151.8 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003487/3.544, allocations: 1.541 MB / 1.937 GB, free: 150.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/3.544, allocations: 8 kB / 1.937 GB, free: 150.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/3.544, allocations: 3.984 kB / 1.937 GB, free: 150.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002906/3.546, allocations: 1.351 MB / 1.938 GB, free: 148.9 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00635/3.553, allocations: 3.432 MB / 1.942 GB, free: 145.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/3.553, allocations: 7.938 kB / 1.942 GB, free: 145.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/3.554, allocations: 243.8 kB / 1.942 GB, free: 145 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/3.554, allocations: 8 kB / 1.942 GB, free: 145 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.939e-05/3.554, allocations: 23.98 kB / 1.942 GB, free: 145 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.736e-06/3.554, allocations: 15.94 kB / 1.942 GB, free: 145 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/3.554, allocations: 11.94 kB / 1.942 GB, free: 145 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005009/3.559, allocations: 2.721 MB / 1.945 GB, free: 142 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/3.56, allocations: 491.6 kB / 1.945 GB, free: 141.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002654/3.561, allocations: 27.95 kB / 1.945 GB, free: 141.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/3.562, allocations: 175.7 kB / 1.945 GB, free: 141.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/3.562, allocations: 76.36 kB / 1.945 GB, free: 141.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.632e-05/3.562, allocations: 47.97 kB / 1.945 GB, free: 141.2 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001333/3.564, allocations: 0.9566 MB / 1.946 GB, free: 140.2 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/3.564, allocations: 0 / 1.946 GB, free: 140.2 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002492/3.566, allocations: 0.8617 MB / 1.947 GB, free: 139.4 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001529/3.568, allocations: 0.809 MB / 1.948 GB, free: 138.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00508/3.573, allocations: 2.062 MB / 1.95 GB, free: 136.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/3.573, allocations: 0 / 1.95 GB, free: 136.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001738/3.575, allocations: 0.7264 MB / 1.951 GB, free: 135.9 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003807/3.578, allocations: 0.7593 MB / 1.951 GB, free: 135.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004536/3.583, allocations: 3.233 MB / 1.955 GB, free: 131.8 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005619/3.584, allocations: 1.273 MB / 1.956 GB, free: 130.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001834/3.585, allocations: 385.5 kB / 1.956 GB, free: 130.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003518/3.586, allocations: 123.4 kB / 1.956 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of SimCode: time 1.302e-06/3.586, allocations: 0 / 1.956 GB, free: 130.1 MB / 0.8855 GB Notification: Performance of Templates: time 0.04486/3.631, allocations: 33.34 MB / 1.989 GB, free: 97.73 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches