Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma|voltageSource.voltageSource.2..pin_p.reference.gamma|voltageSource.voltageSource.3..pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") Notification: Performance of loadModel(Modelica): time 1.935/1.935, allocations: 171.3 MB / 179.2 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.019e-05/2.029e-05, allocations: 0 / 222.5 MB, free: 4.754 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.211/0.211, allocations: 38.78 MB / 261.3 MB, free: 13 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1125/0.3236, allocations: 73.85 MB / 335.1 MB, free: 3.68 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002288/0.3239, allocations: 75.97 kB / 335.2 MB, free: 3.605 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6496/0.9735, allocations: 170.1 MB / 0.4934 GB, free: 2.855 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.083e-06/0.9735, allocations: 0 / 0.4934 GB, free: 2.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002673/0.9738, allocations: 111.9 kB / 0.4936 GB, free: 2.746 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1355 * Number of variables: 1355 Notification: Performance of Generate backend data structure: time 0.2254/1.199, allocations: 4.487 MB / 0.4979 GB, free: 52.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/1.199, allocations: 9.031 kB / 0.4979 GB, free: 52.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002648/1.202, allocations: 492.5 kB / 0.4984 GB, free: 52.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007542/1.21, allocations: 2.922 MB / 0.5013 GB, free: 52.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004581/1.21, allocations: 170.6 kB / 0.5014 GB, free: 52.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001794/1.212, allocations: 278.8 kB / 0.5017 GB, free: 52.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01311/1.225, allocations: 5.144 MB / 0.5067 GB, free: 52.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01911/1.244, allocations: 6.912 MB / 0.5135 GB, free: 51.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001413/1.244, allocations: 15.47 kB / 0.5135 GB, free: 51.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006473/1.245, allocations: 7.156 kB / 0.5135 GB, free: 51.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001946/1.245, allocations: 219 kB / 0.5137 GB, free: 51.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04714/1.292, allocations: 22.73 MB / 0.5359 GB, free: 49.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004895/1.297, allocations: 2.681 MB / 0.5385 GB, free: 49.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005457/1.303, allocations: 3.108 MB / 0.5415 GB, free: 47.83 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002659/1.303, allocations: 79.62 kB / 0.5416 GB, free: 47.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.626e-05/1.303, allocations: 61.12 kB / 0.5417 GB, free: 47.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=324): time 8.282e-06/1.303, allocations: 0 / 0.5417 GB, free: 47.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=324): time 0.01032/1.314, allocations: 5.409 MB / 0.547 GB, free: 45.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/1.314, allocations: 125 kB / 0.5471 GB, free: 45.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/1.315, allocations: 0.7225 MB / 0.5478 GB, free: 45.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004782/1.315, allocations: 25.7 kB / 0.5478 GB, free: 44.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007365/1.316, allocations: 1.632 MB / 0.5494 GB, free: 43.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001303/1.317, allocations: 1.02 MB / 0.5504 GB, free: 42.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002642/1.318, allocations: 3.219 kB / 0.5504 GB, free: 42.96 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002815/1.318, allocations: 441.1 kB / 0.5508 GB, free: 42.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003652/1.322, allocations: 2.058 MB / 0.5528 GB, free: 41.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004311/1.326, allocations: 2.489 MB / 0.5553 GB, free: 40.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004492/1.331, allocations: 2.499 MB / 0.5577 GB, free: 39.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-05/1.331, allocations: 3.719 kB / 0.5577 GB, free: 39.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01166/1.342, allocations: 5.737 MB / 0.5633 GB, free: 36.97 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.073e-05/1.342, allocations: 10.11 kB / 0.5633 GB, free: 36.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.971e-05/1.342, allocations: 13.88 kB / 0.5633 GB, free: 36.97 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003412/1.346, allocations: 1.731 MB / 0.565 GB, free: 36.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/1.348, allocations: 325 kB / 0.5653 GB, free: 36.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007873/1.356, allocations: 6.578 MB / 0.5718 GB, free: 32.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00186/1.357, allocations: 187 kB / 0.5719 GB, free: 31.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003542/1.358, allocations: 110.6 kB / 0.572 GB, free: 31.96 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: currentSensor.y[2].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor.y[1].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor.y[3].im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentSensor.y[3].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor.y[1].re:VARIABLE() "Real part of complex number" type: Real [3] currentSensor.y[2].im:VARIABLE() "Imaginary part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensor.powerSensor[1].i.im:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[3].i.re:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[3].i.im:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[2].i.im:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[2].i.re:VARIABLE(unit = "A" ) type: Real [3] powerSensor.powerSensor[1].i.re:VARIABLE(unit = "A" ) type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star2.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star2.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: voltageSource.voltageSource[2].i.re:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[2].i.im:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[3].i.im:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[3].i.re:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[1].i.re:VARIABLE(unit = "A" ) type: Real [3] voltageSource.voltageSource[1].i.im:VARIABLE(unit = "A" ) type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) type: Real [3] star.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 64 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007568/1.359, allocations: 224 kB / 0.5723 GB, free: 31.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006144/1.359, allocations: 158.5 kB / 0.5724 GB, free: 31.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/1.369, allocations: 5.677 MB / 0.578 GB, free: 27.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009204/1.379, allocations: 5.359 MB / 0.5832 GB, free: 22.49 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.446e-05/1.379, allocations: 0 / 0.5832 GB, free: 22.49 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.399e-05/1.379, allocations: 14.78 kB / 0.5832 GB, free: 22.49 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02164/1.4, allocations: 10.99 MB / 0.5939 GB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.204e-05/1.401, allocations: 4 kB / 0.5939 GB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/1.402, allocations: 219.9 kB / 0.5941 GB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00452/1.407, allocations: 1.717 MB / 0.5958 GB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005675/1.407, allocations: 50.97 kB / 0.5959 GB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007588/1.415, allocations: 6.558 MB / 0.6023 GB, free: 5.391 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.039e-06/1.415, allocations: 5.062 kB / 0.6023 GB, free: 5.391 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01639/1.431, allocations: 9.137 MB / 0.6112 GB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006568/1.432, allocations: 281.9 kB / 0.6115 GB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005834/1.432, allocations: 11.52 kB / 0.6115 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/1.434, allocations: 26.73 kB / 0.6115 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006753/1.434, allocations: 264 kB / 0.6118 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004028/1.435, allocations: 82.83 kB / 0.6118 GB, free: 12.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00103/1.436, allocations: 0.5576 MB / 0.6124 GB, free: 12.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.07e-07/1.436, allocations: 4 kB / 0.6124 GB, free: 12.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003599/1.439, allocations: 0.9964 MB / 0.6134 GB, free: 11.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 3 (voltageSource.voltageSource[1].pin_p.reference.gamma,voltageSource.voltageSource[3].pin_p.reference.gamma,voltageSource.voltageSource[2].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (147): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 64 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006252/1.44, allocations: 156 kB / 0.6135 GB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01089/1.451, allocations: 4.872 MB / 0.6183 GB, free: 6.727 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.799e-06/1.451, allocations: 4.5 kB / 0.6183 GB, free: 6.723 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00571/1.457, allocations: 2.502 MB / 0.6207 GB, free: 4.531 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002401/1.459, allocations: 299.6 kB / 0.621 GB, free: 4.324 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2365/1.696, allocations: 8.587 MB / 0.6294 GB, free: 67.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005354/1.701, allocations: 3.502 MB / 0.6328 GB, free: 66.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005946/1.702, allocations: 90.97 kB / 0.6329 GB, free: 66.46 MB / 362.7 MB Notification: Performance of SimCode: time 1.947e-06/1.702, allocations: 0 / 0.6329 GB, free: 66.46 MB / 362.7 MB Notification: Performance of Templates: time 0.4199/2.122, allocations: 184.2 MB / 0.8128 GB, free: 75.05 MB / 378.7 MB