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_Mains.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_Mains,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 111.7 kB / 17.06 MB, free: 6 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.001029/0.001029, allocations: 194.9 kB / 18 MB, free: 5.078 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.531/1.531, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001166/0.001166, allocations: 51.92 kB / 327.9 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08943/0.09061, allocations: 46.62 MB / 374.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2227/0.3133, allocations: 37.33 MB / 411.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02809/0.3415, allocations: 10.02 MB / 421.9 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009874/0.3514, allocations: 242.4 kB / 422.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02286/0.3743, allocations: 9.108 MB / 431.2 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01656/0.3909, allocations: 3.951 MB / 435.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008413/0.3993, allocations: 2.417 MB / 437.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02343/0.4228, allocations: 14.24 MB / 451.8 MB, free: 2.211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04125/0.4641, allocations: 25.59 MB / 477.4 MB, free: 8.449 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0125/0.4766, allocations: 7.242 MB / 484.7 MB, free: 1.188 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01429/0.4909, allocations: 8.008 MB / 492.7 MB, free: 9.152 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006326/0.4973, allocations: 2.035 MB / 494.7 MB, free: 7.117 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00886/0.5062, allocations: 2.433 MB / 497.1 MB, free: 4.684 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008492/0.5147, allocations: 4.095 MB / 0.4895 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01327/0.5281, allocations: 7.891 MB / 0.4972 GB, free: 8.656 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03404/0.5621, allocations: 26.99 MB / 0.5235 GB, free: 13.59 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.677e-06/0.5622, allocations: 0 / 0.5235 GB, free: 13.59 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.5622, allocations: 3.938 kB / 0.5236 GB, free: 13.59 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000772/0.563, allocations: 0 / 0.5236 GB, free: 13.59 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.04919/0.6122, allocations: 16.01 MB / 0.5392 GB, free: 13.46 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.6122, allocations: 8.031 kB / 0.5392 GB, free: 13.45 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04446/0.6567, allocations: 7.402 MB / 0.5464 GB, free: 6.027 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3703/1.027, allocations: 7.753 MB / 0.554 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001064/1.028, allocations: 0.9149 MB / 0.5549 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004889/1.033, allocations: 1.209 MB / 0.5561 GB, free: 132.9 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0489/1.082, allocations: 19.23 MB / 0.5748 GB, free: 125.3 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004795/1.082, allocations: 21.08 kB / 0.5749 GB, free: 125.3 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00408/1.087, allocations: 0.5018 MB / 0.5754 GB, free: 124.9 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006624/1.087, allocations: 0.6793 MB / 0.576 GB, free: 124.8 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03351/1.121, allocations: 17.68 MB / 0.5933 GB, free: 115.9 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1005/1.221, allocations: 63.12 MB / 0.6549 GB, free: 52 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02842/1.25, allocations: 38.68 MB / 0.6927 GB, free: 8.582 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005864/1.256, allocations: 4.176 MB / 0.6968 GB, free: 4.406 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02235/1.278, allocations: 12.19 MB / 0.7087 GB, free: 8.211 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.187e-05/1.278, allocations: 77.78 kB / 0.7088 GB, free: 8.125 MB / 494.1 MB Notification: Performance of pre-optimization done (n=402): time 6.182e-06/1.278, allocations: 0 / 0.7088 GB, free: 8.125 MB / 494.1 MB Notification: Performance of matching and sorting (n=412): time 0.0475/1.326, allocations: 20.06 MB / 0.7283 GB, free: 3.723 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/1.326, allocations: 116.4 kB / 0.7285 GB, free: 3.59 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008524/1.334, allocations: 5.304 MB / 0.7336 GB, free: 14.3 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007268/1.335, allocations: 93.7 kB / 0.7337 GB, free: 14.2 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003669/1.339, allocations: 5.489 MB / 0.7391 GB, free: 8.68 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00168/1.34, allocations: 1.437 MB / 0.7405 GB, free: 7.254 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002031/1.342, allocations: 1.306 MB / 0.7418 GB, free: 5.938 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.464e-05/1.343, allocations: 305.1 kB / 0.7421 GB, free: 5.637 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004587/1.347, allocations: 2.906 MB / 0.7449 GB, free: 2.727 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2048/1.552, allocations: 5.635 MB / 0.7504 GB, free: 160.5 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/1.564, allocations: 9.113 MB / 0.7593 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002094/1.564, allocations: 26.53 kB / 0.7593 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01917/1.583, allocations: 9.995 MB / 0.7691 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/1.583, allocations: 43.69 kB / 0.7691 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001677/1.584, allocations: 94.09 kB / 0.7692 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003163/1.587, allocations: 1.132 MB / 0.7703 GB, free: 151.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005633/1.592, allocations: 1.522 MB / 0.7718 GB, free: 151.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01501/1.607, allocations: 13.47 MB / 0.785 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005916/1.613, allocations: 365.1 kB / 0.7853 GB, free: 142 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001108/1.615, allocations: 349.9 kB / 0.7856 GB, free: 141.9 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (803): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0087/1.623, allocations: 4.295 MB / 0.7898 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001839/1.625, allocations: 0.5377 MB / 0.7904 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/1.637, allocations: 7.105 MB / 0.7973 GB, free: 136.7 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005698/1.643, allocations: 4.234 MB / 0.8014 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-05/1.643, allocations: 13.98 kB / 0.8014 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.382e-05/1.643, allocations: 26.03 kB / 0.8015 GB, free: 135 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02342/1.666, allocations: 17.03 MB / 0.8181 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/1.666, allocations: 4 kB / 0.8181 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002755/1.669, allocations: 0.6789 MB / 0.8188 GB, free: 124.6 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002886/1.672, allocations: 1.187 MB / 0.8199 GB, free: 123.7 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002747/1.672, allocations: 98.31 kB / 0.82 GB, free: 123.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/1.687, allocations: 17.37 MB / 0.837 GB, free: 106.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/1.687, allocations: 4 kB / 0.837 GB, free: 106.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/1.702, allocations: 10.29 MB / 0.847 GB, free: 96.32 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002909/1.705, allocations: 1.124 MB / 0.8481 GB, free: 95.18 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001176/1.706, allocations: 83.94 kB / 0.8482 GB, free: 95.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/1.708, allocations: 215.8 kB / 0.8484 GB, free: 94.89 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000691/1.709, allocations: 303.4 kB / 0.8487 GB, free: 94.59 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002524/1.709, allocations: 120 kB / 0.8488 GB, free: 94.47 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004465/1.714, allocations: 3.546 MB / 0.8523 GB, free: 90.94 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.5e-07/1.714, allocations: 0 / 0.8523 GB, free: 90.94 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007592/1.721, allocations: 1.99 MB / 0.8542 GB, free: 88.96 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * 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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000781/1.722, allocations: 286.7 kB / 0.8545 GB, free: 88.68 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01029/1.732, allocations: 7.833 MB / 0.8622 GB, free: 80.78 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.732, allocations: 0 / 0.8622 GB, free: 80.78 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00515/1.738, allocations: 4.077 MB / 0.8661 GB, free: 76.62 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005756/1.743, allocations: 1.446 MB / 0.8676 GB, free: 75.19 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02864/1.772, allocations: 20.67 MB / 0.8877 GB, free: 54.46 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006338/1.778, allocations: 7.446 MB / 0.895 GB, free: 46.98 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005044/1.783, allocations: 2.084 MB / 0.897 GB, free: 44.89 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/1.785, allocations: 407.4 kB / 0.8974 GB, free: 44.49 MB / 0.5138 GB Notification: Performance of SimCode: time 1.002e-06/1.785, allocations: 4 kB / 0.8974 GB, free: 44.48 MB / 0.5138 GB Notification: Performance of Templates: time 0.341/2.126, allocations: 80.93 MB / 0.9765 GB, free: 140.7 MB / 0.5138 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)