Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00102/0.00102, allocations: 187.5 kB / 8.352 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.367/1.367, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001522/0.001521, allocations: 116.1 kB / 248.1 MB, free: 6.312 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.456e-05/1.458e-05, allocations: 0 / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08846/0.08849, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3085/0.397, allocations: 84.36 MB / 426.9 MB, free: 11.56 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.3974, allocations: 82.95 kB / 427 MB, free: 11.52 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5259/0.9233, allocations: 155.6 MB / 0.5689 GB, free: 76.62 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.9234, allocations: 4 kB / 0.5689 GB, free: 76.62 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000292/0.9237, allocations: 97.08 kB / 0.569 GB, free: 76.61 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.01503/0.9387, allocations: 4.216 MB / 0.5732 GB, free: 74.68 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.9388, allocations: 14.91 kB / 0.5732 GB, free: 74.68 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01013/0.9489, allocations: 1.683 MB / 0.5748 GB, free: 74.31 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006691/0.9557, allocations: 2.675 MB / 0.5774 GB, free: 72.8 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004226/0.9561, allocations: 162.5 kB / 0.5776 GB, free: 72.79 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001781/0.9579, allocations: 260.2 kB / 0.5778 GB, free: 72.79 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01158/0.9695, allocations: 5.567 MB / 0.5833 GB, free: 70.41 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01521/0.9848, allocations: 6.76 MB / 0.5899 GB, free: 67.46 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001764/0.985, allocations: 3.906 kB / 0.5899 GB, free: 67.46 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001417/0.9864, allocations: 3.812 kB / 0.5899 GB, free: 67.46 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003803/0.9868, allocations: 302.7 kB / 0.5902 GB, free: 67.38 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03811/1.025, allocations: 22.35 MB / 0.612 GB, free: 52.27 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006105/1.031, allocations: 6.404 MB / 0.6182 GB, free: 45.45 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003918/1.035, allocations: 3.212 MB / 0.6214 GB, free: 42.21 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/1.051, allocations: 10.8 MB / 0.6319 GB, free: 31.31 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/1.051, allocations: 60.5 kB / 0.632 GB, free: 31.24 MB / 395.1 MB Notification: Performance of pre-optimization done (n=319): time 7.054e-06/1.051, allocations: 0 / 0.632 GB, free: 31.24 MB / 395.1 MB Notification: Performance of matching and sorting (n=319): time 0.006755/1.058, allocations: 5.27 MB / 0.6371 GB, free: 25.92 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/1.058, allocations: 81.41 kB / 0.6372 GB, free: 25.83 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001495/1.059, allocations: 1.009 MB / 0.6382 GB, free: 24.8 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001638/1.059, allocations: 25.7 kB / 0.6382 GB, free: 24.77 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007494/1.06, allocations: 1.676 MB / 0.6399 GB, free: 23.07 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007525/1.061, allocations: 1.016 MB / 0.6409 GB, free: 22.04 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/1.061, allocations: 3.938 kB / 0.6409 GB, free: 22.03 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002348/1.061, allocations: 0.4983 MB / 0.6413 GB, free: 21.52 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002448/1.064, allocations: 2.157 MB / 0.6434 GB, free: 19.36 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002694/1.067, allocations: 2.849 MB / 0.6462 GB, free: 16.25 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00452/1.071, allocations: 3.004 MB / 0.6492 GB, free: 13.23 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.561e-05/1.071, allocations: 4 kB / 0.6492 GB, free: 13.22 MB / 395.1 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01019/1.081, allocations: 6.383 MB / 0.6554 GB, free: 6.789 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.966e-05/1.081, allocations: 16.62 kB / 0.6554 GB, free: 6.773 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.405e-05/1.082, allocations: 20 kB / 0.6554 GB, free: 6.754 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/1.083, allocations: 1.405 MB / 0.6568 GB, free: 5.34 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002152/1.086, allocations: 0.5226 MB / 0.6573 GB, free: 4.816 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2365/1.322, allocations: 5.282 MB / 0.6625 GB, free: 73.29 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002907/1.325, allocations: 322.3 kB / 0.6628 GB, free: 73.29 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003662/1.325, allocations: 144.7 kB / 0.6629 GB, free: 73.29 MB / 395.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.0006647/1.326, allocations: 232.4 kB / 0.6631 GB, free: 73.16 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004082/1.327, allocations: 174.5 kB / 0.6633 GB, free: 73.14 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007996/1.335, allocations: 5.647 MB / 0.6688 GB, free: 72.95 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005898/1.341, allocations: 5.235 MB / 0.6739 GB, free: 72.81 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/1.341, allocations: 7.469 kB / 0.6739 GB, free: 72.81 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/1.341, allocations: 10.83 kB / 0.674 GB, free: 72.81 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01415/1.355, allocations: 10.35 MB / 0.6841 GB, free: 72.35 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/1.355, allocations: 0 / 0.6841 GB, free: 72.35 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/1.356, allocations: 289.3 kB / 0.6843 GB, free: 72.35 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001779/1.358, allocations: 1.372 MB / 0.6857 GB, free: 72.32 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001648/1.358, allocations: 39.72 kB / 0.6857 GB, free: 72.32 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004457/1.362, allocations: 5.247 MB / 0.6908 GB, free: 70.2 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/1.363, allocations: 8.594 kB / 0.6908 GB, free: 70.2 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/1.374, allocations: 8.62 MB / 0.6993 GB, free: 68.34 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/1.375, allocations: 0.7427 MB / 0.7 GB, free: 67.95 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002747/1.376, allocations: 0.8125 kB / 0.7 GB, free: 67.95 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00088/1.377, allocations: 63.89 kB / 0.7001 GB, free: 67.95 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005408/1.377, allocations: 237 kB / 0.7003 GB, free: 67.91 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002272/1.377, allocations: 81.7 kB / 0.7004 GB, free: 67.89 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001159/1.379, allocations: 0.7249 MB / 0.7011 GB, free: 67.56 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.379, allocations: 1.031 kB / 0.7011 GB, free: 67.56 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002942/1.382, allocations: 0.9917 MB / 0.702 GB, free: 67.43 MB / 395.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.0004884/1.382, allocations: 165.3 kB / 0.7022 GB, free: 67.34 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.008366/1.39, allocations: 5.023 MB / 0.7071 GB, free: 65.43 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/1.39, allocations: 0.75 kB / 0.7071 GB, free: 65.43 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003185/1.394, allocations: 2.43 MB / 0.7095 GB, free: 64.5 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/1.396, allocations: 275.8 kB / 0.7097 GB, free: 64.45 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01367/1.409, allocations: 8.249 MB / 0.7178 GB, free: 61.31 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003061/1.412, allocations: 3.327 MB / 0.721 GB, free: 59.9 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.002122/1.414, allocations: 0.6052 MB / 0.7216 GB, free: 59.84 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003424/1.415, allocations: 115.7 kB / 0.7217 GB, free: 59.83 MB / 395.1 MB Notification: Performance of SimCode: time 2.064e-06/1.415, allocations: 1.125 kB / 0.7217 GB, free: 59.83 MB / 395.1 MB Notification: Performance of Templates: time 0.05919/1.474, allocations: 41.71 MB / 0.7625 GB, free: 40.68 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & ./Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1)