Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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,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") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.211/2.211, allocations: 387.1 MB / 399.7 MB, free: 9.457 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.00136/0.001359, allocations: 176 kB / 492.3 MB, free: 0.6328 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.636/1.636, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0009292/0.0009291, allocations: 94.53 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.07e-05/4.091e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2841, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.016/1.301, allocations: 182.4 MB / 1.391 GB, free: 15.98 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/1.301, allocations: 97.14 kB / 1.391 GB, free: 15.96 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.4344/1.735, allocations: 191.4 MB / 1.577 GB, free: 15.74 MB / 0.9948 GB Notification: Performance of FrontEnd: time 3.597e-06/1.735, allocations: 8 kB / 1.578 GB, free: 15.73 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 0.0003026/1.736, allocations: 116 kB / 1.578 GB, free: 15.62 MB / 0.9948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.0123/1.748, allocations: 3.822 MB / 1.581 GB, free: 11.73 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/1.748, allocations: 12.03 kB / 1.581 GB, free: 11.71 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007766/1.756, allocations: 0.9347 MB / 1.582 GB, free: 10.77 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009206/1.765, allocations: 2.987 MB / 1.585 GB, free: 7.727 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003518/1.766, allocations: 349.3 kB / 1.586 GB, free: 7.383 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002146/1.768, allocations: 459.9 kB / 1.586 GB, free: 6.934 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01784/1.786, allocations: 7.24 MB / 1.593 GB, free: 15.23 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001715/1.786, allocations: 19.78 kB / 1.593 GB, free: 15.21 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006019/1.786, allocations: 204 kB / 1.593 GB, free: 15.01 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003133/1.787, allocations: 284.9 kB / 1.594 GB, free: 14.73 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01061/1.797, allocations: 5.087 MB / 1.598 GB, free: 9.629 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04443/1.842, allocations: 35.08 MB / 1.633 GB, free: 3.34 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/1.845, allocations: 2.124 MB / 1.635 GB, free: 1.098 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/1.847, allocations: 1.242 MB / 1.636 GB, free: 15.86 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001169/1.847, allocations: 17.31 kB / 1.636 GB, free: 15.84 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.517e-05/1.847, allocations: 47.88 kB / 1.636 GB, free: 15.78 MB / 1.057 GB Notification: Performance of pre-optimization done (n=133): time 3.596e-06/1.847, allocations: 0 / 1.636 GB, free: 15.78 MB / 1.057 GB Notification: Performance of matching and sorting (n=136): time 0.009104/1.856, allocations: 4.556 MB / 1.641 GB, free: 11.17 MB / 1.057 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/1.856, allocations: 64.72 kB / 1.641 GB, free: 11.1 MB / 1.057 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002416/1.858, allocations: 1.253 MB / 1.642 GB, free: 9.797 MB / 1.057 GB Notification: Performance of collectPreVariables (initialization): time 0.0001151/1.858, allocations: 49.7 kB / 1.642 GB, free: 9.742 MB / 1.057 GB Notification: Performance of collectInitialEqns (initialization): time 0.001314/1.86, allocations: 1.984 MB / 1.644 GB, free: 7.73 MB / 1.057 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004895/1.86, allocations: 489 kB / 1.644 GB, free: 7.246 MB / 1.057 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/1.86, allocations: 36 kB / 1.644 GB, free: 7.211 MB / 1.057 GB Notification: Performance of setup shared object (initialization): time 0.0001807/1.861, allocations: 377.9 kB / 1.645 GB, free: 6.836 MB / 1.057 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/1.862, allocations: 0.8825 MB / 1.646 GB, free: 5.953 MB / 1.057 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/1.864, allocations: 1.535 MB / 1.647 GB, free: 4.117 MB / 1.057 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/1.865, allocations: 1.164 MB / 1.648 GB, free: 2.957 MB / 1.057 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/1.865, allocations: 4 kB / 1.648 GB, free: 2.953 MB / 1.057 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.006039/1.871, allocations: 3.456 MB / 1.652 GB, free: 15.45 MB / 1.073 GB Notification: Performance of prepare postOptimizeDAE: time 3.509e-05/1.871, allocations: 18.66 kB / 1.652 GB, free: 15.43 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.034e-05/1.872, allocations: 20 kB / 1.652 GB, free: 15.41 MB / 1.073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002504/1.874, allocations: 0.9002 MB / 1.652 GB, free: 14.48 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/1.875, allocations: 355.3 kB / 1.653 GB, free: 14.13 MB / 1.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01966/1.895, allocations: 21.16 MB / 1.673 GB, free: 7.355 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001866/1.897, allocations: 111.9 kB / 1.674 GB, free: 7.246 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003523/1.897, allocations: 80 kB / 1.674 GB, free: 7.168 MB / 1.089 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 (182): * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 12 {(3,77.8%) 5,(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.0005408/1.898, allocations: 225.7 kB / 1.674 GB, free: 6.941 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005476/1.898, allocations: 205.6 kB / 1.674 GB, free: 6.738 MB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005573/1.904, allocations: 2.951 MB / 1.677 GB, free: 3.73 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/1.904, allocations: 16 kB / 1.677 GB, free: 3.715 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.848e-05/1.904, allocations: 8 kB / 1.677 GB, free: 3.707 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/1.904, allocations: 7.969 kB / 1.677 GB, free: 3.699 MB / 1.089 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01465/1.919, allocations: 7.239 MB / 1.684 GB, free: 12.23 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/1.919, allocations: 12.16 kB / 1.684 GB, free: 12.21 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008194/1.919, allocations: 187.7 kB / 1.684 GB, free: 12.03 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002393/1.922, allocations: 0.8101 MB / 1.685 GB, free: 11.18 MB / 1.104 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/1.922, allocations: 27.95 kB / 1.685 GB, free: 11.16 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01895/1.941, allocations: 20.25 MB / 1.705 GB, free: 5.309 MB / 1.12 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-05/1.941, allocations: 11.94 kB / 1.705 GB, free: 5.297 MB / 1.12 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007148/1.948, allocations: 3.264 MB / 1.708 GB, free: 1.758 MB / 1.12 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/1.95, allocations: 458.5 kB / 1.708 GB, free: 1.289 MB / 1.12 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007194/1.951, allocations: 32.17 kB / 1.708 GB, free: 1.258 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/1.952, allocations: 71.92 kB / 1.709 GB, free: 1.188 MB / 1.12 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004787/1.952, allocations: 124.7 kB / 1.709 GB, free: 1.062 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/1.953, allocations: 43.98 kB / 1.709 GB, free: 1.02 MB / 1.12 GB Notification: Performance of sorting global known variables: time 0.001967/1.955, allocations: 0.9486 MB / 1.71 GB, free: 40 kB / 1.12 GB Notification: Performance of sort global known variables: time 2.7e-07/1.955, allocations: 0 / 1.71 GB, free: 40 kB / 1.12 GB Notification: Performance of remove unused functions: time 0.00388/1.958, allocations: 0.8203 MB / 1.71 GB, free: 15.21 MB / 1.135 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 (91): * Single equations (assignments): 79 * 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%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003347/1.959, allocations: 151.7 kB / 1.711 GB, free: 15.05 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.005712/1.965, allocations: 3.925 MB / 1.714 GB, free: 10.98 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.965, allocations: 0 / 1.714 GB, free: 10.98 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.003716/1.968, allocations: 2.7 MB / 1.717 GB, free: 8.125 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003355/1.972, allocations: 0.6498 MB / 1.718 GB, free: 7.48 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01342/1.985, allocations: 5.607 MB / 1.723 GB, free: 1.773 MB / 1.135 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004671/1.99, allocations: 3.185 MB / 1.726 GB, free: 14.56 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001728/1.992, allocations: 457.8 kB / 1.727 GB, free: 14.11 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002841/1.992, allocations: 115.4 kB / 1.727 GB, free: 14 MB / 1.151 GB Notification: Performance of SimCode: time 3.356e-06/1.992, allocations: 0 / 1.727 GB, free: 14 MB / 1.151 GB Notification: Performance of Templates: time 0.7082/2.7, allocations: 33.4 MB / 1.759 GB, free: 307.3 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches