Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001023/0.001023, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009332/0.0009333, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.757/2.757, allocations: 436.5 MB / 0.7104 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004407/0.0004407, allocations: 12 kB / 0.8707 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8611/0.8616, allocations: 153.7 MB / 1.021 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.0491/0.9107, allocations: 50.76 MB / 1.07 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01769/0.9285, allocations: 11.37 MB / 1.081 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003361/0.9319, allocations: 59.56 kB / 1.082 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.003643/0.9355, allocations: 0.9174 MB / 1.082 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.008222/0.9438, allocations: 2.285 MB / 1.085 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005359/0.9492, allocations: 1.727 MB / 1.086 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.006791/0.956, allocations: 2.573 MB / 1.089 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004029/0.96, allocations: 1.001 MB / 1.09 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005325/0.9654, allocations: 1.168 MB / 1.091 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002364/0.9678, allocations: 0.8049 MB / 1.092 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0005825/0.9684, allocations: 56 kB / 1.092 GB, free: 8.199 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004062/0.9725, allocations: 0.9167 MB / 1.093 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0008212/0.9733, allocations: 302.7 kB / 1.093 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001315/0.9747, allocations: 356.8 kB / 1.093 GB, free: 6.629 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.004512/0.9792, allocations: 1.899 MB / 1.095 GB, free: 4.727 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.9792, allocations: 0 / 1.095 GB, free: 4.727 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.883e-06/0.9792, allocations: 0 / 1.095 GB, free: 4.727 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001085/0.9794, allocations: 0 / 1.095 GB, free: 4.727 MB / 0.8419 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.005241/0.9846, allocations: 1.878 MB / 1.097 GB, free: 2.781 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.9847, allocations: 15.98 kB / 1.097 GB, free: 2.766 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00387/0.9885, allocations: 0.5716 MB / 1.098 GB, free: 2.191 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002935/0.9915, allocations: 1.267 MB / 1.099 GB, free: 0.875 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002297/0.9917, allocations: 145.4 kB / 1.099 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002904/0.992, allocations: 100 kB / 1.099 GB, free: 0.6211 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003384/0.9954, allocations: 1.346 MB / 1.1 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/0.9955, allocations: 3.938 kB / 1.1 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/0.9956, allocations: 36 kB / 1.1 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.477e-05/0.9957, allocations: 24 kB / 1.1 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004124/0.9998, allocations: 1.394 MB / 1.102 GB, free: 13.79 MB / 0.8575 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.009595/1.009, allocations: 5.473 MB / 1.107 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005703/1.015, allocations: 1.456 MB / 1.109 GB, free: 6.48 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009245/1.016, allocations: 1.236 MB / 1.11 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001866/1.018, allocations: 0.6862 MB / 1.11 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=70): time 3.166e-06/1.018, allocations: 0 / 1.11 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of matching and sorting (n=70): time 0.005415/1.023, allocations: 1.785 MB / 1.112 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/1.024, allocations: 59.97 kB / 1.112 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002152/1.026, allocations: 1.268 MB / 1.113 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001368/1.026, allocations: 45.7 kB / 1.114 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006521/1.027, allocations: 0.6619 MB / 1.114 GB, free: 420 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/1.027, allocations: 240.5 kB / 1.114 GB, free: 176 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-05/1.027, allocations: 16 kB / 1.114 GB, free: 160 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001454/1.027, allocations: 334 kB / 1.115 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/1.029, allocations: 0.5524 MB / 1.115 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001806/1.03, allocations: 0.7751 MB / 1.116 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001678/1.032, allocations: 0.6019 MB / 1.117 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/1.032, allocations: 8 kB / 1.117 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004175/1.036, allocations: 1.466 MB / 1.118 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.000572/1.037, allocations: 1.282 MB / 1.119 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/1.037, allocations: 0 / 1.119 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.039e-05/1.037, allocations: 11.94 kB / 1.119 GB, free: 10.9 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/1.038, allocations: 283.6 kB / 1.12 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.546e-05/1.038, allocations: 11.98 kB / 1.12 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/1.04, allocations: 254.8 kB / 1.12 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/1.04, allocations: 39.97 kB / 1.12 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/1.04, allocations: 4 kB / 1.12 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003649/1.044, allocations: 1.313 MB / 1.121 GB, free: 9 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/1.044, allocations: 4.312 kB / 1.121 GB, free: 8.996 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/1.044, allocations: 12 kB / 1.121 GB, free: 8.984 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/1.045, allocations: 283.6 kB / 1.121 GB, free: 8.707 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/1.046, allocations: 4 kB / 1.121 GB, free: 8.703 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/1.047, allocations: 243 kB / 1.122 GB, free: 8.465 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/1.048, allocations: 35.97 kB / 1.122 GB, free: 8.43 MB / 0.8731 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,$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 (97): * Single equations (assignments): 96 * 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.0008232/1.048, allocations: 412.8 kB / 1.122 GB, free: 8.016 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004264/1.049, allocations: 146.2 kB / 1.122 GB, free: 7.871 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0043/1.053, allocations: 1.532 MB / 1.124 GB, free: 6.316 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/1.053, allocations: 11.98 kB / 1.124 GB, free: 6.305 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/1.053, allocations: 0 / 1.124 GB, free: 6.305 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003374/1.057, allocations: 1.289 MB / 1.125 GB, free: 4.984 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007544/1.064, allocations: 3.288 MB / 1.128 GB, free: 1.531 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/1.064, allocations: 4.562 kB / 1.128 GB, free: 1.527 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/1.065, allocations: 235.7 kB / 1.128 GB, free: 1.297 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.3e-05/1.065, allocations: 8 kB / 1.128 GB, free: 1.289 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.021e-05/1.065, allocations: 23.98 kB / 1.129 GB, free: 1.266 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.446e-05/1.066, allocations: 15.98 kB / 1.129 GB, free: 1.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/1.066, allocations: 7.938 kB / 1.129 GB, free: 1.242 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006515/1.072, allocations: 2.597 MB / 1.131 GB, free: 14.39 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/1.074, allocations: 374.8 kB / 1.131 GB, free: 14 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005162/1.074, allocations: 20 kB / 1.131 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/1.076, allocations: 187.7 kB / 1.132 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/1.076, allocations: 72.36 kB / 1.132 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/1.076, allocations: 43.97 kB / 1.132 GB, free: 13.69 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001675/1.078, allocations: 0.9051 MB / 1.133 GB, free: 12.79 MB / 0.8887 GB Notification: Performance of sort global known variables: time 9.52e-07/1.078, allocations: 0 / 1.133 GB, free: 12.79 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.003336/1.081, allocations: 0.7953 MB / 1.133 GB, free: 11.99 MB / 0.8887 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 (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.001298/1.083, allocations: 0.5181 MB / 1.134 GB, free: 11.47 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0059/1.088, allocations: 2.089 MB / 1.136 GB, free: 9.363 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.088, allocations: 0 / 1.136 GB, free: 9.363 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.002039/1.091, allocations: 0.7147 MB / 1.137 GB, free: 8.652 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004152/1.095, allocations: 0.7313 MB / 1.137 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007567/1.102, allocations: 3.362 MB / 1.141 GB, free: 4.477 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/1.104, allocations: 1.268 MB / 1.142 GB, free: 3.18 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.00216/1.106, allocations: 362.9 kB / 1.142 GB, free: 2.82 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005128/1.106, allocations: 131.3 kB / 1.142 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of SimCode: time 9.82e-07/1.106, allocations: 0 / 1.142 GB, free: 2.691 MB / 0.8887 GB Notification: Performance of Templates: time 0.05669/1.163, allocations: 29.28 MB / 1.171 GB, free: 5.789 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches