Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.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_R_N,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_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,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_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.26/2.26, allocations: 390.3 MB / 405.3 MB, free: 13.43 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.001697/0.001697, allocations: 185.1 kB / 498.1 MB, free: 5.668 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.661/1.661, allocations: 223.2 MB / 0.7948 GB, free: 17.87 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.001059/0.001059, allocations: 96.31 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000382/0.0003821, allocations: 10.72 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3391, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2326/0.5718, allocations: 183.1 MB / 1.402 GB, free: 10.73 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003938/0.5723, allocations: 99.94 kB / 1.402 GB, free: 10.64 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 1.156/1.728, allocations: 214.6 MB / 1.611 GB, free: 34.44 MB / 0.9167 GB Notification: Performance of FrontEnd: time 4.268e-06/1.728, allocations: 0 / 1.611 GB, free: 34.44 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0006164/1.729, allocations: 140 kB / 1.612 GB, free: 34.3 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02332/1.752, allocations: 5.242 MB / 1.617 GB, free: 28.99 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/1.752, allocations: 8.031 kB / 1.617 GB, free: 28.98 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008701/1.761, allocations: 1.152 MB / 1.618 GB, free: 27.82 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01268/1.773, allocations: 3.696 MB / 1.621 GB, free: 24.07 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004589/1.774, allocations: 427.6 kB / 1.622 GB, free: 23.65 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003048/1.777, allocations: 0.5546 MB / 1.622 GB, free: 23.1 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0257/1.803, allocations: 8.811 MB / 1.631 GB, free: 13.84 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002838/1.803, allocations: 23.83 kB / 1.631 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002368/1.805, allocations: 260 kB / 1.631 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000296/1.806, allocations: 295 kB / 1.632 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01585/1.822, allocations: 6.445 MB / 1.638 GB, free: 6.824 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06152/1.883, allocations: 41.46 MB / 1.678 GB, free: 9.621 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00577/1.889, allocations: 3.108 MB / 1.681 GB, free: 6.512 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003101/1.889, allocations: 22 kB / 1.681 GB, free: 6.492 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.73e-05/1.889, allocations: 56.56 kB / 1.681 GB, free: 6.43 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=209): time 8.045e-06/1.889, allocations: 0 / 1.681 GB, free: 6.43 MB / 0.9636 GB Notification: Performance of matching and sorting (n=212): time 0.02995/1.919, allocations: 10.47 MB / 1.692 GB, free: 11.86 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.023e-05/1.92, allocations: 77.41 kB / 1.692 GB, free: 11.77 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00459/1.924, allocations: 1.669 MB / 1.693 GB, free: 10.08 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0005242/1.925, allocations: 65.7 kB / 1.693 GB, free: 10.01 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.002366/1.927, allocations: 2.377 MB / 1.696 GB, free: 7.605 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.001474/1.929, allocations: 0.7278 MB / 1.696 GB, free: 6.867 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003396/1.929, allocations: 52 kB / 1.696 GB, free: 6.816 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0003445/1.929, allocations: 411.1 kB / 1.697 GB, free: 6.41 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002594/1.932, allocations: 1.317 MB / 1.698 GB, free: 5.09 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003452/1.935, allocations: 2.101 MB / 1.7 GB, free: 2.641 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003224/1.939, allocations: 1.681 MB / 1.702 GB, free: 0.957 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-05/1.939, allocations: 8 kB / 1.702 GB, free: 0.9492 MB / 0.9792 GB Notification: Performance of matching and sorting (n=327) (initialization): time 0.01019/1.949, allocations: 4.968 MB / 1.707 GB, free: 11.95 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 4.996e-05/1.949, allocations: 16 kB / 1.707 GB, free: 11.94 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.167e-05/1.949, allocations: 24 kB / 1.707 GB, free: 11.91 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003852/1.953, allocations: 1.546 MB / 1.708 GB, free: 10.36 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002003/1.955, allocations: 439.1 kB / 1.709 GB, free: 9.934 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02544/1.98, allocations: 17.66 MB / 1.726 GB, free: 7.73 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002919/1.983, allocations: 143.9 kB / 1.726 GB, free: 7.59 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006546/1.984, allocations: 108 kB / 1.726 GB, free: 7.484 MB / 1.01 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * 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 (219): * Single equations (assignments): 215 * 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,72.2%) 32,(6,66.7%) 24,(4,100.0%) 18,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005622/1.99, allocations: 1.945 MB / 1.728 GB, free: 5.527 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/1.991, allocations: 292.6 kB / 1.728 GB, free: 5.238 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009277/2, allocations: 4.436 MB / 1.733 GB, free: 0.7734 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.838e-05/2, allocations: 28.08 kB / 1.733 GB, free: 0.7461 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.239e-05/2, allocations: 16 kB / 1.733 GB, free: 0.7305 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.692e-05/2, allocations: 11.95 kB / 1.733 GB, free: 0.7188 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.023/2.023, allocations: 9.648 MB / 1.742 GB, free: 6.926 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/2.023, allocations: 4 kB / 1.742 GB, free: 6.922 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/2.025, allocations: 239.6 kB / 1.742 GB, free: 6.688 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003365/2.028, allocations: 1.405 MB / 1.744 GB, free: 5.273 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002046/2.028, allocations: 40 kB / 1.744 GB, free: 5.234 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02301/2.051, allocations: 17.7 MB / 1.761 GB, free: 2.996 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/2.051, allocations: 12 kB / 1.761 GB, free: 2.984 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008207/2.059, allocations: 4.868 MB / 1.766 GB, free: 13.92 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002356/2.062, allocations: 0.6304 MB / 1.766 GB, free: 13.27 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001019/2.063, allocations: 43.95 kB / 1.767 GB, free: 13.23 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/2.064, allocations: 111.9 kB / 1.767 GB, free: 13.12 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006704/2.065, allocations: 185.6 kB / 1.767 GB, free: 12.93 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000182/2.065, allocations: 63.94 kB / 1.767 GB, free: 12.87 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.002298/2.068, allocations: 1.26 MB / 1.768 GB, free: 11.6 MB / 1.057 GB Notification: Performance of sort global known variables: time 1.71e-07/2.068, allocations: 0 / 1.768 GB, free: 11.6 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.005648/2.073, allocations: 1.172 MB / 1.769 GB, free: 10.43 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 (107): * Single equations (assignments): 103 * 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 {(4,100.0%) 18,(6,66.7%) 24,(6,66.7%) 32,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005267/2.074, allocations: 178.8 kB / 1.769 GB, free: 10.25 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.008773/2.083, allocations: 4.616 MB / 1.774 GB, free: 5.582 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 1.63e-05/2.083, allocations: 0 / 1.774 GB, free: 5.582 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.005493/2.088, allocations: 2.915 MB / 1.777 GB, free: 2.621 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004862/2.093, allocations: 0.7574 MB / 1.777 GB, free: 1.863 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02541/2.119, allocations: 11.18 MB / 1.788 GB, free: 6.598 MB / 1.073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008521/2.127, allocations: 3.787 MB / 1.792 GB, free: 2.777 MB / 1.073 GB Notification: Performance of simCode: alias equations: time 0.003066/2.13, allocations: 0.5435 MB / 1.793 GB, free: 2.23 MB / 1.073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006706/2.131, allocations: 151.4 kB / 1.793 GB, free: 2.082 MB / 1.073 GB Notification: Performance of SimCode: time 1.162e-06/2.131, allocations: 0 / 1.793 GB, free: 2.082 MB / 1.073 GB Notification: Performance of Templates: time 0.09142/2.222, allocations: 47.55 MB / 1.839 GB, free: 3.121 MB / 1.12 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches