Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.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_9_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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 387.1 MB / 399.7 MB, free: 9.461 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.0009901/0.0009899, allocations: 173 kB / 492.3 MB, free: 0.6094 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.613/1.613, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.001015/0.001015, allocations: 91.48 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.425e-05/3.427e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3131, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.045/1.358, allocations: 218.6 MB / 1.426 GB, free: 14.47 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/1.359, allocations: 98.36 kB / 1.426 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.2801/1.639, allocations: 123.6 MB / 1.547 GB, free: 160 kB / 0.948 GB Notification: Performance of FrontEnd: time 1.593e-06/1.639, allocations: 0 / 1.547 GB, free: 160 kB / 0.948 GB Notification: Performance of Transformations before backend: time 9.646e-05/1.639, allocations: 43.98 kB / 1.547 GB, free: 116 kB / 0.948 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.003053/1.642, allocations: 1.602 MB / 1.548 GB, free: 14.46 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 2.574e-05/1.642, allocations: 8.031 kB / 1.548 GB, free: 14.45 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0108/1.653, allocations: 1.878 MB / 1.55 GB, free: 12.57 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/1.656, allocations: 1.212 MB / 1.551 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.104e-05/1.656, allocations: 90.36 kB / 1.551 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000269/1.656, allocations: 123.8 kB / 1.552 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003647/1.66, allocations: 2.237 MB / 1.554 GB, free: 8.668 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.581e-05/1.66, allocations: 7.938 kB / 1.554 GB, free: 8.66 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001687/1.66, allocations: 55.98 kB / 1.554 GB, free: 8.605 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.405e-05/1.66, allocations: 86.23 kB / 1.554 GB, free: 8.52 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002958/1.663, allocations: 1.86 MB / 1.556 GB, free: 6.652 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01623/1.679, allocations: 10.72 MB / 1.566 GB, free: 11.36 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002668/1.682, allocations: 1.709 MB / 1.568 GB, free: 9.582 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/1.683, allocations: 0.9089 MB / 1.569 GB, free: 8.672 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 7.254e-05/1.683, allocations: 8.781 kB / 1.569 GB, free: 8.664 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.379e-05/1.683, allocations: 47.34 kB / 1.569 GB, free: 8.609 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=89): time 2.405e-06/1.683, allocations: 4 kB / 1.569 GB, free: 8.605 MB / 0.9792 GB Notification: Performance of matching and sorting (n=131): time 0.03451/1.718, allocations: 9.947 MB / 1.578 GB, free: 14.59 MB / 0.9948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/1.718, allocations: 226.9 kB / 1.579 GB, free: 14.32 MB / 0.9948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/1.719, allocations: 0.9561 MB / 1.58 GB, free: 13.36 MB / 0.9948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001656/1.72, allocations: 45.7 kB / 1.58 GB, free: 13.3 MB / 0.9948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000533/1.72, allocations: 0.7118 MB / 1.58 GB, free: 12.59 MB / 0.9948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004222/1.721, allocations: 449.5 kB / 1.581 GB, free: 12.14 MB / 0.9948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/1.721, allocations: 24 kB / 1.581 GB, free: 12.12 MB / 0.9948 GB Notification: Performance of setup shared object (initialization): time 0.0001471/1.721, allocations: 357.9 kB / 1.581 GB, free: 11.76 MB / 0.9948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001413/1.722, allocations: 0.9514 MB / 1.582 GB, free: 10.81 MB / 0.9948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/1.724, allocations: 1.233 MB / 1.583 GB, free: 9.48 MB / 0.9948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/1.725, allocations: 1.067 MB / 1.584 GB, free: 8.414 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/1.725, allocations: 0 / 1.584 GB, free: 8.414 MB / 0.9948 GB Notification: Performance of matching and sorting (n=164) (initialization): time 0.008494/1.734, allocations: 3.722 MB / 1.588 GB, free: 4.641 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/1.734, allocations: 12.09 kB / 1.588 GB, free: 4.629 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/1.734, allocations: 4 kB / 1.588 GB, free: 4.625 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006612/1.741, allocations: 1.611 MB / 1.59 GB, free: 2.973 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002248/1.743, allocations: 439.2 kB / 1.59 GB, free: 2.543 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02671/1.77, allocations: 24.77 MB / 1.614 GB, free: 8.039 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002949/1.773, allocations: 323.5 kB / 1.614 GB, free: 7.723 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002078/1.773, allocations: 63.95 kB / 1.615 GB, free: 7.66 MB / 1.026 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.000407/1.773, allocations: 182.6 kB / 1.615 GB, free: 7.477 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003192/1.774, allocations: 162.1 kB / 1.615 GB, free: 7.316 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008724/1.782, allocations: 3.775 MB / 1.619 GB, free: 3.488 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/1.782, allocations: 12 kB / 1.619 GB, free: 3.477 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.182e-05/1.782, allocations: 12 kB / 1.619 GB, free: 3.465 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/1.782, allocations: 3.984 kB / 1.619 GB, free: 3.461 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01242/1.795, allocations: 6.212 MB / 1.625 GB, free: 13.07 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/1.795, allocations: 0 / 1.625 GB, free: 13.07 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0019/1.797, allocations: 395.6 kB / 1.625 GB, free: 12.69 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005963/1.803, allocations: 1.502 MB / 1.626 GB, free: 11.14 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001774/1.803, allocations: 44.05 kB / 1.627 GB, free: 11.1 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02496/1.828, allocations: 23.81 MB / 1.65 GB, free: 1.555 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/1.828, allocations: 4 kB / 1.65 GB, free: 1.551 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008207/1.836, allocations: 3.698 MB / 1.653 GB, free: 13.67 MB / 1.073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001206/1.837, allocations: 470.9 kB / 1.654 GB, free: 13.19 MB / 1.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002454/1.838, allocations: 28 kB / 1.654 GB, free: 13.16 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002155/1.84, allocations: 319.5 kB / 1.654 GB, free: 12.85 MB / 1.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004813/1.84, allocations: 133.3 kB / 1.654 GB, free: 12.72 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/1.841, allocations: 47.97 kB / 1.654 GB, free: 12.67 MB / 1.073 GB Notification: Performance of sorting global known variables: time 0.001183/1.842, allocations: 0.7352 MB / 1.655 GB, free: 11.93 MB / 1.073 GB Notification: Performance of sort global known variables: time 3.5e-07/1.842, allocations: 0 / 1.655 GB, free: 11.93 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.002466/1.844, allocations: 0.6055 MB / 1.656 GB, free: 11.33 MB / 1.073 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.0004234/1.845, allocations: 174.1 kB / 1.656 GB, free: 11.15 MB / 1.073 GB Notification: Performance of simCode: created initialization part: time 0.007196/1.852, allocations: 4.322 MB / 1.66 GB, free: 6.66 MB / 1.073 GB Notification: Performance of simCode: created event and clocks part: time 6.902e-06/1.852, allocations: 0 / 1.66 GB, free: 6.66 MB / 1.073 GB Notification: Performance of simCode: created simulation system equations: time 0.005185/1.857, allocations: 3.12 MB / 1.663 GB, free: 3.371 MB / 1.073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/1.86, allocations: 0.5034 MB / 1.664 GB, free: 2.871 MB / 1.073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005854/1.865, allocations: 2.882 MB / 1.666 GB, free: 15.93 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/1.867, allocations: 1.509 MB / 1.668 GB, free: 14.39 MB / 1.089 GB Notification: Performance of simCode: alias equations: time 0.001825/1.869, allocations: 417.4 kB / 1.668 GB, free: 13.97 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004111/1.869, allocations: 115.4 kB / 1.668 GB, free: 13.86 MB / 1.089 GB Notification: Performance of SimCode: time 1.122e-06/1.869, allocations: 0 / 1.668 GB, free: 13.86 MB / 1.089 GB Notification: Performance of Templates: time 0.06079/1.93, allocations: 37.69 MB / 1.705 GB, free: 8.555 MB / 1.12 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches