Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|R1.terminal.phase.1..v.1.|R2.terminal.phase.1..v.1.|R3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|R1.load1.i.1.|R2.load1.i.1.|R3.load1.i.1.|sc_load.load1.i.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.374/1.374, allocations: 249.3 MB / 261.8 MB, free: 5.949 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.0009845/0.0009845, allocations: 176.9 kB / 321.3 MB, free: 14.66 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.364/1.364, allocations: 205.2 MB / 0.572 GB, free: 10.62 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.0007974/0.0007974, allocations: 78.55 kB / 0.6764 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.532e-05/3.533e-05, allocations: 4 kB / 0.788 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2124, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7154/0.9278, allocations: 164.5 MB / 1.052 GB, free: 3.957 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/0.9282, allocations: 99.05 kB / 1.053 GB, free: 3.902 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.4161/1.344, allocations: 181.6 MB / 1.23 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.653e-06/1.344, allocations: 0 / 1.23 GB, free: 2.945 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 0.0003282/1.345, allocations: 124 kB / 1.23 GB, free: 2.824 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01419/1.359, allocations: 4.148 MB / 1.234 GB, free: 14.61 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/1.359, allocations: 8.031 kB / 1.234 GB, free: 14.6 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006903/1.366, allocations: 1.02 MB / 1.235 GB, free: 13.57 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007863/1.374, allocations: 3.217 MB / 1.238 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003049/1.374, allocations: 357.7 kB / 1.239 GB, free: 9.949 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/1.376, allocations: 472 kB / 1.239 GB, free: 9.488 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01668/1.393, allocations: 7.418 MB / 1.246 GB, free: 1.594 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/1.393, allocations: 31.7 kB / 1.246 GB, free: 1.562 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007186/1.393, allocations: 220 kB / 1.246 GB, free: 1.348 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002766/1.394, allocations: 269.1 kB / 1.247 GB, free: 1.082 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/1.405, allocations: 5.303 MB / 1.252 GB, free: 11.76 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5478/1.953, allocations: 36.25 MB / 1.287 GB, free: 185.9 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003597/1.957, allocations: 2.11 MB / 1.289 GB, free: 185.8 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002064/1.959, allocations: 1.46 MB / 1.291 GB, free: 185.8 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 9.389e-05/1.959, allocations: 16.59 kB / 1.291 GB, free: 185.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.894e-05/1.959, allocations: 53.25 kB / 1.291 GB, free: 185.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=157): time 3.346e-06/1.959, allocations: 1.125 kB / 1.291 GB, free: 185.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=160): time 0.01126/1.97, allocations: 4.974 MB / 1.296 GB, free: 184.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/1.97, allocations: 72.09 kB / 1.296 GB, free: 184.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002871/1.973, allocations: 1.54 MB / 1.297 GB, free: 184.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001331/1.973, allocations: 52.94 kB / 1.297 GB, free: 184.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001538/1.975, allocations: 2.1 MB / 1.299 GB, free: 183.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000517/1.975, allocations: 0.5566 MB / 1.3 GB, free: 183.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/1.976, allocations: 43.41 kB / 1.3 GB, free: 183.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001467/1.976, allocations: 388.3 kB / 1.3 GB, free: 183.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/1.977, allocations: 0.9971 MB / 1.301 GB, free: 183.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001858/1.979, allocations: 1.71 MB / 1.303 GB, free: 182.4 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00199/1.981, allocations: 1.293 MB / 1.304 GB, free: 182.3 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.53e-05/1.981, allocations: 6.875 kB / 1.304 GB, free: 182.3 MB / 0.8698 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.006844/1.988, allocations: 3.767 MB / 1.308 GB, free: 182 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.056e-05/1.988, allocations: 17.47 kB / 1.308 GB, free: 182 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.794e-05/1.988, allocations: 23.78 kB / 1.308 GB, free: 182 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002382/1.991, allocations: 0.9111 MB / 1.309 GB, free: 181.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00151/1.992, allocations: 415.3 kB / 1.309 GB, free: 181.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/2.01, allocations: 21 MB / 1.33 GB, free: 166.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002511/2.012, allocations: 128.6 kB / 1.33 GB, free: 166.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002706/2.013, allocations: 94.34 kB / 1.33 GB, free: 166.8 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 203 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004685/2.013, allocations: 239.3 kB / 1.33 GB, free: 166.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004644/2.013, allocations: 251.3 kB / 1.33 GB, free: 166.6 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005744/2.019, allocations: 3.226 MB / 1.334 GB, free: 166.4 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.468e-05/2.019, allocations: 22.39 kB / 1.334 GB, free: 166.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.43e-05/2.019, allocations: 7.875 kB / 1.334 GB, free: 166.4 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/2.019, allocations: 7.875 kB / 1.334 GB, free: 166.4 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/2.031, allocations: 7.484 MB / 1.341 GB, free: 165.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/2.031, allocations: 3.594 kB / 1.341 GB, free: 165.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000885/2.032, allocations: 226.2 kB / 1.341 GB, free: 165.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002036/2.034, allocations: 0.8718 MB / 1.342 GB, free: 165.6 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/2.034, allocations: 34.59 kB / 1.342 GB, free: 165.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/2.049, allocations: 20.96 MB / 1.362 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/2.049, allocations: 9.375 kB / 1.363 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005026/2.054, allocations: 3.666 MB / 1.366 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/2.055, allocations: 0.5275 MB / 1.367 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002582/2.056, allocations: 33.3 kB / 1.367 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/2.057, allocations: 95.5 kB / 1.367 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003606/2.057, allocations: 141.4 kB / 1.367 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.595e-05/2.057, allocations: 48.5 kB / 1.367 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.00139/2.058, allocations: 1.159 MB / 1.368 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.6e-07/2.058, allocations: 0 / 1.368 GB, free: 149.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003112/2.062, allocations: 0.9393 MB / 1.369 GB, free: 149.1 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 97 * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 6,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002716/2.062, allocations: 161.7 kB / 1.369 GB, free: 149 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.005454/2.067, allocations: 4.284 MB / 1.373 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/2.067, allocations: 0 / 1.373 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003355/2.071, allocations: 2.948 MB / 1.376 GB, free: 145 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003128/2.074, allocations: 0.7188 MB / 1.377 GB, free: 144.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/2.084, allocations: 5.981 MB / 1.383 GB, free: 142.5 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00302/2.087, allocations: 3.289 MB / 1.386 GB, free: 141.3 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001991/2.089, allocations: 0.518 MB / 1.386 GB, free: 141.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003636/2.089, allocations: 146.1 kB / 1.387 GB, free: 141.2 MB / 0.8698 GB Notification: Performance of SimCode: time 1.703e-06/2.089, allocations: 0 / 1.387 GB, free: 141.2 MB / 0.8698 GB Notification: Performance of Templates: time 0.06187/2.151, allocations: 38.86 MB / 1.425 GB, free: 139.7 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches