Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json 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) Running command: translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002286/0.002285, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.046/2.046, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 94.66 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.859e-05/1.869e-05, allocations: 4 kB / 314.8 MB, free: 9.145 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3397, allocations: 47.55 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.4851, allocations: 88.71 MB / 451 MB, free: 13.58 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003326/0.4855, allocations: 88.22 kB / 451.1 MB, free: 13.5 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7457/1.231, allocations: 154.8 MB / 0.5917 GB, free: 50.75 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.974e-06/1.231, allocations: 4 kB / 0.5917 GB, free: 50.75 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002297/1.232, allocations: 95.94 kB / 0.5918 GB, free: 50.66 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.01963/1.251, allocations: 4.215 MB / 0.5959 GB, free: 46.38 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/1.251, allocations: 15.97 kB / 0.5959 GB, free: 46.36 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01411/1.265, allocations: 1.684 MB / 0.5976 GB, free: 44.67 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008159/1.274, allocations: 2.685 MB / 0.6002 GB, free: 41.94 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004722/1.274, allocations: 160 kB / 0.6004 GB, free: 41.78 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001936/1.276, allocations: 260 kB / 0.6006 GB, free: 41.53 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01563/1.292, allocations: 5.556 MB / 0.606 GB, free: 35.96 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02196/1.314, allocations: 6.767 MB / 0.6126 GB, free: 29.02 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002191/1.314, allocations: 3.906 kB / 0.6126 GB, free: 29.02 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001636/1.316, allocations: 4 kB / 0.6126 GB, free: 29.02 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004122/1.316, allocations: 305.3 kB / 0.6129 GB, free: 28.71 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05643/1.373, allocations: 22.34 MB / 0.6348 GB, free: 6.078 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/1.383, allocations: 6.399 MB / 0.641 GB, free: 15.21 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008262/1.392, allocations: 3.22 MB / 0.6441 GB, free: 11.97 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03355/1.425, allocations: 10.81 MB / 0.6547 GB, free: 0.9375 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.386e-05/1.425, allocations: 56.56 kB / 0.6548 GB, free: 0.8711 MB / 411.1 MB Notification: Performance of pre-optimization done (n=319): time 7.204e-06/1.425, allocations: 0 / 0.6548 GB, free: 0.8711 MB / 411.1 MB Notification: Performance of matching and sorting (n=319): time 0.3003/1.726, allocations: 5.268 MB / 0.6599 GB, free: 82.49 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/1.726, allocations: 77.84 kB / 0.66 GB, free: 82.43 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/1.728, allocations: 1.006 MB / 0.661 GB, free: 82.29 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006612/1.729, allocations: 25.7 kB / 0.661 GB, free: 82.26 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/1.73, allocations: 1.701 MB / 0.6626 GB, free: 81.5 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001653/1.731, allocations: 1.018 MB / 0.6636 GB, free: 80.9 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000385/1.732, allocations: 0 / 0.6636 GB, free: 80.9 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0004008/1.732, allocations: 466.4 kB / 0.6641 GB, free: 80.58 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005191/1.737, allocations: 2.157 MB / 0.6662 GB, free: 80.57 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006274/1.744, allocations: 2.848 MB / 0.669 GB, free: 79.85 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009097/1.753, allocations: 3.005 MB / 0.6719 GB, free: 79.81 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.236e-05/1.753, allocations: 9.406 kB / 0.6719 GB, free: 79.81 MB / 411.1 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.0187/1.772, allocations: 6.34 MB / 0.6781 GB, free: 79.58 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.067e-05/1.772, allocations: 17.02 kB / 0.6781 GB, free: 79.58 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.212e-05/1.772, allocations: 19.31 kB / 0.6781 GB, free: 79.58 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003804/1.776, allocations: 1.401 MB / 0.6795 GB, free: 79.54 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004255/1.78, allocations: 0.5146 MB / 0.68 GB, free: 79.54 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008036/1.788, allocations: 5.283 MB / 0.6852 GB, free: 77.42 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003637/1.792, allocations: 327.7 kB / 0.6855 GB, free: 77.25 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001055/1.793, allocations: 143.7 kB / 0.6856 GB, free: 77.25 MB / 411.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: complexToPolar[2].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[1].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[3].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[3].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[1].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[2].u.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensor.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensor.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensor.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star2.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star2.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star2.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (301): * Single equations (assignments): 239 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 58 * 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: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001542/1.794, allocations: 237.6 kB / 0.6858 GB, free: 77.12 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007517/1.795, allocations: 176 kB / 0.686 GB, free: 77.02 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01481/1.81, allocations: 5.633 MB / 0.6915 GB, free: 76.83 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01384/1.824, allocations: 5.242 MB / 0.6966 GB, free: 76.68 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.19e-05/1.824, allocations: 0 / 0.6966 GB, free: 76.68 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-05/1.824, allocations: 11.16 kB / 0.6966 GB, free: 76.68 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02665/1.851, allocations: 10.35 MB / 0.7068 GB, free: 72.61 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.358e-05/1.851, allocations: 0 / 0.7068 GB, free: 72.61 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002673/1.854, allocations: 284.7 kB / 0.707 GB, free: 72.61 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003403/1.857, allocations: 1.379 MB / 0.7084 GB, free: 72.13 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000747/1.858, allocations: 45.42 kB / 0.7084 GB, free: 72.12 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007162/1.865, allocations: 5.246 MB / 0.7135 GB, free: 68.72 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/1.865, allocations: 0 / 0.7135 GB, free: 68.72 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0196/1.885, allocations: 8.617 MB / 0.722 GB, free: 65.02 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0026/1.887, allocations: 0.7408 MB / 0.7227 GB, free: 64.59 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007937/1.888, allocations: 2.719 kB / 0.7227 GB, free: 64.59 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002113/1.89, allocations: 62.17 kB / 0.7227 GB, free: 64.59 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001038/1.891, allocations: 245.6 kB / 0.723 GB, free: 64.53 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003871/1.892, allocations: 83.36 kB / 0.723 GB, free: 64.51 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.001433/1.893, allocations: 0.7234 MB / 0.7238 GB, free: 64.19 MB / 411.1 MB Notification: Performance of sort global known variables: time 8.31e-07/1.893, allocations: 0 / 0.7238 GB, free: 64.19 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.005002/1.898, allocations: 0.9952 MB / 0.7247 GB, free: 63.93 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor0.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (174): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 58 * 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: 0 * Non-linear torn systems: 4 {6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001093/1.899, allocations: 177.5 kB / 0.7249 GB, free: 63.83 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01248/1.912, allocations: 5.019 MB / 0.7298 GB, free: 60.54 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.912, allocations: 0 / 0.7298 GB, free: 60.54 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0064/1.918, allocations: 2.423 MB / 0.7322 GB, free: 58.43 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003419/1.922, allocations: 270.8 kB / 0.7324 GB, free: 58.24 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02276/1.945, allocations: 8.165 MB / 0.7404 GB, free: 51.1 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004843/1.95, allocations: 3.243 MB / 0.7436 GB, free: 48.51 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/1.951, allocations: 141.4 kB / 0.7437 GB, free: 48.38 MB / 411.1 MB Notification: Performance of SimCode: time 1.343e-06/1.951, allocations: 0 / 0.7437 GB, free: 48.38 MB / 411.1 MB Notification: Performance of Templates: time 0.516/2.467, allocations: 146 MB / 0.8863 GB, free: 74.51 MB / 427.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/MultiPhase/Examples/BalancingStar/BalancingStar.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches