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.336/2.336, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001628/0.001628, allocations: 177.1 kB / 498.1 MB, free: 5.746 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.575/1.575, allocations: 223.2 MB / 0.7949 GB, free: 17.89 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.0009909/0.0009909, allocations: 100.2 kB / 0.9346 GB, free: 6.215 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003551, allocations: 8.781 kB / 1.084 GB, free: 220.9 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2816, allocations: 142.4 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8941/1.176, allocations: 218.6 MB / 1.436 GB, free: 204 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/1.176, allocations: 99.3 kB / 1.436 GB, free: 204 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.2676/1.444, allocations: 124.3 MB / 1.558 GB, free: 92.93 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.334e-06/1.444, allocations: 0 / 1.558 GB, free: 92.93 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.000176/1.444, allocations: 40 kB / 1.558 GB, free: 92.89 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: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.005855/1.45, allocations: 1.846 MB / 1.56 GB, free: 90.98 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/1.45, allocations: 8.031 kB / 1.56 GB, free: 90.98 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01042/1.46, allocations: 1.882 MB / 1.562 GB, free: 89.09 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003316/1.464, allocations: 1.224 MB / 1.563 GB, free: 87.81 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.758e-05/1.464, allocations: 90.36 kB / 1.563 GB, free: 87.72 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002405/1.464, allocations: 120 kB / 1.563 GB, free: 87.6 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005114/1.469, allocations: 2.736 MB / 1.566 GB, free: 84.68 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.148e-05/1.469, allocations: 11.84 kB / 1.566 GB, free: 84.66 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000169/1.469, allocations: 59.94 kB / 1.566 GB, free: 84.61 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-05/1.47, allocations: 82.28 kB / 1.566 GB, free: 84.52 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006323/1.476, allocations: 2.85 MB / 1.569 GB, free: 81.66 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01263/1.488, allocations: 10.72 MB / 1.579 GB, free: 70.37 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005687/1.494, allocations: 2.599 MB / 1.582 GB, free: 67.71 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 6.509e-05/1.494, allocations: 12.98 kB / 1.582 GB, free: 67.7 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/1.494, allocations: 43.56 kB / 1.582 GB, free: 67.65 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=89): time 2.845e-06/1.494, allocations: 0 / 1.582 GB, free: 67.65 MB / 0.9167 GB Notification: Performance of matching and sorting (n=131): time 0.04242/1.537, allocations: 13.99 MB / 1.595 GB, free: 53.44 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/1.537, allocations: 222.9 kB / 1.595 GB, free: 53.17 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001436/1.538, allocations: 0.9697 MB / 1.596 GB, free: 52.19 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002129/1.539, allocations: 49.7 kB / 1.596 GB, free: 52.13 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004042/1.539, allocations: 0.7079 MB / 1.597 GB, free: 51.42 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003862/1.539, allocations: 449.4 kB / 1.598 GB, free: 50.97 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/1.54, allocations: 24 kB / 1.598 GB, free: 50.95 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001034/1.54, allocations: 357.9 kB / 1.598 GB, free: 50.59 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002725/1.542, allocations: 1.372 MB / 1.599 GB, free: 49.22 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002836/1.545, allocations: 1.63 MB / 1.601 GB, free: 47.49 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003174/1.548, allocations: 1.466 MB / 1.602 GB, free: 46.02 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.799e-06/1.548, allocations: 8 kB / 1.602 GB, free: 46.02 MB / 0.9167 GB Notification: Performance of matching and sorting (n=164) (initialization): time 0.0118/1.56, allocations: 4.548 MB / 1.607 GB, free: 41.41 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/1.56, allocations: 8.938 kB / 1.607 GB, free: 41.41 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/1.56, allocations: 8 kB / 1.607 GB, free: 41.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006166/1.567, allocations: 1.619 MB / 1.608 GB, free: 39.74 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/1.568, allocations: 443.2 kB / 1.609 GB, free: 39.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0207/1.589, allocations: 25.34 MB / 1.634 GB, free: 12.23 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002849/1.592, allocations: 319.5 kB / 1.634 GB, free: 11.91 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/1.592, allocations: 63.97 kB / 1.634 GB, free: 11.85 MB / 0.9167 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 () * Number of clocked 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.001127/1.593, allocations: 437.4 kB / 1.634 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003328/1.594, allocations: 162.1 kB / 1.634 GB, free: 11.25 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01097/1.605, allocations: 4.59 MB / 1.639 GB, free: 6.609 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/1.605, allocations: 19.95 kB / 1.639 GB, free: 6.59 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-05/1.605, allocations: 12 kB / 1.639 GB, free: 6.578 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/1.605, allocations: 3.984 kB / 1.639 GB, free: 6.574 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/1.62, allocations: 7.016 MB / 1.646 GB, free: 15.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/1.62, allocations: 4.297 kB / 1.646 GB, free: 15.39 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001718/1.621, allocations: 391.4 kB / 1.646 GB, free: 15.01 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006083/1.627, allocations: 1.521 MB / 1.648 GB, free: 13.45 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/1.628, allocations: 35.97 kB / 1.648 GB, free: 13.41 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02732/1.655, allocations: 24.35 MB / 1.672 GB, free: 3.32 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/1.655, allocations: 4 kB / 1.672 GB, free: 3.316 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01199/1.667, allocations: 4.52 MB / 1.676 GB, free: 14.61 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/1.669, allocations: 470.9 kB / 1.676 GB, free: 14.13 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005617/1.669, allocations: 24 kB / 1.676 GB, free: 14.11 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002204/1.672, allocations: 323.5 kB / 1.677 GB, free: 13.79 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004738/1.672, allocations: 128.7 kB / 1.677 GB, free: 13.67 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/1.672, allocations: 47.97 kB / 1.677 GB, free: 13.62 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.001122/1.673, allocations: 0.7526 MB / 1.678 GB, free: 12.87 MB / 0.9636 GB Notification: Performance of sort global known variables: time 3.81e-07/1.673, allocations: 0 / 1.678 GB, free: 12.87 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.002345/1.676, allocations: 0.6054 MB / 1.678 GB, free: 12.26 MB / 0.9636 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 () * Number of clocked 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.0003868/1.676, allocations: 171.7 kB / 1.678 GB, free: 12.09 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.01107/1.687, allocations: 5.181 MB / 1.683 GB, free: 6.73 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/1.687, allocations: 4.125 kB / 1.683 GB, free: 6.727 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.007971/1.695, allocations: 3.558 MB / 1.687 GB, free: 3 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003798/1.699, allocations: 0.4891 MB / 1.687 GB, free: 2.516 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/1.713, allocations: 4.52 MB / 1.692 GB, free: 13.94 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002415/1.716, allocations: 1.501 MB / 1.693 GB, free: 12.41 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.003447/1.719, allocations: 425.4 kB / 1.694 GB, free: 11.98 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007708/1.72, allocations: 115.4 kB / 1.694 GB, free: 11.87 MB / 0.9792 GB Notification: Performance of SimCode: time 1.223e-06/1.72, allocations: 0 / 1.694 GB, free: 11.87 MB / 0.9792 GB Notification: Performance of Templates: time 0.08113/1.801, allocations: 37.65 MB / 1.731 GB, free: 6.633 MB / 1.01 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