Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.286/2.286, allocations: 393.5 MB / 408.4 MB, free: 10.88 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.001785/0.001785, allocations: 182 kB / 0.4902 GB, free: 2.09 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.564/1.564, allocations: 223.1 MB / 0.7992 GB, free: 15.59 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.001201/0.001201, allocations: 104.2 kB / 0.9397 GB, free: 2.766 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004122/0.0004122, allocations: 9.125 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3117/0.3121, allocations: 143 MB / 1.229 GB, free: 85.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.027/1.339, allocations: 183.3 MB / 1.408 GB, free: 70.88 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/1.34, allocations: 96.2 kB / 1.408 GB, free: 70.88 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.4487/1.789, allocations: 194.2 MB / 1.598 GB, free: 6.02 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.306e-06/1.789, allocations: 0 / 1.598 GB, free: 6.02 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0005827/1.789, allocations: 128 kB / 1.598 GB, free: 5.895 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: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01919/1.808, allocations: 4.497 MB / 1.602 GB, free: 1.328 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/1.808, allocations: 8.562 kB / 1.602 GB, free: 1.32 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008453/1.817, allocations: 1.012 MB / 1.603 GB, free: 308 kB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01175/1.829, allocations: 3.233 MB / 1.607 GB, free: 13.01 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000583/1.829, allocations: 365.7 kB / 1.607 GB, free: 12.65 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003105/1.833, allocations: 468 kB / 1.607 GB, free: 12.2 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02943/1.862, allocations: 7.495 MB / 1.615 GB, free: 4.227 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003567/1.862, allocations: 23.72 kB / 1.615 GB, free: 4.203 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002899/1.865, allocations: 227.9 kB / 1.615 GB, free: 3.98 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004221/1.866, allocations: 269.2 kB / 1.615 GB, free: 3.715 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01741/1.883, allocations: 5.399 MB / 1.62 GB, free: 14.3 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06179/1.945, allocations: 36.26 MB / 1.656 GB, free: 6.812 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003964/1.949, allocations: 2.133 MB / 1.658 GB, free: 4.672 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001634/1.949, allocations: 21.27 kB / 1.658 GB, free: 4.652 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.677e-05/1.949, allocations: 67.8 kB / 1.658 GB, free: 4.578 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=157): time 4.228e-06/1.949, allocations: 0 / 1.658 GB, free: 4.578 MB / 0.9792 GB Notification: Performance of matching and sorting (n=160): time 0.01897/1.968, allocations: 7.521 MB / 1.665 GB, free: 12.78 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/1.968, allocations: 64.72 kB / 1.665 GB, free: 12.71 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003892/1.972, allocations: 1.564 MB / 1.667 GB, free: 11.12 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002606/1.973, allocations: 57.7 kB / 1.667 GB, free: 11.06 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002735/1.975, allocations: 2.1 MB / 1.669 GB, free: 8.934 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001152/1.976, allocations: 0.5546 MB / 1.67 GB, free: 8.371 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002585/1.977, allocations: 44 kB / 1.67 GB, free: 8.328 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0003704/1.977, allocations: 394 kB / 1.67 GB, free: 7.938 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002178/1.979, allocations: 1.007 MB / 1.671 GB, free: 6.926 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003026/1.982, allocations: 1.736 MB / 1.673 GB, free: 4.848 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/1.985, allocations: 1.302 MB / 1.674 GB, free: 3.547 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-05/1.985, allocations: 4 kB / 1.674 GB, free: 3.543 MB / 0.9948 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.007346/1.992, allocations: 3.804 MB / 1.678 GB, free: 15.69 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 5.35e-05/1.992, allocations: 16.94 kB / 1.678 GB, free: 15.67 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.756e-05/1.992, allocations: 24 kB / 1.678 GB, free: 15.65 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002517/1.995, allocations: 0.9117 MB / 1.679 GB, free: 14.7 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/1.996, allocations: 415.2 kB / 1.679 GB, free: 14.3 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02142/2.018, allocations: 21.42 MB / 1.7 GB, free: 7.27 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002767/2.021, allocations: 123.9 kB / 1.7 GB, free: 7.148 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000597/2.021, allocations: 92 kB / 1.7 GB, free: 7.059 MB / 1.026 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * 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 (215): * Single equations (assignments): 203 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005436/2.027, allocations: 1.641 MB / 1.702 GB, free: 5.406 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001014/2.028, allocations: 257 kB / 1.702 GB, free: 5.152 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006922/2.035, allocations: 3.256 MB / 1.705 GB, free: 1.844 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/2.035, allocations: 16 kB / 1.705 GB, free: 1.828 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.506e-05/2.035, allocations: 8 kB / 1.705 GB, free: 1.82 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/2.035, allocations: 7.969 kB / 1.705 GB, free: 1.812 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01902/2.054, allocations: 7.514 MB / 1.713 GB, free: 10.14 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/2.054, allocations: 4 kB / 1.713 GB, free: 10.14 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/2.055, allocations: 220.2 kB / 1.713 GB, free: 9.922 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002342/2.057, allocations: 0.8772 MB / 1.714 GB, free: 9.008 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/2.058, allocations: 35.98 kB / 1.714 GB, free: 8.973 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02085/2.078, allocations: 21.37 MB / 1.735 GB, free: 2.008 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.237e-06/2.078, allocations: 7.938 kB / 1.735 GB, free: 2 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00703/2.086, allocations: 3.698 MB / 1.738 GB, free: 14.06 MB / 1.073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001966/2.088, allocations: 0.5252 MB / 1.739 GB, free: 13.52 MB / 1.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008789/2.088, allocations: 35.98 kB / 1.739 GB, free: 13.48 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001895/2.09, allocations: 91.89 kB / 1.739 GB, free: 13.39 MB / 1.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005207/2.091, allocations: 145 kB / 1.739 GB, free: 13.25 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/2.091, allocations: 48 kB / 1.739 GB, free: 13.2 MB / 1.073 GB Notification: Performance of sorting global known variables: time 0.002854/2.094, allocations: 1.178 MB / 1.74 GB, free: 12.01 MB / 1.073 GB Notification: Performance of sort global known variables: time 1.5e-07/2.094, allocations: 0 / 1.74 GB, free: 12.01 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.004919/2.099, allocations: 0.9336 MB / 1.741 GB, free: 11.08 MB / 1.073 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 (109): * Single equations (assignments): 97 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(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.0004522/2.099, allocations: 170 kB / 1.741 GB, free: 10.9 MB / 1.073 GB Notification: Performance of simCode: created initialization part: time 0.007117/2.106, allocations: 4.339 MB / 1.745 GB, free: 6.41 MB / 1.073 GB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/2.106, allocations: 0 / 1.745 GB, free: 6.41 MB / 1.073 GB Notification: Performance of simCode: created simulation system equations: time 0.004471/2.111, allocations: 2.988 MB / 1.748 GB, free: 3.27 MB / 1.073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004325/2.115, allocations: 0.7216 MB / 1.749 GB, free: 2.547 MB / 1.073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02108/2.136, allocations: 9.19 MB / 1.758 GB, free: 9.27 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006711/2.143, allocations: 3.286 MB / 1.761 GB, free: 5.949 MB / 1.089 GB Notification: Performance of simCode: alias equations: time 0.002433/2.146, allocations: 0.5172 MB / 1.762 GB, free: 5.426 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003546/2.146, allocations: 135.4 kB / 1.762 GB, free: 5.293 MB / 1.089 GB Notification: Performance of SimCode: time 1.473e-06/2.146, allocations: 4 kB / 1.762 GB, free: 5.289 MB / 1.089 GB Notification: Performance of Templates: time 0.07919/2.225, allocations: 38.84 MB / 1.8 GB, free: 14.97 MB / 1.135 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches