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.406/2.406, allocations: 387.4 MB / 394.9 MB, free: 13.39 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.001046/0.001046, allocations: 180.8 kB / 487.4 MB, free: 5.051 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.483/1.483, allocations: 221.5 MB / 0.7824 GB, free: 1.039 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008432/0.0008433, allocations: 103.8 kB / 0.9219 GB, free: 2.273 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.35e-05/2.342e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3517, allocations: 142.4 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.062/1.413, allocations: 217.9 MB / 1.419 GB, free: 7.309 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004125/1.414, allocations: 92.44 kB / 1.419 GB, free: 7.258 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.3107/1.725, allocations: 123.1 MB / 1.539 GB, free: 9.664 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.034e-06/1.725, allocations: 0 / 1.539 GB, free: 9.664 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001873/1.725, allocations: 36 kB / 1.539 GB, free: 9.629 MB / 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.005209/1.73, allocations: 1.61 MB / 1.541 GB, free: 7.969 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.794e-05/1.73, allocations: 12.03 kB / 1.541 GB, free: 7.957 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01221/1.742, allocations: 1.878 MB / 1.543 GB, free: 6.074 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004017/1.746, allocations: 1.212 MB / 1.544 GB, free: 4.805 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.698e-05/1.747, allocations: 36 kB / 1.544 GB, free: 4.77 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006846/1.747, allocations: 79.83 kB / 1.544 GB, free: 4.691 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004028/1.751, allocations: 1.695 MB / 1.545 GB, free: 2.992 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004835/1.756, allocations: 2.061 MB / 1.547 GB, free: 0.75 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.599e-05/1.756, allocations: 4 kB / 1.548 GB, free: 0.7461 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/1.756, allocations: 7.953 kB / 1.548 GB, free: 0.7383 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001385/1.757, allocations: 86.28 kB / 1.548 GB, free: 0.6523 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01852/1.775, allocations: 10.43 MB / 1.558 GB, free: 5.645 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002873/1.778, allocations: 1.665 MB / 1.559 GB, free: 3.914 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/1.779, allocations: 0.8738 MB / 1.56 GB, free: 3.035 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 8.179e-05/1.78, allocations: 24.75 kB / 1.56 GB, free: 3.008 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.186e-05/1.78, allocations: 43.34 kB / 1.56 GB, free: 2.957 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=89): time 4.499e-06/1.78, allocations: 0 / 1.56 GB, free: 2.957 MB / 0.9636 GB Notification: Performance of matching and sorting (n=131): time 0.01383/1.793, allocations: 5.701 MB / 1.566 GB, free: 13.21 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/1.794, allocations: 230.9 kB / 1.566 GB, free: 12.93 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/1.795, allocations: 0.7584 MB / 1.567 GB, free: 12.16 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0001912/1.795, allocations: 29.7 kB / 1.567 GB, free: 12.13 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.000547/1.796, allocations: 0.7066 MB / 1.568 GB, free: 11.41 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005066/1.796, allocations: 441.3 kB / 1.568 GB, free: 10.98 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/1.796, allocations: 0 / 1.568 GB, free: 10.98 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0001624/1.797, allocations: 357.9 kB / 1.568 GB, free: 10.62 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/1.798, allocations: 0.928 MB / 1.569 GB, free: 9.691 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/1.799, allocations: 1.183 MB / 1.57 GB, free: 8.41 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001894/1.801, allocations: 1.08 MB / 1.571 GB, free: 7.328 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/1.801, allocations: 0 / 1.571 GB, free: 7.328 MB / 0.9792 GB Notification: Performance of matching and sorting (n=164) (initialization): time 0.008484/1.81, allocations: 3.619 MB / 1.575 GB, free: 3.66 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/1.81, allocations: 8 kB / 1.575 GB, free: 3.652 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/1.81, allocations: 7.984 kB / 1.575 GB, free: 3.645 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006556/1.816, allocations: 1.58 MB / 1.577 GB, free: 2.023 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/1.819, allocations: 443.2 kB / 1.577 GB, free: 1.59 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02543/1.844, allocations: 23.88 MB / 1.6 GB, free: 8.207 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00272/1.847, allocations: 299.5 kB / 1.601 GB, free: 7.914 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001995/1.847, allocations: 59.97 kB / 1.601 GB, free: 7.855 MB / 1.01 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.0003665/1.848, allocations: 136.7 kB / 1.601 GB, free: 7.719 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/1.848, allocations: 146.3 kB / 1.601 GB, free: 7.574 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008408/1.857, allocations: 3.675 MB / 1.604 GB, free: 3.848 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/1.857, allocations: 12 kB / 1.605 GB, free: 3.836 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.45e-05/1.857, allocations: 16 kB / 1.605 GB, free: 3.82 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/1.857, allocations: 3.984 kB / 1.605 GB, free: 3.816 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/1.869, allocations: 5.96 MB / 1.61 GB, free: 13.71 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/1.869, allocations: 0 / 1.61 GB, free: 13.71 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001908/1.871, allocations: 387.4 kB / 1.611 GB, free: 13.33 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005913/1.877, allocations: 1.482 MB / 1.612 GB, free: 11.8 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/1.877, allocations: 19.97 kB / 1.612 GB, free: 11.79 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02444/1.901, allocations: 22.91 MB / 1.635 GB, free: 3.371 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/1.901, allocations: 7.938 kB / 1.635 GB, free: 3.363 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007927/1.909, allocations: 3.612 MB / 1.638 GB, free: 15.61 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/1.91, allocations: 451.1 kB / 1.639 GB, free: 15.14 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002367/1.911, allocations: 8 kB / 1.639 GB, free: 15.14 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002098/1.913, allocations: 295.5 kB / 1.639 GB, free: 14.85 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004314/1.913, allocations: 133 kB / 1.639 GB, free: 14.72 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/1.913, allocations: 52.14 kB / 1.639 GB, free: 14.67 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.0008882/1.914, allocations: 0.5762 MB / 1.64 GB, free: 14.09 MB / 1.057 GB Notification: Performance of sort global known variables: time 1.6e-07/1.914, allocations: 0 / 1.64 GB, free: 14.09 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.002347/1.916, allocations: 0.543 MB / 1.64 GB, free: 13.54 MB / 1.057 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.0003715/1.917, allocations: 139 kB / 1.64 GB, free: 13.4 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.006745/1.924, allocations: 4.151 MB / 1.644 GB, free: 9.117 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.924, allocations: 128 / 1.644 GB, free: 9.117 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.005153/1.929, allocations: 2.994 MB / 1.647 GB, free: 5.996 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002399/1.931, allocations: 432.7 kB / 1.648 GB, free: 5.578 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006043/1.937, allocations: 2.813 MB / 1.65 GB, free: 2.699 MB / 1.057 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001368/1.939, allocations: 1.508 MB / 1.652 GB, free: 1.156 MB / 1.057 GB Notification: Performance of simCode: alias equations: time 0.001884/1.941, allocations: 400.1 kB / 1.652 GB, free: 0.7617 MB / 1.057 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/1.941, allocations: 111.4 kB / 1.652 GB, free: 0.6523 MB / 1.057 GB Notification: Performance of SimCode: time 6.81e-07/1.941, allocations: 4 kB / 1.652 GB, free: 0.6484 MB / 1.057 GB Notification: Performance of Templates: time 0.06316/2.004, allocations: 34.62 MB / 1.686 GB, free: 14.36 MB / 1.104 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