Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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,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_3.load1.v.1.|load_sc_3.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.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,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_3.load1.v.1.|load_sc_3.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.|load_sc_3.load1.i.1.|load_sc_3.load1.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.193/2.193, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001103/0.001103, allocations: 191.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.582/1.582, 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.001085/0.001085, allocations: 94.77 kB / 0.9396 GB, free: 2.777 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004081, allocations: 10.02 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3372, allocations: 143 MB / 1.229 GB, free: 85.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.039/1.376, allocations: 207.4 MB / 1.432 GB, free: 58.02 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000398/1.377, allocations: 100.8 kB / 1.432 GB, free: 58.02 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.3429/1.72, allocations: 156.2 MB / 1.584 GB, free: 8.145 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.785e-06/1.72, allocations: 0 / 1.584 GB, free: 8.145 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0002737/1.72, allocations: 99.61 kB / 1.584 GB, free: 8.051 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01188/1.732, allocations: 3.49 MB / 1.588 GB, free: 4.777 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 6.492e-05/1.732, allocations: 12.56 kB / 1.588 GB, free: 4.766 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006948/1.739, allocations: 0.8291 MB / 1.589 GB, free: 3.934 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008666/1.748, allocations: 2.566 MB / 1.591 GB, free: 1.961 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003282/1.748, allocations: 276 kB / 1.591 GB, free: 1.809 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001889/1.75, allocations: 379.9 kB / 1.592 GB, free: 1.555 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0158/1.766, allocations: 5.708 MB / 1.597 GB, free: 11.53 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002543/1.766, allocations: 27.77 kB / 1.597 GB, free: 11.5 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001514/1.768, allocations: 163.3 kB / 1.598 GB, free: 11.35 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003521/1.768, allocations: 215 kB / 1.598 GB, free: 11.14 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01226/1.78, allocations: 4.126 MB / 1.602 GB, free: 7.004 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04384/1.824, allocations: 27.66 MB / 1.629 GB, free: 8.965 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002104/1.826, allocations: 1.1 MB / 1.63 GB, free: 7.855 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/1.826, allocations: 9 kB / 1.63 GB, free: 7.848 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/1.826, allocations: 43.56 kB / 1.63 GB, free: 7.797 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=110): time 3.737e-06/1.826, allocations: 4 kB / 1.63 GB, free: 7.793 MB / 0.9636 GB Notification: Performance of matching and sorting (n=131): time 0.02373/1.85, allocations: 9.55 MB / 1.639 GB, free: 14.04 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/1.85, allocations: 68.66 kB / 1.639 GB, free: 13.96 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00234/1.853, allocations: 1.278 MB / 1.641 GB, free: 12.69 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0001263/1.853, allocations: 45.7 kB / 1.641 GB, free: 12.64 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.001207/1.854, allocations: 1.669 MB / 1.642 GB, free: 10.95 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004338/1.854, allocations: 464.1 kB / 1.643 GB, free: 10.5 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.05e-05/1.855, allocations: 36 kB / 1.643 GB, free: 10.46 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001893/1.855, allocations: 381.9 kB / 1.643 GB, free: 10.09 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/1.856, allocations: 0.8745 MB / 1.644 GB, free: 9.211 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001686/1.858, allocations: 1.464 MB / 1.645 GB, free: 7.48 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/1.859, allocations: 1.119 MB / 1.646 GB, free: 6.363 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/1.859, allocations: 7.984 kB / 1.647 GB, free: 6.355 MB / 0.9792 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005888/1.865, allocations: 3.216 MB / 1.65 GB, free: 3.102 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/1.865, allocations: 16 kB / 1.65 GB, free: 3.086 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.858e-05/1.865, allocations: 20.16 kB / 1.65 GB, free: 3.066 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002191/1.868, allocations: 0.7256 MB / 1.65 GB, free: 2.312 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/1.869, allocations: 395.3 kB / 1.651 GB, free: 1.926 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01605/1.885, allocations: 15.85 MB / 1.666 GB, free: 0.875 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/1.887, allocations: 111.9 kB / 1.666 GB, free: 0.7656 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000163/1.887, allocations: 80 kB / 1.666 GB, free: 0.6875 MB / 0.9948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (193): * Single equations (assignments): 184 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003294/1.891, allocations: 1.313 MB / 1.668 GB, free: 15.36 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005231/1.891, allocations: 201.6 kB / 1.668 GB, free: 15.16 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005338/1.897, allocations: 2.737 MB / 1.671 GB, free: 12.38 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/1.897, allocations: 12 kB / 1.671 GB, free: 12.37 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/1.897, allocations: 12 kB / 1.671 GB, free: 12.36 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/1.897, allocations: 3.984 kB / 1.671 GB, free: 12.36 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/1.909, allocations: 6.086 MB / 1.677 GB, free: 6.129 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/1.909, allocations: 4 kB / 1.677 GB, free: 6.125 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001238/1.91, allocations: 240.3 kB / 1.677 GB, free: 5.891 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001958/1.912, allocations: 0.6397 MB / 1.677 GB, free: 5.223 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/1.912, allocations: 32 kB / 1.677 GB, free: 5.191 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01623/1.928, allocations: 15.59 MB / 1.693 GB, free: 4.406 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/1.928, allocations: 4 kB / 1.693 GB, free: 4.402 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007277/1.936, allocations: 4.263 MB / 1.697 GB, free: 15.92 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001412/1.937, allocations: 454.5 kB / 1.697 GB, free: 15.45 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000263/1.937, allocations: 35.98 kB / 1.697 GB, free: 15.42 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008915/1.938, allocations: 80.02 kB / 1.697 GB, free: 15.34 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003735/1.939, allocations: 112.8 kB / 1.697 GB, free: 15.23 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/1.939, allocations: 40 kB / 1.698 GB, free: 15.19 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.001666/1.94, allocations: 0.9747 MB / 1.698 GB, free: 14.23 MB / 1.042 GB Notification: Performance of sort global known variables: time 1.3e-07/1.94, allocations: 0 / 1.698 GB, free: 14.23 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.003042/1.944, allocations: 0.7031 MB / 1.699 GB, free: 13.52 MB / 1.042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[2]) * 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 (101): * Single equations (assignments): 92 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003893/1.944, allocations: 166.9 kB / 1.699 GB, free: 13.35 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0057/1.95, allocations: 3.434 MB / 1.703 GB, free: 9.809 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/1.95, allocations: 0 / 1.703 GB, free: 9.809 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.003515/1.953, allocations: 2.264 MB / 1.705 GB, free: 7.426 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00337/1.957, allocations: 0.5667 MB / 1.705 GB, free: 6.863 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01535/1.972, allocations: 7.824 MB / 1.713 GB, free: 14.95 MB / 1.057 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003242/1.975, allocations: 2.734 MB / 1.716 GB, free: 12.18 MB / 1.057 GB Notification: Performance of simCode: alias equations: time 0.001979/1.977, allocations: 473 kB / 1.716 GB, free: 11.72 MB / 1.057 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003099/1.978, allocations: 115.4 kB / 1.716 GB, free: 11.61 MB / 1.057 GB Notification: Performance of SimCode: time 1.062e-06/1.978, allocations: 0 / 1.716 GB, free: 11.61 MB / 1.057 GB Notification: Performance of Templates: time 0.05692/2.034, allocations: 30.25 MB / 1.746 GB, free: 13.8 MB / 1.089 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches