Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RLCLine_1.terminal_n.phase.1..i.1.|RLCLine_1.terminal_n.phase.1..i.2.|RLCLine_sc.terminal_n.phase.1..i.1.|RLCLine_sc.terminal_n.phase.1..i.2.|RLCLine_2a.terminal_n.phase.1..i.1.|RLCLine_2a.terminal_n.phase.1..i.2.|RLCLine_3a.terminal_n.phase.1..i.1.|RLCLine_3a.terminal_n.phase.1..i.2.|RLCLine_3b.terminal_n.phase.1..i.1.|RLCLine_3b.terminal_n.phase.1..i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.214/2.214, allocations: 387.1 MB / 399.7 MB, free: 9.469 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.001031/0.001031, allocations: 173 kB / 492.3 MB, free: 0.6445 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.467/1.467, allocations: 221.3 MB / 0.7872 GB, free: 12.96 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.0008777/0.0008777, allocations: 91.88 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.493e-05/3.495e-05, allocations: 3.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2685, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9232/1.192, allocations: 196.6 MB / 1.404 GB, free: 3.422 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/1.192, allocations: 100.8 kB / 1.405 GB, free: 3.363 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.7654/1.958, allocations: 324.7 MB / 1.722 GB, free: 10.52 MB / 1.135 GB Notification: Performance of FrontEnd: time 1.934e-06/1.958, allocations: 0 / 1.722 GB, free: 10.52 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0007079/1.958, allocations: 147.9 kB / 1.722 GB, free: 10.37 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.01775/1.976, allocations: 4.662 MB / 1.726 GB, free: 5.645 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/1.976, allocations: 8.031 kB / 1.726 GB, free: 5.637 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01235/1.989, allocations: 1.487 MB / 1.728 GB, free: 4.141 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/2.002, allocations: 4.223 MB / 1.732 GB, free: 15.84 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005084/2.003, allocations: 386 kB / 1.732 GB, free: 15.46 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003138/2.006, allocations: 0.4959 MB / 1.733 GB, free: 14.96 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02656/2.033, allocations: 8.284 MB / 1.741 GB, free: 6.215 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003546/2.033, allocations: 31.72 kB / 1.741 GB, free: 6.184 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002737/2.036, allocations: 227.9 kB / 1.741 GB, free: 5.961 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005768/2.036, allocations: 330 kB / 1.741 GB, free: 5.637 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.8371/2.873, allocations: 6.325 MB / 1.748 GB, free: 242.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05892/2.932, allocations: 40 MB / 1.787 GB, free: 218.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005095/2.938, allocations: 2.783 MB / 1.789 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004319/2.942, allocations: 2.551 MB / 1.792 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000274/2.942, allocations: 29.67 kB / 1.792 GB, free: 218.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/2.942, allocations: 57.59 kB / 1.792 GB, free: 218.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=265): time 6.602e-06/2.942, allocations: 1.125 kB / 1.792 GB, free: 218.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=424): time 0.2536/3.196, allocations: 60.07 MB / 1.851 GB, free: 215.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/3.196, allocations: 96.14 kB / 1.851 GB, free: 215 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004303/3.2, allocations: 1.914 MB / 1.853 GB, free: 214.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001091/3.202, allocations: 97.83 kB / 1.853 GB, free: 214.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001806/3.203, allocations: 2.33 MB / 1.855 GB, free: 213.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.002243/3.206, allocations: 1.439 MB / 1.856 GB, free: 213.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008257/3.206, allocations: 89.69 kB / 1.856 GB, free: 213.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0003316/3.207, allocations: 484.3 kB / 1.857 GB, free: 212.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00443/3.211, allocations: 2.726 MB / 1.86 GB, free: 212.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005407/3.217, allocations: 3.691 MB / 1.863 GB, free: 211.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005847/3.223, allocations: 3.339 MB / 1.866 GB, free: 211.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.071e-05/3.223, allocations: 6.75 kB / 1.866 GB, free: 211.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=557) (initialization): time 0.0255/3.248, allocations: 11.68 MB / 1.878 GB, free: 210.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 5.79e-05/3.248, allocations: 22.11 kB / 1.878 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.845e-05/3.248, allocations: 32.41 kB / 1.878 GB, free: 210.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01765/3.266, allocations: 4.988 MB / 1.883 GB, free: 210.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/3.268, allocations: 0.5072 MB / 1.883 GB, free: 210.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06825/3.337, allocations: 64.69 MB / 1.946 GB, free: 166.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005066/3.342, allocations: 180.9 kB / 1.947 GB, free: 166.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001281/3.343, allocations: 167.3 kB / 1.947 GB, free: 166.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (275): * Single equations (assignments): 251 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 1,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(2,100.0%) 16,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(3,100.0%) 15,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002118/3.345, allocations: 344.6 kB / 1.947 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001481/3.347, allocations: 388.1 kB / 1.947 GB, free: 166.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02436/3.371, allocations: 11.47 MB / 1.959 GB, free: 161.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.943e-05/3.371, allocations: 41.16 kB / 1.959 GB, free: 161.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001235/3.371, allocations: 47.53 kB / 1.959 GB, free: 161.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.026e-05/3.371, allocations: 24.78 kB / 1.959 GB, free: 161.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03625/3.408, allocations: 17.82 MB / 1.976 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.579e-05/3.408, allocations: 3.812 kB / 1.976 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001588/3.409, allocations: 295.7 kB / 1.976 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01407/3.423, allocations: 4.492 MB / 1.981 GB, free: 153.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006191/3.424, allocations: 82.66 kB / 1.981 GB, free: 153.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06294/3.487, allocations: 62.23 MB / 2.042 GB, free: 96.85 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.618e-06/3.487, allocations: 11.19 kB / 2.042 GB, free: 96.84 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03032/3.517, allocations: 15.17 MB / 2.057 GB, free: 83.55 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003774/3.521, allocations: 0.974 MB / 2.057 GB, free: 82.66 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002/3.523, allocations: 86.89 kB / 2.058 GB, free: 82.58 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003985/3.527, allocations: 175.1 kB / 2.058 GB, free: 82.46 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00222/3.529, allocations: 407.6 kB / 2.058 GB, free: 82.21 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007362/3.53, allocations: 104 kB / 2.058 GB, free: 82.11 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.003096/3.533, allocations: 1.443 MB / 2.06 GB, free: 80.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/3.533, allocations: 3.391 kB / 2.06 GB, free: 80.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01089/3.544, allocations: 1.771 MB / 2.061 GB, free: 79.04 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 121 * 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: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 24 {(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 15,(3,100.0%) 15,(4,100.0%) 16,(4,100.0%) 16,(4,100.0%) 16,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16,(2,100.0%) 8,(3,100.0%) 15,(4,100.0%) 16,(2,100.0%) 8,(2,100.0%) 16,(4,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001336/3.546, allocations: 213.1 kB / 2.062 GB, free: 78.84 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.02111/3.567, allocations: 11.44 MB / 2.073 GB, free: 68.13 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.34e-05/3.567, allocations: 4 kB / 2.073 GB, free: 68.13 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01441/3.581, allocations: 7.955 MB / 2.08 GB, free: 60.64 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006899/3.588, allocations: 0.9727 MB / 2.081 GB, free: 59.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02375/3.612, allocations: 9.966 MB / 2.091 GB, free: 50.94 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007458/3.62, allocations: 4.187 MB / 2.095 GB, free: 47.76 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003567/3.623, allocations: 0.672 MB / 2.096 GB, free: 47.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007564/3.624, allocations: 175.4 kB / 2.096 GB, free: 47.12 MB / 1.151 GB Notification: Performance of SimCode: time 1.352e-06/3.624, allocations: 0 / 2.096 GB, free: 47.12 MB / 1.151 GB Notification: Performance of Templates: time 0.1553/3.779, allocations: 94.95 MB / 2.189 GB, free: 3.223 MB / 1.182 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches