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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001151/0.001152, allocations: 189.2 kB / 8.135 MB, free: 2.215 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.131/1.131, allocations: 194.2 MB / 202.8 MB, free: 9.141 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001777/0.001777, allocations: 112.5 kB / 247.7 MB, free: 6.145 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.793e-06/6.913e-06, allocations: 0 / 297.6 MB, free: 8.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07958/0.0796, allocations: 44.48 MB / 342.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2288/0.3085, allocations: 84.3 MB / 426.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002183/0.3087, allocations: 80.2 kB / 426.4 MB, free: 10.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.4531/0.7619, allocations: 154.7 MB / 0.5676 GB, free: 78.58 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002876/0.7622, allocations: 100.9 kB / 0.5676 GB, free: 78.57 MB / 394.7 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.015/0.7772, allocations: 4.253 MB / 0.5718 GB, free: 76.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.7773, allocations: 8.875 kB / 0.5718 GB, free: 76.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01157/0.7889, allocations: 1.638 MB / 0.5734 GB, free: 76.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007031/0.7959, allocations: 2.696 MB / 0.576 GB, free: 74.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004908/0.7965, allocations: 159.8 kB / 0.5762 GB, free: 74.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001607/0.7981, allocations: 267.1 kB / 0.5764 GB, free: 74.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01203/0.8101, allocations: 5.674 MB / 0.582 GB, free: 72.31 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0173/0.8275, allocations: 6.859 MB / 0.5887 GB, free: 69.37 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002119/0.8277, allocations: 4.703 kB / 0.5887 GB, free: 69.37 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001448/0.8292, allocations: 3.406 kB / 0.5887 GB, free: 69.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003675/0.8296, allocations: 308 kB / 0.589 GB, free: 69.29 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04085/0.8704, allocations: 23.17 MB / 0.6116 GB, free: 51.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004781/0.8753, allocations: 3.724 MB / 0.6153 GB, free: 47.6 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004148/0.8794, allocations: 3.265 MB / 0.6184 GB, free: 44.31 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01826/0.8977, allocations: 11.89 MB / 0.6301 GB, free: 32.17 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.281e-05/0.8978, allocations: 56.56 kB / 0.6301 GB, free: 32.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=336): time 6.322e-06/0.8978, allocations: 0 / 0.6301 GB, free: 32.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=336): time 0.008213/0.906, allocations: 5.484 MB / 0.6355 GB, free: 26.57 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.758e-05/0.9061, allocations: 81.39 kB / 0.6355 GB, free: 26.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.9077, allocations: 1.025 MB / 0.6365 GB, free: 25.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002353/0.9079, allocations: 25.7 kB / 0.6366 GB, free: 25.4 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006014/0.9085, allocations: 1.567 MB / 0.6381 GB, free: 23.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008269/0.9094, allocations: 1.07 MB / 0.6391 GB, free: 22.72 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002774/0.9097, allocations: 0 / 0.6391 GB, free: 22.72 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002847/0.91, allocations: 0.5105 MB / 0.6396 GB, free: 22.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002809/0.9128, allocations: 2.294 MB / 0.6419 GB, free: 19.91 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00315/0.9159, allocations: 3.006 MB / 0.6448 GB, free: 16.63 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004102/0.9201, allocations: 2.893 MB / 0.6476 GB, free: 13.72 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.54e-05/0.9201, allocations: 4 kB / 0.6476 GB, free: 13.72 MB / 394.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.009307/0.9294, allocations: 6.488 MB / 0.654 GB, free: 7.188 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.9294, allocations: 6.219 kB / 0.654 GB, free: 7.184 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.075e-05/0.9295, allocations: 20 kB / 0.654 GB, free: 7.164 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/0.9315, allocations: 1.415 MB / 0.6554 GB, free: 5.754 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00262/0.9342, allocations: 0.5499 MB / 0.6559 GB, free: 5.203 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1293/1.063, allocations: 5.44 MB / 0.6612 GB, free: 108.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003306/1.067, allocations: 298.2 kB / 0.6615 GB, free: 108.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004745/1.067, allocations: 144.3 kB / 0.6617 GB, free: 108.7 MB / 394.7 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[2].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[1].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[3].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[1].u.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[3].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] powerSensor.powerSensor[1].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[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[2].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[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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.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[3].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[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] 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[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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] 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[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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 (318): * Single equations (assignments): 256 * 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.0007799/1.068, allocations: 245.1 kB / 0.6619 GB, free: 108.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005589/1.069, allocations: 176.1 kB / 0.6621 GB, free: 108.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008186/1.077, allocations: 5.884 MB / 0.6678 GB, free: 108.4 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006674/1.084, allocations: 5.419 MB / 0.6731 GB, free: 108.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/1.084, allocations: 2.344 kB / 0.6731 GB, free: 108.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.965e-05/1.084, allocations: 14.25 kB / 0.6731 GB, free: 108.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01609/1.1, allocations: 11.05 MB / 0.6839 GB, free: 107.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/1.1, allocations: 0 / 0.6839 GB, free: 107.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001789/1.102, allocations: 325.3 kB / 0.6842 GB, free: 107.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001919/1.104, allocations: 1.391 MB / 0.6856 GB, free: 107.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003701/1.104, allocations: 41.3 kB / 0.6856 GB, free: 107.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004496/1.108, allocations: 5.396 MB / 0.6909 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.109, allocations: 9.938 kB / 0.6909 GB, free: 105.7 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01141/1.12, allocations: 9.048 MB / 0.6997 GB, free: 104.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/1.122, allocations: 0.7583 MB / 0.7005 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004656/1.122, allocations: 0 / 0.7005 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/1.123, allocations: 40.83 kB / 0.7005 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004691/1.124, allocations: 238.3 kB / 0.7007 GB, free: 103.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002246/1.124, allocations: 82.09 kB / 0.7008 GB, free: 103.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000872/1.125, allocations: 0.7427 MB / 0.7015 GB, free: 103.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002789/1.128, allocations: 1.006 MB / 0.7025 GB, free: 103.4 MB / 394.7 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 (191): * Single equations (assignments): 129 * 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.0004711/1.128, allocations: 174.4 kB / 0.7027 GB, free: 103.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006798/1.135, allocations: 5.338 MB / 0.7079 GB, free: 101.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/1.135, allocations: 0 / 0.7079 GB, free: 101.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003195/1.138, allocations: 2.59 MB / 0.7104 GB, free: 100.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001822/1.14, allocations: 263.7 kB / 0.7107 GB, free: 100.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/1.156, allocations: 8.453 MB / 0.7189 GB, free: 97.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004061/1.161, allocations: 3.477 MB / 0.7223 GB, free: 95.89 MB / 394.7 MB Notification: Performance of SimCode: time 2.023e-06/1.161, allocations: 3.75 kB / 0.7223 GB, free: 95.89 MB / 394.7 MB Notification: Performance of Templates: time 0.06913/1.23, allocations: 49.22 MB / 0.7704 GB, free: 70 MB / 394.7 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)