Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.362/2.362, allocations: 393.5 MB / 408.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 179.1 kB / 0.4902 GB, free: 2.242 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 223.2 MB / 0.7992 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009555/0.0009556, allocations: 102.3 kB / 0.9396 GB, free: 1.887 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004496/0.0004496, allocations: 12.53 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3558/0.3563, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2479/0.6042, allocations: 183.5 MB / 1.408 GB, free: 2.008 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002888/0.6046, allocations: 95.94 kB / 1.408 GB, free: 1.914 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.154/1.758, allocations: 212.4 MB / 1.616 GB, free: 25.64 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.765e-06/1.758, allocations: 0 / 1.616 GB, free: 25.64 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0005451/1.759, allocations: 131.9 kB / 1.616 GB, free: 25.51 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01957/1.778, allocations: 4.76 MB / 1.621 GB, free: 20.68 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/1.779, allocations: 12.55 kB / 1.621 GB, free: 20.66 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008777/1.787, allocations: 1.055 MB / 1.622 GB, free: 19.6 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/1.799, allocations: 3.41 MB / 1.625 GB, free: 16.13 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004453/1.799, allocations: 415.1 kB / 1.625 GB, free: 15.73 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003121/1.803, allocations: 0.535 MB / 1.626 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02711/1.83, allocations: 8.582 MB / 1.634 GB, free: 6.18 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004545/1.83, allocations: 27.7 kB / 1.634 GB, free: 6.152 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002877/1.833, allocations: 248 kB / 1.635 GB, free: 5.91 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004653/1.834, allocations: 314.8 kB / 1.635 GB, free: 5.602 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0161/1.85, allocations: 6.151 MB / 1.641 GB, free: 15.44 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06753/1.917, allocations: 40.1 MB / 1.68 GB, free: 3.625 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004694/1.922, allocations: 3.09 MB / 1.683 GB, free: 392 kB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002015/1.922, allocations: 21.98 kB / 1.683 GB, free: 372 kB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.805e-05/1.922, allocations: 52.56 kB / 1.683 GB, free: 312 kB / 0.9636 GB Notification: Performance of pre-optimization done (n=179): time 5.319e-06/1.922, allocations: 0 / 1.683 GB, free: 312 kB / 0.9636 GB Notification: Performance of matching and sorting (n=182): time 0.02791/1.95, allocations: 9.869 MB / 1.693 GB, free: 6.336 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.082e-05/1.95, allocations: 69.41 kB / 1.693 GB, free: 6.254 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003911/1.954, allocations: 1.306 MB / 1.694 GB, free: 4.91 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0002702/1.955, allocations: 57.7 kB / 1.694 GB, free: 4.848 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.002196/1.957, allocations: 2.238 MB / 1.696 GB, free: 2.578 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.001041/1.958, allocations: 0.6277 MB / 1.697 GB, free: 1.941 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/1.958, allocations: 47.94 kB / 1.697 GB, free: 1.895 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0003842/1.959, allocations: 394.3 kB / 1.697 GB, free: 1.504 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/1.961, allocations: 1.172 MB / 1.699 GB, free: 336 kB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002655/1.964, allocations: 1.847 MB / 1.7 GB, free: 14.17 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002503/1.966, allocations: 1.501 MB / 1.702 GB, free: 12.67 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.241e-05/1.966, allocations: 8 kB / 1.702 GB, free: 12.66 MB / 0.9948 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.008593/1.975, allocations: 4.535 MB / 1.706 GB, free: 8.102 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/1.975, allocations: 12 kB / 1.706 GB, free: 8.09 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.231e-05/1.975, allocations: 24 kB / 1.706 GB, free: 8.066 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003895/1.979, allocations: 1.582 MB / 1.708 GB, free: 6.477 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/1.98, allocations: 355.4 kB / 1.708 GB, free: 6.129 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02427/2.004, allocations: 17.7 MB / 1.725 GB, free: 3.883 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002231/2.007, allocations: 119.9 kB / 1.726 GB, free: 3.766 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004807/2.007, allocations: 88 kB / 1.726 GB, free: 3.68 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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 {(12,30.6%) 26,(6,66.7%) 24,(6,66.7%) 16,(6,66.7%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005097/2.012, allocations: 1.895 MB / 1.727 GB, free: 1.77 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007479/2.013, allocations: 229.3 kB / 1.728 GB, free: 1.543 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007898/2.021, allocations: 4.075 MB / 1.732 GB, free: 13.44 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/2.021, allocations: 23.98 kB / 1.732 GB, free: 13.41 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.361e-05/2.021, allocations: 16 kB / 1.732 GB, free: 13.4 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/2.021, allocations: 7.969 kB / 1.732 GB, free: 13.39 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02023/2.041, allocations: 9.407 MB / 1.741 GB, free: 3.738 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/2.041, allocations: 4 kB / 1.741 GB, free: 3.734 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008263/2.042, allocations: 187.7 kB / 1.741 GB, free: 3.551 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003551/2.046, allocations: 1.35 MB / 1.742 GB, free: 2.191 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/2.046, allocations: 36.25 kB / 1.742 GB, free: 2.156 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02235/2.068, allocations: 16.53 MB / 1.759 GB, free: 1.098 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.245e-06/2.068, allocations: 8.125 kB / 1.759 GB, free: 1.09 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007371/2.076, allocations: 4.351 MB / 1.763 GB, free: 12.49 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/2.077, allocations: 0.5257 MB / 1.763 GB, free: 11.94 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002533/2.077, allocations: 39.95 kB / 1.763 GB, free: 11.9 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000909/2.078, allocations: 87.89 kB / 1.763 GB, free: 11.82 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006037/2.079, allocations: 161.7 kB / 1.764 GB, free: 11.66 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/2.079, allocations: 48 kB / 1.764 GB, free: 11.61 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.00174/2.081, allocations: 0.989 MB / 1.765 GB, free: 10.6 MB / 1.057 GB Notification: Performance of sort global known variables: time 4.71e-07/2.081, allocations: 0 / 1.765 GB, free: 10.6 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.004571/2.085, allocations: 1.035 MB / 1.766 GB, free: 9.562 MB / 1.057 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 81 * 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 {(6,66.7%) 16,(6,66.7%) 16,(6,66.7%) 24,(6,66.7%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003651/2.086, allocations: 157.5 kB / 1.766 GB, free: 9.402 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.007264/2.093, allocations: 4.262 MB / 1.77 GB, free: 5.094 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/2.093, allocations: 4.125 kB / 1.77 GB, free: 5.09 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.004352/2.098, allocations: 2.663 MB / 1.773 GB, free: 2.379 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003364/2.101, allocations: 0.6753 MB / 1.773 GB, free: 1.711 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0179/2.119, allocations: 10.51 MB / 1.784 GB, free: 7.117 MB / 1.073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004163/2.123, allocations: 3.668 MB / 1.787 GB, free: 3.414 MB / 1.073 GB Notification: Performance of simCode: alias equations: time 0.001819/2.125, allocations: 463.7 kB / 1.788 GB, free: 2.957 MB / 1.073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002939/2.125, allocations: 123.4 kB / 1.788 GB, free: 2.836 MB / 1.073 GB Notification: Performance of SimCode: time 1.232e-06/2.125, allocations: 0 / 1.788 GB, free: 2.836 MB / 1.073 GB Notification: Performance of Templates: time 0.07678/2.202, allocations: 41.14 MB / 1.828 GB, free: 10.11 MB / 1.12 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches