Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|L1.terminal.phase.1..v.1.|L2.terminal.phase.1..v.1.|L3.terminal.phase.1..v.1.|E.vPhase.1..terminal.v.1.|L1.load1.i.2.|L2.load1.i.2.|L3.load1.i.2.|sc_load.load1.i.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.229/2.229, allocations: 387.1 MB / 399.7 MB, free: 9.434 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.001481/0.001481, allocations: 169 kB / 492.3 MB, free: 0.6289 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.693/1.693, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.0009388/0.0009388, allocations: 91.03 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.552e-05/3.554e-05, allocations: 7.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3096, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.042/1.351, allocations: 182.6 MB / 1.391 GB, free: 15.76 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/1.352, allocations: 95.38 kB / 1.391 GB, free: 15.74 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.5041/1.856, allocations: 211.5 MB / 1.597 GB, free: 11.07 MB / 1.01 GB Notification: Performance of FrontEnd: time 2.535e-06/1.856, allocations: 0 / 1.597 GB, free: 11.07 MB / 1.01 GB Notification: Performance of Transformations before backend: time 0.0005383/1.856, allocations: 139.9 kB / 1.597 GB, free: 10.93 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: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01794/1.874, allocations: 4.454 MB / 1.602 GB, free: 6.41 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/1.874, allocations: 12.03 kB / 1.602 GB, free: 6.398 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008213/1.883, allocations: 1.031 MB / 1.603 GB, free: 5.359 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/1.893, allocations: 3.41 MB / 1.606 GB, free: 1.891 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004367/1.893, allocations: 415.1 kB / 1.607 GB, free: 1.484 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002563/1.896, allocations: 0.535 MB / 1.607 GB, free: 0.9492 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02504/1.921, allocations: 8.492 MB / 1.615 GB, free: 8.023 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003182/1.921, allocations: 27.67 kB / 1.615 GB, free: 7.996 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001919/1.923, allocations: 244 kB / 1.616 GB, free: 7.758 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000409/1.924, allocations: 318.8 kB / 1.616 GB, free: 7.445 MB / 1.026 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01584/1.94, allocations: 6.035 MB / 1.622 GB, free: 1.402 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06364/2.003, allocations: 40.11 MB / 1.661 GB, free: 5.578 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007405/2.011, allocations: 3.069 MB / 1.664 GB, free: 2.375 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005166/2.016, allocations: 1.952 MB / 1.666 GB, free: 428 kB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002115/2.016, allocations: 22 kB / 1.666 GB, free: 404 kB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.934e-05/2.016, allocations: 52.56 kB / 1.666 GB, free: 344 kB / 1.073 GB Notification: Performance of pre-optimization done (n=179): time 6.512e-06/2.016, allocations: 0 / 1.666 GB, free: 344 kB / 1.073 GB Notification: Performance of matching and sorting (n=182): time 0.02026/2.037, allocations: 6.031 MB / 1.672 GB, free: 10.28 MB / 1.089 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.206e-05/2.037, allocations: 73.41 kB / 1.672 GB, free: 10.19 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004244/2.041, allocations: 1.291 MB / 1.673 GB, free: 8.855 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 0.0003702/2.041, allocations: 57.7 kB / 1.673 GB, free: 8.793 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.002673/2.044, allocations: 2.238 MB / 1.675 GB, free: 6.523 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.001191/2.045, allocations: 0.6277 MB / 1.676 GB, free: 5.887 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002784/2.046, allocations: 44 kB / 1.676 GB, free: 5.844 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0003731/2.046, allocations: 394.3 kB / 1.676 GB, free: 5.453 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003223/2.049, allocations: 1.148 MB / 1.678 GB, free: 4.301 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00408/2.053, allocations: 1.827 MB / 1.679 GB, free: 2.168 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003949/2.057, allocations: 1.493 MB / 1.681 GB, free: 0.6719 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-05/2.057, allocations: 8 kB / 1.681 GB, free: 0.6641 MB / 1.089 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.01454/2.072, allocations: 4.5 MB / 1.685 GB, free: 12.14 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 5.884e-05/2.072, allocations: 16.22 kB / 1.685 GB, free: 12.12 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.397e-05/2.072, allocations: 24 kB / 1.685 GB, free: 12.1 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007348/2.079, allocations: 1.576 MB / 1.687 GB, free: 10.52 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002662/2.082, allocations: 351.4 kB / 1.687 GB, free: 10.18 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03718/2.119, allocations: 16.99 MB / 1.704 GB, free: 8.641 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002251/2.122, allocations: 115.9 kB / 1.704 GB, free: 8.527 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000253/2.122, allocations: 92 kB / 1.704 GB, free: 8.438 MB / 1.12 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * 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 {(12,30.6%) 26,(6,66.7%) 24,(6,66.7%) 16,(6,66.7%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004577/2.122, allocations: 236.3 kB / 1.704 GB, free: 8.199 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004253/2.123, allocations: 225.3 kB / 1.704 GB, free: 7.977 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008289/2.131, allocations: 4.052 MB / 1.708 GB, free: 3.895 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/2.131, allocations: 19.95 kB / 1.708 GB, free: 3.875 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-05/2.131, allocations: 20 kB / 1.708 GB, free: 3.855 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.057e-05/2.131, allocations: 19.89 kB / 1.708 GB, free: 3.836 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01655/2.148, allocations: 9.368 MB / 1.718 GB, free: 10.21 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.465e-05/2.148, allocations: 4.812 kB / 1.718 GB, free: 10.21 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008252/2.149, allocations: 187.7 kB / 1.718 GB, free: 10.03 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003745/2.152, allocations: 1.341 MB / 1.719 GB, free: 8.676 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/2.153, allocations: 36 kB / 1.719 GB, free: 8.641 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/2.175, allocations: 15.87 MB / 1.735 GB, free: 8.25 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/2.175, allocations: 7.938 kB / 1.735 GB, free: 8.242 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007807/2.183, allocations: 4.311 MB / 1.739 GB, free: 3.68 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001722/2.185, allocations: 0.5295 MB / 1.739 GB, free: 3.129 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00098/2.186, allocations: 36 kB / 1.739 GB, free: 3.094 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/2.188, allocations: 91.84 kB / 1.739 GB, free: 3.004 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007527/2.188, allocations: 161.6 kB / 1.74 GB, free: 2.844 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001871/2.188, allocations: 51.95 kB / 1.74 GB, free: 2.793 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00275/2.191, allocations: 0.974 MB / 1.741 GB, free: 1.789 MB / 1.151 GB Notification: Performance of sort global known variables: time 6.01e-07/2.191, allocations: 4 kB / 1.741 GB, free: 1.785 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.006109/2.197, allocations: 1.027 MB / 1.742 GB, free: 0.7578 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 (85): * Single equations (assignments): 81 * 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%) 16,(6,66.7%) 16,(6,66.7%) 24,(6,66.7%) 24} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004676/2.198, allocations: 143.8 kB / 1.742 GB, free: 0.6055 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.6822/2.88, allocations: 4.192 MB / 1.746 GB, free: 284.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/2.88, allocations: 1.719 kB / 1.746 GB, free: 284.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004485/2.885, allocations: 2.613 MB / 1.748 GB, free: 283.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003554/2.888, allocations: 0.6783 MB / 1.749 GB, free: 283.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01501/2.903, allocations: 6.894 MB / 1.756 GB, free: 282.1 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005071/2.908, allocations: 3.664 MB / 1.759 GB, free: 281.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.00198/2.91, allocations: 470 kB / 1.76 GB, free: 281.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003351/2.911, allocations: 113.1 kB / 1.76 GB, free: 281.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.223e-06/2.911, allocations: 1.406 kB / 1.76 GB, free: 281.3 MB / 1.151 GB Notification: Performance of Templates: time 0.09027/3.001, allocations: 41.14 MB / 1.8 GB, free: 280.2 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches