Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.v.1.|R1.v.2.|R2.v.1.|R2.v.2.|R3.v.1.|R3.v.2.|R1.i.1.|R1.i.2.|load_sc.i.1.|load_sc.i.2.|R2.i.1.|R2.i.2.|R3.i.1.|R3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.361/2.361, allocations: 390.3 MB / 402.8 MB, free: 6.695 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.001147/0.001147, allocations: 172.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.612/1.612, allocations: 221.3 MB / 0.7915 GB, free: 5.449 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.001005/0.001006, allocations: 95.95 kB / 0.9317 GB, free: 5.762 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.982e-05/2.986e-05, allocations: 7.984 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3254, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.141/1.467, allocations: 219.4 MB / 1.433 GB, free: 1.82 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003276/1.467, allocations: 94.75 kB / 1.433 GB, free: 1.77 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.3075/1.775, allocations: 123.6 MB / 1.554 GB, free: 10.34 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.532e-06/1.775, allocations: 0 / 1.554 GB, free: 10.34 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.0001919/1.775, allocations: 39.98 kB / 1.554 GB, free: 10.3 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004858/1.78, allocations: 1.606 MB / 1.555 GB, free: 8.648 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/1.78, allocations: 12.03 kB / 1.555 GB, free: 8.637 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01235/1.792, allocations: 1.878 MB / 1.557 GB, free: 6.754 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005043/1.797, allocations: 1.216 MB / 1.558 GB, free: 5.48 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/1.797, allocations: 90.36 kB / 1.559 GB, free: 5.391 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008178/1.798, allocations: 115.9 kB / 1.559 GB, free: 5.277 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005701/1.804, allocations: 2.237 MB / 1.561 GB, free: 2.852 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.266e-05/1.804, allocations: 7.938 kB / 1.561 GB, free: 2.844 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003888/1.804, allocations: 59.94 kB / 1.561 GB, free: 2.785 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/1.805, allocations: 82.3 kB / 1.561 GB, free: 2.703 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004048/1.809, allocations: 1.871 MB / 1.563 GB, free: 0.8242 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01858/1.827, allocations: 10.7 MB / 1.573 GB, free: 5.531 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002845/1.83, allocations: 1.696 MB / 1.575 GB, free: 3.773 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/1.831, allocations: 0.905 MB / 1.576 GB, free: 2.863 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 7.595e-05/1.832, allocations: 12.77 kB / 1.576 GB, free: 2.848 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.65e-05/1.832, allocations: 47.28 kB / 1.576 GB, free: 2.793 MB / 1.026 GB Notification: Performance of pre-optimization done (n=89): time 2.414e-06/1.832, allocations: 0 / 1.576 GB, free: 2.793 MB / 1.026 GB Notification: Performance of matching and sorting (n=131): time 0.03525/1.867, allocations: 9.955 MB / 1.586 GB, free: 8.785 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/1.867, allocations: 230.9 kB / 1.586 GB, free: 8.512 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/1.869, allocations: 0.9599 MB / 1.587 GB, free: 7.539 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001971/1.869, allocations: 45.7 kB / 1.587 GB, free: 7.488 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006004/1.87, allocations: 0.7003 MB / 1.587 GB, free: 6.781 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005666/1.87, allocations: 453.4 kB / 1.588 GB, free: 6.332 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/1.871, allocations: 28 kB / 1.588 GB, free: 6.305 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0001784/1.871, allocations: 361.9 kB / 1.588 GB, free: 5.945 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/1.872, allocations: 0.9553 MB / 1.589 GB, free: 4.988 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001809/1.874, allocations: 1.221 MB / 1.59 GB, free: 3.668 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001787/1.876, allocations: 1.051 MB / 1.591 GB, free: 2.617 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/1.876, allocations: 7.938 kB / 1.591 GB, free: 2.609 MB / 1.042 GB Notification: Performance of matching and sorting (n=164) (initialization): time 0.00864/1.885, allocations: 3.729 MB / 1.595 GB, free: 14.83 MB / 1.057 GB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/1.885, allocations: 8 kB / 1.595 GB, free: 14.82 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/1.885, allocations: 11.94 kB / 1.595 GB, free: 14.81 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006722/1.891, allocations: 1.611 MB / 1.597 GB, free: 13.16 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00231/1.894, allocations: 447.2 kB / 1.597 GB, free: 12.72 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03085/1.925, allocations: 24.77 MB / 1.621 GB, free: 2.211 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003587/1.928, allocations: 319.5 kB / 1.622 GB, free: 1.898 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004861/1.929, allocations: 55.97 kB / 1.622 GB, free: 1.844 MB / 1.073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 82 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 9,(2,100.0%) 4,(1,100.0%) 1,(2,100.0%) 4,(3,100.0%) 9,(1,100.0%) 1,(3,100.0%) 9,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006463/1.929, allocations: 190.4 kB / 1.622 GB, free: 1.652 MB / 1.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006463/1.93, allocations: 170 kB / 1.622 GB, free: 1.484 MB / 1.073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009654/1.94, allocations: 3.767 MB / 1.626 GB, free: 13.67 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/1.94, allocations: 12 kB / 1.626 GB, free: 13.66 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.217e-05/1.94, allocations: 19.98 kB / 1.626 GB, free: 13.64 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/1.94, allocations: 3.984 kB / 1.626 GB, free: 13.63 MB / 1.089 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/1.955, allocations: 6.209 MB / 1.632 GB, free: 7.254 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/1.955, allocations: 4 kB / 1.632 GB, free: 7.25 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001968/1.957, allocations: 387.4 kB / 1.632 GB, free: 6.871 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006444/1.964, allocations: 1.501 MB / 1.634 GB, free: 5.328 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003104/1.964, allocations: 39.97 kB / 1.634 GB, free: 5.289 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02953/1.994, allocations: 23.81 MB / 1.657 GB, free: 11.74 MB / 1.12 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.994, allocations: 0 / 1.657 GB, free: 11.74 MB / 1.12 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009323/2.003, allocations: 3.701 MB / 1.661 GB, free: 7.855 MB / 1.12 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/2.005, allocations: 470.9 kB / 1.661 GB, free: 7.375 MB / 1.12 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005762/2.005, allocations: 24 kB / 1.661 GB, free: 7.352 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0026/2.008, allocations: 323.5 kB / 1.661 GB, free: 7.035 MB / 1.12 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000525/2.008, allocations: 124.7 kB / 1.661 GB, free: 6.91 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/2.009, allocations: 47.97 kB / 1.661 GB, free: 6.863 MB / 1.12 GB Notification: Performance of sorting global known variables: time 0.001588/2.01, allocations: 0.7391 MB / 1.662 GB, free: 6.121 MB / 1.12 GB Notification: Performance of sort global known variables: time 6.201e-06/2.01, allocations: 0 / 1.662 GB, free: 6.121 MB / 1.12 GB Notification: Performance of remove unused functions: time 0.003037/2.013, allocations: 0.6093 MB / 1.663 GB, free: 5.512 MB / 1.12 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 54 * 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: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(3,100.0%) 9,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 7,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(3,100.0%) 9,(3,100.0%) 7,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005207/2.014, allocations: 168 kB / 1.663 GB, free: 5.34 MB / 1.12 GB Notification: Performance of simCode: created initialization part: time 0.007908/2.022, allocations: 4.315 MB / 1.667 GB, free: 0.8594 MB / 1.12 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/2.022, allocations: 4 kB / 1.667 GB, free: 0.8555 MB / 1.12 GB Notification: Performance of simCode: created simulation system equations: time 0.005622/2.027, allocations: 3.119 MB / 1.67 GB, free: 13.56 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00306/2.03, allocations: 0.492 MB / 1.671 GB, free: 13.07 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007142/2.038, allocations: 2.889 MB / 1.674 GB, free: 10.12 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001859/2.04, allocations: 1.512 MB / 1.675 GB, free: 8.574 MB / 1.135 GB Notification: Performance of simCode: alias equations: time 0.002162/2.042, allocations: 433.4 kB / 1.675 GB, free: 8.145 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005524/2.042, allocations: 119.3 kB / 1.676 GB, free: 8.027 MB / 1.135 GB Notification: Performance of SimCode: time 1.313e-06/2.042, allocations: 0 / 1.676 GB, free: 8.027 MB / 1.135 GB Notification: Performance of Templates: time 0.7053/2.748, allocations: 37.68 MB / 1.712 GB, free: 332.2 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches