Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009712/0.0009712, allocations: 188.6 kB / 8.353 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.331/1.331, allocations: 194.3 MB / 203.1 MB, free: 9.316 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.001679/0.001679, allocations: 116.5 kB / 248.1 MB, free: 6.34 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.408e-05/1.41e-05, allocations: 0 / 298.1 MB, free: 8.219 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08005/0.08008, allocations: 44.5 MB / 342.6 MB, free: 11.62 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3242/0.4043, allocations: 142.1 MB / 484.7 MB, free: 2.703 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.4046, allocations: 99.73 kB / 484.8 MB, free: 2.648 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8024/1.207, allocations: 229.8 MB / 0.6979 GB, free: 31.07 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.245e-06/1.207, allocations: 0 / 0.6979 GB, free: 31.07 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004761/1.208, allocations: 161.4 kB / 0.698 GB, free: 31.05 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: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02446/1.232, allocations: 6.771 MB / 0.7046 GB, free: 28.78 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/1.232, allocations: 9.516 kB / 0.7046 GB, free: 28.78 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02117/1.253, allocations: 3.655 MB / 0.7082 GB, free: 28.37 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/1.267, allocations: 5.94 MB / 0.714 GB, free: 27.54 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000499/1.268, allocations: 233.4 kB / 0.7142 GB, free: 27.54 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002913/1.271, allocations: 420.5 kB / 0.7146 GB, free: 27.54 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01867/1.289, allocations: 9.151 MB / 0.7236 GB, free: 27.51 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02554/1.315, allocations: 10.2 MB / 0.7335 GB, free: 26.71 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003588/1.315, allocations: 22.33 kB / 0.7335 GB, free: 26.71 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002198/1.318, allocations: 6.875 kB / 0.7336 GB, free: 26.71 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004907/1.318, allocations: 491.2 kB / 0.734 GB, free: 26.69 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06/1.378, allocations: 37.7 MB / 0.7708 GB, free: 10.9 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01415/1.392, allocations: 18.17 MB / 0.7886 GB, free: 11.32 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008374/1.401, allocations: 4.199 MB / 0.7927 GB, free: 9.523 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02896/1.43, allocations: 14.02 MB / 0.8064 GB, free: 1.582 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.691e-05/1.43, allocations: 69.28 kB / 0.8064 GB, free: 1.504 MB / 411.1 MB Notification: Performance of pre-optimization done (n=399): time 8.546e-06/1.43, allocations: 4 kB / 0.8064 GB, free: 1.5 MB / 411.1 MB Notification: Performance of matching and sorting (n=415): time 0.045/1.475, allocations: 16.57 MB / 0.8226 GB, free: 4.496 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/1.475, allocations: 86.25 kB / 0.8227 GB, free: 4.398 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005304/1.48, allocations: 2.44 MB / 0.8251 GB, free: 2.215 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000821/1.481, allocations: 29.7 kB / 0.8251 GB, free: 2.18 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2343/1.716, allocations: 3.171 MB / 0.8282 GB, free: 62.23 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001916/1.717, allocations: 1.352 MB / 0.8295 GB, free: 61.75 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000842/1.718, allocations: 3.375 kB / 0.8295 GB, free: 61.75 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0004575/1.719, allocations: 0.5259 MB / 0.8301 GB, free: 61.43 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004087/1.723, allocations: 2.877 MB / 0.8329 GB, free: 61.42 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004406/1.727, allocations: 4.847 MB / 0.8376 GB, free: 59 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007277/1.735, allocations: 4.479 MB / 0.842 GB, free: 58.96 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.382e-05/1.735, allocations: 17.72 kB / 0.842 GB, free: 58.96 MB / 427.1 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.01448/1.749, allocations: 9.655 MB / 0.8514 GB, free: 58.61 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.742e-05/1.749, allocations: 32.28 kB / 0.8515 GB, free: 58.61 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.869e-05/1.749, allocations: 67.81 kB / 0.8515 GB, free: 58.61 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004343/1.754, allocations: 2.45 MB / 0.8539 GB, free: 58.56 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004319/1.758, allocations: 1.084 MB / 0.855 GB, free: 58.56 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005881/1.764, allocations: 5.548 MB / 0.8604 GB, free: 57.48 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004386/1.768, allocations: 245.6 kB / 0.8606 GB, free: 57.45 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009991/1.769, allocations: 270.4 kB / 0.8609 GB, free: 57.45 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].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: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.001668/1.771, allocations: 333.3 kB / 0.8612 GB, free: 57.34 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001236/1.772, allocations: 376.1 kB / 0.8616 GB, free: 57.14 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01902/1.791, allocations: 8.417 MB / 0.8698 GB, free: 56.89 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001011/1.792, allocations: 96.7 kB / 0.8699 GB, free: 56.89 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.101e-05/1.792, allocations: 3.953 kB / 0.8699 GB, free: 56.89 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.331e-05/1.792, allocations: 15.89 kB / 0.8699 GB, free: 56.89 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03675/1.828, allocations: 19.43 MB / 0.8889 GB, free: 55.06 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/1.828, allocations: 6.938 kB / 0.8889 GB, free: 55.06 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002463/1.831, allocations: 0.5645 MB / 0.8894 GB, free: 55.04 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004279/1.835, allocations: 2.406 MB / 0.8918 GB, free: 54.33 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005605/1.836, allocations: 48.8 kB / 0.8918 GB, free: 54.32 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007155/1.843, allocations: 7.224 MB / 0.8989 GB, free: 49.82 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001426/1.844, allocations: 1.81 MB / 0.9006 GB, free: 48.23 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01832/1.863, allocations: 13.02 MB / 0.9134 GB, free: 41.89 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003046/1.866, allocations: 1.07 MB / 0.9144 GB, free: 41.26 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001641/1.867, allocations: 12.72 kB / 0.9144 GB, free: 41.26 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003103/1.871, allocations: 177.1 kB / 0.9146 GB, free: 41.26 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007727/1.871, allocations: 326.5 kB / 0.9149 GB, free: 41.2 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005053/1.872, allocations: 118.9 kB / 0.915 GB, free: 41.17 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.003473/1.875, allocations: 1.742 MB / 0.9167 GB, free: 40.44 MB / 427.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.875, allocations: 0 / 0.9167 GB, free: 40.44 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.006611/1.882, allocations: 1.197 MB / 0.9179 GB, free: 40.42 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 3,6 9,10 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.001299/1.883, allocations: 0.5236 MB / 0.9184 GB, free: 40.28 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0113/1.895, allocations: 7.217 MB / 0.9254 GB, free: 37.48 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/1.895, allocations: 3.938 kB / 0.9254 GB, free: 37.48 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006572/1.901, allocations: 3.633 MB / 0.929 GB, free: 35.96 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005925/1.907, allocations: 0.7058 MB / 0.9297 GB, free: 35.77 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0257/1.933, allocations: 12.19 MB / 0.9416 GB, free: 27.27 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00598/1.939, allocations: 4.669 MB / 0.9461 GB, free: 23.71 MB / 427.1 MB Notification: Performance of simCode: alias equations: time 0.004641/1.944, allocations: 1.153 MB / 0.9473 GB, free: 22.9 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001161/1.945, allocations: 280.3 kB / 0.9475 GB, free: 22.64 MB / 427.1 MB Notification: Performance of SimCode: time 6.81e-07/1.945, allocations: 0 / 0.9475 GB, free: 22.64 MB / 427.1 MB Notification: Performance of Templates: time 0.3579/2.303, allocations: 68.93 MB / 1.015 GB, free: 50.42 MB / 427.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)