Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|sc_load.i.1.|sc_load.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.488/1.488, allocations: 249.5 MB / 257 MB, free: 6.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 183.5 kB / 316.3 MB, free: 3.234 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.719/1.719, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0008394/0.0008391, allocations: 98.22 kB / 0.6714 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.415e-05/1.416e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2043, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6859/0.8903, allocations: 157.5 MB / 1.039 GB, free: 13.96 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.8906, allocations: 90.88 kB / 1.039 GB, free: 13.91 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.08486/0.9755, allocations: 36.77 MB / 1.075 GB, free: 15.16 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.162e-06/0.9755, allocations: 0 / 1.075 GB, free: 15.16 MB / 0.698 GB Notification: Performance of Transformations before backend: time 5.166e-05/0.9755, allocations: 24 kB / 1.075 GB, free: 15.14 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001504/0.9771, allocations: 0.9581 MB / 1.076 GB, free: 14.19 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.9771, allocations: 12.03 kB / 1.076 GB, free: 14.18 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00146/0.9786, allocations: 245.8 kB / 1.076 GB, free: 13.94 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000781/0.9794, allocations: 0.5367 MB / 1.077 GB, free: 13.43 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.9794, allocations: 20 kB / 1.077 GB, free: 13.41 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.472e-05/0.9795, allocations: 40 kB / 1.077 GB, free: 13.37 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008835/0.9804, allocations: 0.5945 MB / 1.077 GB, free: 12.98 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.9817, allocations: 1.017 MB / 1.078 GB, free: 12.03 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.9818, allocations: 11.84 kB / 1.078 GB, free: 12.02 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.58e-05/0.9818, allocations: 4 kB / 1.078 GB, free: 12.02 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.798e-05/0.9819, allocations: 60.36 kB / 1.078 GB, free: 11.96 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005015/0.9869, allocations: 5.758 MB / 1.084 GB, free: 6.336 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008329/0.9878, allocations: 0.525 MB / 1.085 GB, free: 5.973 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003592/0.9882, allocations: 311.6 kB / 1.085 GB, free: 5.781 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.53e-05/0.9882, allocations: 4.438 kB / 1.085 GB, free: 5.777 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.9883, allocations: 38.81 kB / 1.085 GB, free: 5.734 MB / 0.698 GB Notification: Performance of pre-optimization done (n=47): time 2.514e-06/0.9883, allocations: 4 kB / 1.085 GB, free: 5.73 MB / 0.698 GB Notification: Performance of matching and sorting (n=48): time 0.001937/0.9902, allocations: 1.156 MB / 1.086 GB, free: 4.82 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.9903, allocations: 59.84 kB / 1.086 GB, free: 4.75 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/0.9907, allocations: 400.7 kB / 1.087 GB, free: 4.438 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.9908, allocations: 29.7 kB / 1.087 GB, free: 4.402 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.991, allocations: 410.5 kB / 1.087 GB, free: 4.086 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.9911, allocations: 162.4 kB / 1.087 GB, free: 3.945 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.699e-05/0.9911, allocations: 0 / 1.087 GB, free: 3.945 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.9913, allocations: 366.1 kB / 1.087 GB, free: 3.602 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003227/0.9916, allocations: 259.4 kB / 1.088 GB, free: 3.445 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004215/0.992, allocations: 431.2 kB / 1.088 GB, free: 3.047 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004029/0.9924, allocations: 319.9 kB / 1.088 GB, free: 2.836 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.9925, allocations: 8 kB / 1.088 GB, free: 2.828 MB / 0.698 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001483/0.9939, allocations: 0.9612 MB / 1.089 GB, free: 2.074 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.994, allocations: 8 kB / 1.089 GB, free: 2.066 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.994, allocations: 8 kB / 1.089 GB, free: 2.059 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007594/0.9948, allocations: 264.3 kB / 1.09 GB, free: 1.836 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000463/0.9952, allocations: 123 kB / 1.09 GB, free: 1.719 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005398/1.001, allocations: 6.344 MB / 1.096 GB, free: 11.53 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004961/1.001, allocations: 19.97 kB / 1.096 GB, free: 11.51 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.504e-05/1.001, allocations: 34.5 kB / 1.096 GB, free: 11.48 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001409/1.001, allocations: 120.8 kB / 1.096 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.471e-05/1.001, allocations: 67.23 kB / 1.096 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/1.003, allocations: 0.8222 MB / 1.097 GB, free: 10.69 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/1.003, allocations: 4 kB / 1.097 GB, free: 10.68 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.003, allocations: 7.953 kB / 1.097 GB, free: 10.68 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/1.003, allocations: 3.984 kB / 1.097 GB, free: 10.67 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002172/1.005, allocations: 1.566 MB / 1.099 GB, free: 9.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/1.005, allocations: 4 kB / 1.099 GB, free: 9.406 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/1.005, allocations: 59.45 kB / 1.099 GB, free: 9.352 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000664/1.006, allocations: 259.9 kB / 1.099 GB, free: 9.133 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/1.006, allocations: 0 / 1.099 GB, free: 9.133 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005174/1.011, allocations: 6.31 MB / 1.105 GB, free: 2.973 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/1.011, allocations: 4.031 kB / 1.105 GB, free: 2.969 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/1.013, allocations: 0.9995 MB / 1.106 GB, free: 2.051 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002757/1.013, allocations: 184.3 kB / 1.106 GB, free: 1.852 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.31e-05/1.013, allocations: 11.94 kB / 1.106 GB, free: 1.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/1.013, allocations: 27.97 kB / 1.106 GB, free: 1.812 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.761e-05/1.014, allocations: 35.89 kB / 1.106 GB, free: 1.777 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/1.014, allocations: 16 kB / 1.106 GB, free: 1.762 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0003561/1.014, allocations: 306.9 kB / 1.107 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.054e-06/1.014, allocations: 0 / 1.107 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008212/1.015, allocations: 207.9 kB / 1.107 GB, free: 1.262 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001763/1.015, allocations: 113.2 kB / 1.107 GB, free: 1.141 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.00163/1.017, allocations: 1.173 MB / 1.108 GB, free: 15.93 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/1.017, allocations: 4 kB / 1.108 GB, free: 15.93 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.001088/1.018, allocations: 0.8387 MB / 1.109 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007715/1.019, allocations: 164.9 kB / 1.109 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/1.02, allocations: 0.9539 MB / 1.11 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006245/1.021, allocations: 1.028 MB / 1.111 GB, free: 12.83 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0003954/1.021, allocations: 105.4 kB / 1.111 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.642e-05/1.021, allocations: 43.42 kB / 1.111 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of SimCode: time 4.21e-07/1.021, allocations: 0 / 1.111 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of Templates: time 0.0143/1.036, allocations: 9.311 MB / 1.12 GB, free: 3.477 MB / 0.7292 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches