Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.469/1.469, allocations: 249.3 MB / 261.8 MB, free: 5.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009327/0.0009328, allocations: 172.8 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.2 MB / 0.572 GB, free: 10.66 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009507/0.0009509, allocations: 86.55 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.837e-05/3.839e-05, allocations: 0 / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2068, allocations: 106.3 MB / 0.8918 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8923/1.099, allocations: 203.2 MB / 1.09 GB, free: 14.81 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003236/1.1, allocations: 94.19 kB / 1.09 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.2327/1.332, allocations: 85.34 MB / 1.174 GB, free: 13.9 MB / 0.7917 GB Notification: Performance of FrontEnd: time 2.785e-06/1.332, allocations: 3.938 kB / 1.174 GB, free: 13.89 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 0.0001425/1.333, allocations: 47.88 kB / 1.174 GB, free: 13.85 MB / 0.7917 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.004034/1.337, allocations: 1.614 MB / 1.175 GB, free: 12.18 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 6.105e-05/1.337, allocations: 8.031 kB / 1.175 GB, free: 12.18 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01256/1.349, allocations: 1.952 MB / 1.177 GB, free: 10.22 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00636/1.356, allocations: 2.075 MB / 1.179 GB, free: 8.086 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.721e-05/1.356, allocations: 90.31 kB / 1.179 GB, free: 7.996 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002666/1.356, allocations: 115.9 kB / 1.179 GB, free: 7.883 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003963/1.36, allocations: 2.229 MB / 1.182 GB, free: 5.465 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/1.36, allocations: 0 / 1.182 GB, free: 5.465 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001829/1.36, allocations: 59.92 kB / 1.182 GB, free: 5.406 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/1.36, allocations: 90.23 kB / 1.182 GB, free: 5.316 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003087/1.363, allocations: 1.863 MB / 1.184 GB, free: 3.445 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01688/1.38, allocations: 10.73 MB / 1.194 GB, free: 8.137 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002555/1.383, allocations: 1.492 MB / 1.196 GB, free: 6.621 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/1.384, allocations: 0.9018 MB / 1.196 GB, free: 5.715 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-05/1.384, allocations: 12.78 kB / 1.196 GB, free: 5.699 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.791e-05/1.384, allocations: 47.3 kB / 1.196 GB, free: 5.645 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=89): time 3.707e-06/1.384, allocations: 4 kB / 1.196 GB, free: 5.641 MB / 0.8073 GB Notification: Performance of matching and sorting (n=153): time 0.04994/1.434, allocations: 13.69 MB / 1.21 GB, free: 7.895 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/1.435, allocations: 230.9 kB / 1.21 GB, free: 7.621 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/1.436, allocations: 0.9955 MB / 1.211 GB, free: 6.617 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002582/1.436, allocations: 53.7 kB / 1.211 GB, free: 6.559 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005881/1.437, allocations: 0.7361 MB / 1.212 GB, free: 5.816 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005508/1.438, allocations: 0.5121 MB / 1.212 GB, free: 5.297 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/1.438, allocations: 32 kB / 1.212 GB, free: 5.266 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001736/1.438, allocations: 361.9 kB / 1.213 GB, free: 4.906 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001722/1.44, allocations: 1.125 MB / 1.214 GB, free: 3.781 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001941/1.442, allocations: 1.411 MB / 1.215 GB, free: 2.27 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/1.443, allocations: 1.25 MB / 1.216 GB, free: 1.016 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/1.443, allocations: 4 kB / 1.216 GB, free: 1.012 MB / 0.823 GB Notification: Performance of matching and sorting (n=186) (initialization): time 0.01095/1.454, allocations: 4.571 MB / 1.221 GB, free: 12.4 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/1.455, allocations: 8 kB / 1.221 GB, free: 12.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/1.455, allocations: 11.98 kB / 1.221 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008443/1.463, allocations: 2.122 MB / 1.223 GB, free: 10.24 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002114/1.465, allocations: 419.3 kB / 1.223 GB, free: 9.828 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02806/1.493, allocations: 22.5 MB / 1.245 GB, free: 2.266 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00312/1.496, allocations: 323.5 kB / 1.246 GB, free: 1.949 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002301/1.497, allocations: 63.97 kB / 1.246 GB, free: 1.887 MB / 0.8542 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 (78): * Single equations (assignments): 70 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 17,(3,100.0%) 17,(2,100.0%) 8,(2,100.0%) 8,(2,100.0%) 16,(2,100.0%) 16,(2,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004137/1.497, allocations: 180.8 kB / 1.246 GB, free: 1.703 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004743/1.498, allocations: 181.9 kB / 1.246 GB, free: 1.523 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/1.508, allocations: 4.653 MB / 1.251 GB, free: 12.83 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/1.508, allocations: 16 kB / 1.251 GB, free: 12.81 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.033e-05/1.509, allocations: 20 kB / 1.251 GB, free: 12.79 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/1.509, allocations: 11.92 kB / 1.251 GB, free: 12.78 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/1.523, allocations: 6.857 MB / 1.257 GB, free: 5.801 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/1.523, allocations: 7.953 kB / 1.257 GB, free: 5.793 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001838/1.525, allocations: 371.7 kB / 1.258 GB, free: 5.43 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007756/1.533, allocations: 1.98 MB / 1.26 GB, free: 3.426 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000177/1.533, allocations: 43.95 kB / 1.26 GB, free: 3.383 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6217/2.155, allocations: 21.67 MB / 1.281 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/2.155, allocations: 7.016 kB / 1.281 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/2.166, allocations: 4.414 MB / 1.285 GB, free: 250.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/2.168, allocations: 0.5105 MB / 1.286 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000271/2.168, allocations: 28.53 kB / 1.286 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002459/2.171, allocations: 331.9 kB / 1.286 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008481/2.172, allocations: 147.9 kB / 1.286 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/2.172, allocations: 59.42 kB / 1.286 GB, free: 250.6 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001393/2.173, allocations: 0.7739 MB / 1.287 GB, free: 250.4 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.352e-06/2.173, allocations: 1.25 kB / 1.287 GB, free: 250.4 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003338/2.177, allocations: 0.7213 MB / 1.288 GB, free: 250.4 MB / 0.8698 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 (46): * Single equations (assignments): 38 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 17,(2,100.0%) 8,(2,100.0%) 8,(3,100.0%) 15,(3,100.0%) 17,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005859/2.177, allocations: 216.5 kB / 1.288 GB, free: 250.4 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.008566/2.186, allocations: 4.346 MB / 1.292 GB, free: 249.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/2.186, allocations: 1.375 kB / 1.292 GB, free: 249.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.00637/2.192, allocations: 2.952 MB / 1.295 GB, free: 248.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003305/2.195, allocations: 0.4938 MB / 1.295 GB, free: 248.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007354/2.203, allocations: 3.177 MB / 1.299 GB, free: 247.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001849/2.205, allocations: 1.603 MB / 1.3 GB, free: 246.9 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.002173/2.207, allocations: 406 kB / 1.3 GB, free: 246.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004626/2.207, allocations: 117.2 kB / 1.301 GB, free: 246.9 MB / 0.8698 GB Notification: Performance of SimCode: time 1.373e-06/2.207, allocations: 0 / 1.301 GB, free: 246.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.07434/2.282, allocations: 44.28 MB / 1.344 GB, free: 245.1 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches