Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.485/2.485, allocations: 390.5 MB / 398 MB, free: 10.96 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.001573/0.001573, allocations: 187.7 kB / 491.2 MB, free: 1.574 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.818/1.818, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.0009632/0.0009632, allocations: 97.92 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.904e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2401, allocations: 143 MB / 1.212 GB, free: 39.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8807/1.121, allocations: 183.2 MB / 1.391 GB, free: 14.79 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003568/1.121, allocations: 93.41 kB / 1.391 GB, free: 14.77 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.5121/1.633, allocations: 212.9 MB / 1.599 GB, free: 9.391 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.693e-06/1.633, allocations: 0 / 1.599 GB, free: 9.391 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.0005039/1.634, allocations: 144 kB / 1.599 GB, free: 9.25 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01464/1.649, allocations: 4.859 MB / 1.604 GB, free: 4.328 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/1.649, allocations: 12.03 kB / 1.604 GB, free: 4.316 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007201/1.656, allocations: 1.136 MB / 1.605 GB, free: 3.172 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00926/1.665, allocations: 3.689 MB / 1.609 GB, free: 15.43 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003741/1.666, allocations: 184 kB / 1.609 GB, free: 15.25 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002486/1.668, allocations: 331.9 kB / 1.609 GB, free: 14.92 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01497/1.683, allocations: 5.685 MB / 1.615 GB, free: 9.234 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02214/1.705, allocations: 7.868 MB / 1.623 GB, free: 0.9297 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002964/1.706, allocations: 23.86 kB / 1.623 GB, free: 0.9062 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001746/1.707, allocations: 20 kB / 1.623 GB, free: 0.8867 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003701/1.708, allocations: 299 kB / 1.623 GB, free: 0.5938 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0571/1.765, allocations: 40.26 MB / 1.662 GB, free: 4.617 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004696/1.77, allocations: 2.975 MB / 1.665 GB, free: 1.641 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002897/1.773, allocations: 2.059 MB / 1.667 GB, free: 15.58 MB / 1.089 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001555/1.773, allocations: 25.94 kB / 1.667 GB, free: 15.55 MB / 1.089 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.042e-05/1.773, allocations: 64.56 kB / 1.667 GB, free: 15.48 MB / 1.089 GB Notification: Performance of pre-optimization done (n=209): time 3.657e-06/1.773, allocations: 0 / 1.667 GB, free: 15.48 MB / 1.089 GB Notification: Performance of matching and sorting (n=212): time 0.01168/1.784, allocations: 6.294 MB / 1.673 GB, free: 9.16 MB / 1.089 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/1.785, allocations: 73.41 kB / 1.673 GB, free: 9.074 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002416/1.787, allocations: 1.317 MB / 1.675 GB, free: 7.73 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 0.0001518/1.787, allocations: 25.7 kB / 1.675 GB, free: 7.699 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.001581/1.789, allocations: 2.391 MB / 1.677 GB, free: 5.277 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006307/1.789, allocations: 0.7044 MB / 1.678 GB, free: 4.562 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/1.79, allocations: 4 kB / 1.678 GB, free: 4.559 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0001978/1.79, allocations: 411.1 kB / 1.678 GB, free: 4.152 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001842/1.792, allocations: 1.243 MB / 1.679 GB, free: 2.906 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002301/1.794, allocations: 2.012 MB / 1.681 GB, free: 0.543 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002266/1.796, allocations: 1.614 MB / 1.683 GB, free: 14.93 MB / 1.104 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.558e-05/1.796, allocations: 8 kB / 1.683 GB, free: 14.92 MB / 1.104 GB Notification: Performance of matching and sorting (n=327) (initialization): time 0.007434/1.804, allocations: 4.606 MB / 1.687 GB, free: 10.29 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 3.347e-05/1.804, allocations: 16 kB / 1.687 GB, free: 10.28 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.179e-05/1.804, allocations: 31.88 kB / 1.687 GB, free: 10.25 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003146/1.807, allocations: 1.391 MB / 1.689 GB, free: 8.848 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001604/1.809, allocations: 443.2 kB / 1.689 GB, free: 8.414 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02135/1.83, allocations: 16.45 MB / 1.705 GB, free: 7.496 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002918/1.833, allocations: 99.81 kB / 1.705 GB, free: 7.398 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005722/1.833, allocations: 108.1 kB / 1.706 GB, free: 7.293 MB / 1.12 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 215 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,66.7%) 32,(6,66.7%) 24,(4,100.0%) 18,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007977/1.834, allocations: 172.2 kB / 1.706 GB, free: 7.117 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007886/1.835, allocations: 264.9 kB / 1.706 GB, free: 6.855 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007563/1.843, allocations: 4.174 MB / 1.71 GB, free: 2.648 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/1.843, allocations: 23.95 kB / 1.71 GB, free: 2.625 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.848e-05/1.843, allocations: 16 kB / 1.71 GB, free: 2.609 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/1.843, allocations: 11.95 kB / 1.71 GB, free: 2.598 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01658/1.859, allocations: 8.541 MB / 1.718 GB, free: 9.934 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.266e-05/1.859, allocations: 4 kB / 1.718 GB, free: 9.93 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/1.86, allocations: 235.6 kB / 1.719 GB, free: 9.699 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003174/1.864, allocations: 1.365 MB / 1.72 GB, free: 8.324 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001633/1.864, allocations: 12 kB / 1.72 GB, free: 8.312 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02094/1.885, allocations: 16.42 MB / 1.736 GB, free: 7.43 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/1.885, allocations: 4 kB / 1.736 GB, free: 7.426 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008288/1.893, allocations: 4.618 MB / 1.741 GB, free: 2.578 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/1.895, allocations: 0.6032 MB / 1.741 GB, free: 1.953 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008165/1.896, allocations: 7.984 kB / 1.741 GB, free: 1.945 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001706/1.897, allocations: 79.86 kB / 1.741 GB, free: 1.867 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004949/1.898, allocations: 177.7 kB / 1.741 GB, free: 1.695 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/1.898, allocations: 63.98 kB / 1.741 GB, free: 1.633 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001859/1.9, allocations: 0.9685 MB / 1.742 GB, free: 0.6484 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/1.9, allocations: 0 / 1.742 GB, free: 0.6484 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.7109/2.611, allocations: 1.053 MB / 1.743 GB, free: 284.4 MB / 1.151 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 (107): * Single equations (assignments): 103 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,100.0%) 18,(6,66.7%) 24,(6,66.7%) 32,(4,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008035/2.612, allocations: 120.9 kB / 1.743 GB, free: 284.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.008388/2.62, allocations: 4.329 MB / 1.748 GB, free: 283.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/2.62, allocations: 4.656 kB / 1.748 GB, free: 283.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.005342/2.626, allocations: 2.736 MB / 1.75 GB, free: 283.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004087/2.63, allocations: 0.6847 MB / 1.751 GB, free: 283.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01617/2.646, allocations: 7.359 MB / 1.758 GB, free: 281.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005816/2.652, allocations: 3.787 MB / 1.762 GB, free: 280.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002804/2.655, allocations: 0.5196 MB / 1.762 GB, free: 280.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004041/2.655, allocations: 136.3 kB / 1.763 GB, free: 280.7 MB / 1.151 GB Notification: Performance of SimCode: time 1.923e-06/2.655, allocations: 0 / 1.763 GB, free: 280.7 MB / 1.151 GB Notification: Performance of Templates: time 0.08811/2.743, allocations: 43.7 MB / 1.805 GB, free: 279.9 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches