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.001097/0.001097, allocations: 101.6 kB / 16.5 MB, free: 6.699 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.001119/0.001119, allocations: 194 kB / 17.42 MB, free: 6.086 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.352/1.352, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.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.001216/0.001216, allocations: 43.94 kB / 279.4 MB, free: 3.555 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07695/0.07818, allocations: 46.63 MB / 326 MB, free: 4.863 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03069/0.1089, allocations: 29.74 MB / 355.7 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01537/0.1243, allocations: 8.554 MB / 364.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004707/0.1291, allocations: 159.5 kB / 364.4 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01083/0.1399, allocations: 4.568 MB / 369 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008281/0.1482, allocations: 2.706 MB / 371.7 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004374/0.1526, allocations: 1.501 MB / 373.2 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.15/0.3026, allocations: 8.964 MB / 382.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01523/0.3179, allocations: 10.3 MB / 392.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006179/0.3241, allocations: 3.597 MB / 396.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007445/0.3316, allocations: 4.484 MB / 400.6 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00256/0.3342, allocations: 0.729 MB / 401.3 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004413/0.3386, allocations: 1.097 MB / 402.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00279/0.3415, allocations: 1.97 MB / 404.4 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006014/0.3475, allocations: 4.207 MB / 408.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.3595, allocations: 15.32 MB / 423.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3596, allocations: 4 kB / 423.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3596, allocations: 0 / 423.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003513/0.36, allocations: 0 / 423.9 MB, free: 10.58 MB / 334.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.02655/0.3865, allocations: 9.791 MB / 433.7 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3866, allocations: 8.031 kB / 433.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02818/0.4148, allocations: 5.253 MB / 438.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.4249, allocations: 4.644 MB / 443.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005332/0.4254, allocations: 0.5294 MB / 444.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002522/0.428, allocations: 0.7139 MB / 444.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02462/0.4526, allocations: 11.32 MB / 456.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002384/0.4529, allocations: 19.55 kB / 456.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001327/0.4542, allocations: 298.9 kB / 456.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003944/0.4546, allocations: 443 kB / 456.9 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02007/0.4747, allocations: 10.8 MB / 467.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0584/0.5331, allocations: 37.99 MB / 0.4938 GB, free: 8.477 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02024/0.5534, allocations: 28.12 MB / 0.5213 GB, free: 8.543 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004372/0.5578, allocations: 2.647 MB / 0.5239 GB, free: 5.887 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1833/0.7411, allocations: 7.928 MB / 0.5316 GB, free: 149.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.192e-05/0.7412, allocations: 58.28 kB / 0.5317 GB, free: 149.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.107e-06/0.7412, allocations: 0.5938 kB / 0.5317 GB, free: 149.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=233): time 0.02091/0.7622, allocations: 10.36 MB / 0.5418 GB, free: 146.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00171/0.7639, allocations: 1.919 MB / 0.5437 GB, free: 144.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006099/0.77, allocations: 3.825 MB / 0.5474 GB, free: 143.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004104/0.7705, allocations: 64.77 kB / 0.5475 GB, free: 143.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001895/0.7724, allocations: 3.546 MB / 0.5509 GB, free: 140.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009533/0.7733, allocations: 0.8278 MB / 0.5517 GB, free: 140 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001349/0.7747, allocations: 0.9585 MB / 0.5527 GB, free: 139.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.614e-05/0.7748, allocations: 305.1 kB / 0.553 GB, free: 139.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00262/0.7774, allocations: 1.89 MB / 0.5548 GB, free: 138.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003303/0.7807, allocations: 4.39 MB / 0.5591 GB, free: 134.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00703/0.7877, allocations: 6.789 MB / 0.5657 GB, free: 129 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-05/0.7879, allocations: 24.06 kB / 0.5657 GB, free: 129 MB / 446.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.01129/0.7992, allocations: 6.985 MB / 0.5726 GB, free: 126.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.172e-05/0.7993, allocations: 42.97 kB / 0.5726 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001239/0.7994, allocations: 85.97 kB / 0.5727 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001924/0.8013, allocations: 0.7439 MB / 0.5734 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003379/0.8047, allocations: 1.116 MB / 0.5745 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00592/0.8107, allocations: 5.24 MB / 0.5796 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00472/0.8154, allocations: 315 kB / 0.5799 GB, free: 122.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007863/0.8162, allocations: 276.9 kB / 0.5802 GB, free: 122.4 MB / 446.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 (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005418/0.8217, allocations: 2.516 MB / 0.5826 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/0.823, allocations: 383.1 kB / 0.583 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00683/0.8299, allocations: 4.277 MB / 0.5872 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.8299, allocations: 24 kB / 0.5872 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.8299, allocations: 8 kB / 0.5872 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.8299, allocations: 11.2 kB / 0.5872 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01973/0.8497, allocations: 14.28 MB / 0.6012 GB, free: 102.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/0.8497, allocations: 17.34 kB / 0.6012 GB, free: 102.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/0.8514, allocations: 483.2 kB / 0.6016 GB, free: 101.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001929/0.8533, allocations: 0.6932 MB / 0.6023 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002974/0.8537, allocations: 71.98 kB / 0.6024 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007358/0.861, allocations: 6.939 MB / 0.6092 GB, free: 93.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00131/0.8624, allocations: 1.862 MB / 0.611 GB, free: 91.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009371/0.8717, allocations: 6.754 MB / 0.6176 GB, free: 84.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002093/0.8739, allocations: 0.7928 MB / 0.6184 GB, free: 83.95 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001009/0.8749, allocations: 63.98 kB / 0.6184 GB, free: 83.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00228/0.8772, allocations: 163.9 kB / 0.6186 GB, free: 83.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004242/0.8776, allocations: 221.4 kB / 0.6188 GB, free: 83.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/0.8778, allocations: 91.98 kB / 0.6189 GB, free: 83.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003561/0.8814, allocations: 2.509 MB / 0.6213 GB, free: 80.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8814, allocations: 6.297 kB / 0.6213 GB, free: 80.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005211/0.8866, allocations: 1.284 MB / 0.6226 GB, free: 79.65 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 (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006075/0.8873, allocations: 227.1 kB / 0.6228 GB, free: 79.42 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00704/0.8943, allocations: 5.14 MB / 0.6278 GB, free: 74.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.8944, allocations: 4.5 kB / 0.6278 GB, free: 74.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00304/0.8974, allocations: 2.405 MB / 0.6302 GB, free: 71.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004737/0.9022, allocations: 0.937 MB / 0.6311 GB, free: 70.87 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02004/0.9222, allocations: 15.44 MB / 0.6462 GB, free: 55.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003949/0.9263, allocations: 4.493 MB / 0.6506 GB, free: 50.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004369/0.9306, allocations: 1.36 MB / 0.6519 GB, free: 49.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008783/0.9315, allocations: 295.4 kB / 0.6522 GB, free: 49.06 MB / 446.1 MB Notification: Performance of SimCode: time 1.553e-06/0.9316, allocations: 4 kB / 0.6522 GB, free: 49.06 MB / 446.1 MB Notification: Performance of Templates: time 0.2736/1.205, allocations: 54.72 MB / 0.7056 GB, free: 121.9 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)