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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 88.53 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.53/1.53, allocations: 205.4 MB / 223.4 MB, free: 5.305 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004548/0.0004549, allocations: 16 kB / 280.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2071, allocations: 47.59 MB / 327.8 MB, free: 1.465 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02611/0.2332, allocations: 26.5 MB / 354.3 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01866/0.252, allocations: 8.02 MB / 362.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004604/0.2566, allocations: 155.5 kB / 362.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004311/0.2609, allocations: 1.247 MB / 363.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007598/0.2686, allocations: 2.434 MB / 366.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00357/0.2721, allocations: 1.064 MB / 367.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01399/0.2861, allocations: 9.942 MB / 377.1 MB, free: 1.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01876/0.3049, allocations: 9.978 MB / 387.1 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005336/0.3103, allocations: 3.134 MB / 390.2 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005876/0.3162, allocations: 3.634 MB / 393.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001685/0.3179, allocations: 480 kB / 394.3 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00317/0.3211, allocations: 0.7926 MB / 395.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002189/0.3233, allocations: 1.561 MB / 396.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002641/0.3259, allocations: 1.588 MB / 398.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01408/0.34, allocations: 13.11 MB / 411.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.3401, allocations: 0 / 411.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3401, allocations: 0 / 411.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006163/0.3407, allocations: 0 / 411.4 MB, free: 15.54 MB / 350.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.02461/0.3654, allocations: 8.257 MB / 419.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.019e-05/0.3654, allocations: 8.031 kB / 419.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02872/0.3942, allocations: 5.277 MB / 424.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009595/0.4038, allocations: 4.572 MB / 429.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005537/0.4044, allocations: 0.5378 MB / 430 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002315/0.4067, allocations: 0.7146 MB / 430.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02952/0.4363, allocations: 11.26 MB / 442 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003859/0.4367, allocations: 11.84 kB / 442 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002731/0.4394, allocations: 304 kB / 442.3 MB, free: 336 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006029/0.4401, allocations: 447 kB / 442.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02288/0.4629, allocations: 10.74 MB / 453.5 MB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2291/0.6921, allocations: 38.09 MB / 491.6 MB, free: 77.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/0.7061, allocations: 28.07 MB / 0.5075 GB, free: 48.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003735/0.7099, allocations: 2.64 MB / 0.5101 GB, free: 45.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/0.7233, allocations: 7.947 MB / 0.5178 GB, free: 37.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.317e-05/0.7235, allocations: 56.56 kB / 0.5179 GB, free: 37.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 5.771e-06/0.7235, allocations: 0 / 0.5179 GB, free: 37.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.0216/0.7451, allocations: 11.07 MB / 0.5287 GB, free: 26.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001759/0.7469, allocations: 1.908 MB / 0.5306 GB, free: 24.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006753/0.7537, allocations: 3.791 MB / 0.5343 GB, free: 20.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003078/0.754, allocations: 65.7 kB / 0.5343 GB, free: 20.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001667/0.7557, allocations: 3.552 MB / 0.5378 GB, free: 17.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006577/0.7564, allocations: 0.8309 MB / 0.5386 GB, free: 16.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002903/0.7567, allocations: 99.94 kB / 0.5387 GB, free: 16.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002263/0.7569, allocations: 0.4929 MB / 0.5392 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002548/0.7594, allocations: 1.876 MB / 0.541 GB, free: 14.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003397/0.7628, allocations: 4.376 MB / 0.5453 GB, free: 8.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003646/0.7665, allocations: 2.816 MB / 0.548 GB, free: 5.594 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.357e-05/0.7666, allocations: 24 kB / 0.5481 GB, free: 5.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01097/0.7776, allocations: 6.937 MB / 0.5548 GB, free: 14.61 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.979e-05/0.7777, allocations: 55.95 kB / 0.5549 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001418/0.7778, allocations: 84 kB / 0.555 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002052/0.7799, allocations: 0.7439 MB / 0.5557 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003893/0.7838, allocations: 1.13 MB / 0.5568 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007464/0.7913, allocations: 5.217 MB / 0.5619 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003769/0.7951, allocations: 311 kB / 0.5622 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007664/0.7959, allocations: 276 kB / 0.5624 GB, free: 6.664 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00497/0.8008, allocations: 2.522 MB / 0.5649 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009651/0.8018, allocations: 387.2 kB / 0.5653 GB, free: 3.746 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00843/0.8103, allocations: 4.262 MB / 0.5694 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/0.8103, allocations: 24 kB / 0.5695 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/0.8103, allocations: 4 kB / 0.5695 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.162e-05/0.8104, allocations: 15.91 kB / 0.5695 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02546/0.8358, allocations: 14.27 MB / 0.5834 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.654e-05/0.8359, allocations: 12 kB / 0.5834 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/0.8379, allocations: 487.4 kB / 0.5839 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002078/0.84, allocations: 0.6854 MB / 0.5846 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002895/0.8403, allocations: 67.98 kB / 0.5846 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00903/0.8494, allocations: 6.933 MB / 0.5914 GB, free: 8.516 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001742/0.8512, allocations: 1.866 MB / 0.5932 GB, free: 6.504 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01076/0.8619, allocations: 6.706 MB / 0.5998 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/0.864, allocations: 0.7967 MB / 0.6005 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009023/0.8649, allocations: 67.92 kB / 0.6006 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002153/0.8671, allocations: 167.9 kB / 0.6008 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004562/0.8675, allocations: 217.4 kB / 0.601 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002212/0.8678, allocations: 91.98 kB / 0.6011 GB, free: 14.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005397/0.8732, allocations: 2.482 MB / 0.6035 GB, free: 11.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.146e-06/0.8732, allocations: 0 / 0.6035 GB, free: 11.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005846/0.879, allocations: 1.295 MB / 0.6048 GB, free: 10.41 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 1 {(4,100.0%) 32} * Non-linear torn systems: 1 {3 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006573/0.8797, allocations: 230.4 kB / 0.605 GB, free: 10.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009226/0.889, allocations: 5.104 MB / 0.61 GB, free: 5.031 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/0.889, allocations: 4 kB / 0.61 GB, free: 5.027 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004319/0.8933, allocations: 2.404 MB / 0.6123 GB, free: 2.582 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006119/0.8995, allocations: 0.9496 MB / 0.6132 GB, free: 1.629 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1906/1.09, allocations: 14.75 MB / 0.6276 GB, free: 146.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004241/1.094, allocations: 4.494 MB / 0.632 GB, free: 145.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004037/1.098, allocations: 1.365 MB / 0.6334 GB, free: 145.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008859/1.099, allocations: 298.2 kB / 0.6336 GB, free: 145.2 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/1.099, allocations: 3.281 kB / 0.6337 GB, free: 145.2 MB / 446.1 MB Notification: Performance of Templates: time 0.07797/1.177, allocations: 52.81 MB / 0.6852 GB, free: 99.14 MB / 446.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)