Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.load1.v.1.|load_sc_1.load1.v.2.|load_sc_2.load1.v.1.|load_sc_2.load1.v.2.|load_sc_1.load1.i.1.|load_sc_1.load1.i.2.|load_sc_2.load1.i.1.|load_sc_2.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.183/2.183, allocations: 393.5 MB / 408.4 MB, free: 10.97 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.001118/0.001118, allocations: 179.9 kB / 0.4902 GB, free: 2.23 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.629/1.629, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.0009609/0.0009609, allocations: 101 kB / 0.9396 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005485/0.0005488, allocations: 10.47 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3481/0.3486, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9453/1.294, allocations: 208.8 MB / 1.433 GB, free: 194.8 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/1.294, allocations: 97.25 kB / 1.433 GB, free: 194.8 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.2593/1.554, allocations: 121.1 MB / 1.551 GB, free: 93.66 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.675e-06/1.554, allocations: 4 kB / 1.551 GB, free: 93.65 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0002004/1.554, allocations: 75.98 kB / 1.552 GB, free: 93.58 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.009127/1.563, allocations: 2.882 MB / 1.554 GB, free: 90.63 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/1.563, allocations: 16.55 kB / 1.554 GB, free: 90.62 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004973/1.568, allocations: 0.6635 MB / 1.555 GB, free: 89.95 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005944/1.574, allocations: 2.071 MB / 1.557 GB, free: 87.82 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/1.574, allocations: 222 kB / 1.557 GB, free: 87.6 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001111/1.575, allocations: 296 kB / 1.558 GB, free: 87.31 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008023/1.583, allocations: 4.614 MB / 1.562 GB, free: 82.45 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.211e-05/1.583, allocations: 11.84 kB / 1.562 GB, free: 82.43 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003396/1.584, allocations: 132 kB / 1.562 GB, free: 82.3 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001591/1.584, allocations: 169.8 kB / 1.562 GB, free: 82.14 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00529/1.589, allocations: 3.419 MB / 1.566 GB, free: 78.71 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02055/1.61, allocations: 21.59 MB / 1.587 GB, free: 55.12 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/1.612, allocations: 1.288 MB / 1.588 GB, free: 53.82 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 6.037e-05/1.612, allocations: 9 kB / 1.588 GB, free: 53.81 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/1.612, allocations: 51.56 kB / 1.588 GB, free: 53.75 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=107): time 4.458e-06/1.612, allocations: 0 / 1.588 GB, free: 53.75 MB / 0.9167 GB Notification: Performance of matching and sorting (n=138): time 0.02263/1.634, allocations: 8.581 MB / 1.596 GB, free: 45.11 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/1.634, allocations: 68.67 kB / 1.596 GB, free: 45.04 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001386/1.636, allocations: 0.9712 MB / 1.597 GB, free: 44.06 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001062/1.636, allocations: 49.7 kB / 1.597 GB, free: 44 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005831/1.636, allocations: 1.304 MB / 1.599 GB, free: 42.68 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003462/1.637, allocations: 481.1 kB / 1.599 GB, free: 42.21 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.39e-05/1.637, allocations: 31.94 kB / 1.599 GB, free: 42.18 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001169/1.637, allocations: 377.8 kB / 1.6 GB, free: 41.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009694/1.638, allocations: 0.8745 MB / 1.6 GB, free: 40.93 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/1.639, allocations: 1.335 MB / 1.602 GB, free: 39.39 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/1.64, allocations: 1.107 MB / 1.603 GB, free: 38.28 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/1.64, allocations: 4 kB / 1.603 GB, free: 38.28 MB / 0.9167 GB Notification: Performance of matching and sorting (n=205) (initialization): time 0.005222/1.646, allocations: 3.409 MB / 1.606 GB, free: 34.85 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/1.646, allocations: 9.938 kB / 1.606 GB, free: 34.84 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.514e-05/1.646, allocations: 16 kB / 1.606 GB, free: 34.82 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/1.648, allocations: 1.142 MB / 1.607 GB, free: 33.68 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/1.649, allocations: 267.5 kB / 1.608 GB, free: 33.41 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01329/1.663, allocations: 12.96 MB / 1.62 GB, free: 20.05 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/1.664, allocations: 87.98 kB / 1.62 GB, free: 19.97 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/1.665, allocations: 68.36 kB / 1.62 GB, free: 19.9 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (134): * Single equations (assignments): 131 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 17,(5,84.0%) 17,(5,88.0%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002383/1.667, allocations: 1.122 MB / 1.621 GB, free: 18.77 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003958/1.667, allocations: 162.1 kB / 1.622 GB, free: 18.61 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004958/1.672, allocations: 3.118 MB / 1.625 GB, free: 15.47 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/1.672, allocations: 16 kB / 1.625 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/1.672, allocations: 12 kB / 1.625 GB, free: 15.44 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/1.672, allocations: 11.97 kB / 1.625 GB, free: 15.43 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/1.683, allocations: 6.12 MB / 1.631 GB, free: 9.172 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/1.683, allocations: 4 kB / 1.631 GB, free: 9.168 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005543/1.683, allocations: 152.3 kB / 1.631 GB, free: 9.02 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002378/1.686, allocations: 1.028 MB / 1.632 GB, free: 7.984 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/1.686, allocations: 32 kB / 1.632 GB, free: 7.953 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01408/1.7, allocations: 12.66 MB / 1.644 GB, free: 10.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/1.7, allocations: 7.953 kB / 1.644 GB, free: 10.89 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005707/1.706, allocations: 3.334 MB / 1.648 GB, free: 7.32 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001237/1.707, allocations: 411.1 kB / 1.648 GB, free: 6.898 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002123/1.707, allocations: 32 kB / 1.648 GB, free: 6.867 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007754/1.708, allocations: 79.83 kB / 1.648 GB, free: 6.789 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003829/1.708, allocations: 120.7 kB / 1.648 GB, free: 6.672 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-05/1.708, allocations: 40 kB / 1.648 GB, free: 6.633 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.001087/1.709, allocations: 0.7514 MB / 1.649 GB, free: 5.879 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.3e-07/1.709, allocations: 0 / 1.649 GB, free: 5.879 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002548/1.712, allocations: 0.6679 MB / 1.65 GB, free: 5.211 MB / 0.9323 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 (70): * Single equations (assignments): 67 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,84.0%) 17,(5,88.0%) 25,(5,84.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002977/1.712, allocations: 151 kB / 1.65 GB, free: 5.055 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.005022/1.717, allocations: 3.065 MB / 1.653 GB, free: 1.949 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/1.717, allocations: 0 / 1.653 GB, free: 1.949 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.003198/1.721, allocations: 1.937 MB / 1.655 GB, free: 15.98 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/1.723, allocations: 426.1 kB / 1.655 GB, free: 15.57 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/1.734, allocations: 6.417 MB / 1.661 GB, free: 9.07 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00262/1.737, allocations: 2.387 MB / 1.664 GB, free: 6.648 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.00165/1.739, allocations: 350 kB / 1.664 GB, free: 6.301 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002866/1.739, allocations: 87.44 kB / 1.664 GB, free: 6.215 MB / 0.948 GB Notification: Performance of SimCode: time 4.188e-06/1.739, allocations: 0 / 1.664 GB, free: 6.215 MB / 0.948 GB Notification: Performance of Templates: time 0.05594/1.795, allocations: 29.14 MB / 1.692 GB, free: 9.465 MB / 0.9792 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches