Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.001065/0.001065, allocations: 97.88 kB / 15.36 MB, free: 0.7344 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.006384/0.006384, allocations: 171.2 kB / 16.27 MB, free: 6.648 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.51/1.51, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.000459/0.0004591, allocations: 8.422 kB / 279.5 MB, free: 12.49 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2237, allocations: 47.59 MB / 327.1 MB, free: 1.484 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.0359/0.2596, allocations: 35.24 MB / 362.3 MB, free: 76 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02091/0.2806, allocations: 9.82 MB / 372.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009258/0.2899, allocations: 227.2 kB / 372.3 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009665/0.2996, allocations: 2.387 MB / 374.7 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01347/0.3131, allocations: 3.596 MB / 378.3 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006354/0.3194, allocations: 2.031 MB / 380.4 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01945/0.3389, allocations: 14.51 MB / 394.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04541/0.3844, allocations: 24.59 MB / 419.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008954/0.3934, allocations: 5.148 MB / 424.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009787/0.4032, allocations: 6.243 MB / 430.8 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003348/0.4065, allocations: 0.7969 MB / 431.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005322/0.4119, allocations: 1.191 MB / 432.8 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004204/0.4161, allocations: 2.619 MB / 435.5 MB, free: 6.602 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01102/0.4272, allocations: 6.291 MB / 441.7 MB, free: 280 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3512/0.7784, allocations: 25.32 MB / 467.1 MB, free: 41.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.7785, allocations: 7.781 kB / 467.1 MB, free: 41.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.7785, allocations: 0 / 467.1 MB, free: 41.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005564/0.779, allocations: 0.875 kB / 467.1 MB, free: 41.56 MB / 382.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.03284/0.8119, allocations: 13.36 MB / 480.4 MB, free: 35.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.8119, allocations: 8 kB / 480.4 MB, free: 35.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03884/0.8508, allocations: 7.394 MB / 487.8 MB, free: 32.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01448/0.8653, allocations: 7.712 MB / 495.6 MB, free: 30.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007232/0.8661, allocations: 0.9175 MB / 496.5 MB, free: 30.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004968/0.871, allocations: 1.213 MB / 497.7 MB, free: 30.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04275/0.9138, allocations: 19.25 MB / 0.5048 GB, free: 16.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005176/0.9144, allocations: 19.81 kB / 0.5048 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003873/0.9182, allocations: 0.504 MB / 0.5053 GB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005909/0.9189, allocations: 0.6815 MB / 0.506 GB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03385/0.9527, allocations: 17.71 MB / 0.5233 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1059/1.059, allocations: 64.09 MB / 0.5859 GB, free: 12.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03351/1.092, allocations: 38.67 MB / 0.6236 GB, free: 1.277 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.18/1.272, allocations: 4.263 MB / 0.6278 GB, free: 189.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01836/1.291, allocations: 12.36 MB / 0.6399 GB, free: 184.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/1.291, allocations: 81.06 kB / 0.64 GB, free: 184.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=408): time 6.813e-06/1.291, allocations: 0 / 0.64 GB, free: 184.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=418): time 0.0358/1.326, allocations: 20.35 MB / 0.6598 GB, free: 174.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/1.327, allocations: 123.4 kB / 0.66 GB, free: 174.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007246/1.334, allocations: 5.306 MB / 0.6651 GB, free: 171.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007116/1.335, allocations: 93.7 kB / 0.6652 GB, free: 171.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00233/1.337, allocations: 5.488 MB / 0.6706 GB, free: 166.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/1.338, allocations: 1.451 MB / 0.672 GB, free: 165.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006133/1.339, allocations: 0.5251 MB / 0.6725 GB, free: 164.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.452e-05/1.339, allocations: 307.6 kB / 0.6728 GB, free: 164.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003847/1.342, allocations: 2.957 MB / 0.6757 GB, free: 162.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004891/1.347, allocations: 5.693 MB / 0.6813 GB, free: 155.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/1.358, allocations: 9.202 MB / 0.6902 GB, free: 145.9 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.801e-05/1.358, allocations: 28 kB / 0.6903 GB, free: 145.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01578/1.374, allocations: 10.09 MB / 0.7001 GB, free: 135.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.487e-05/1.374, allocations: 48.09 kB / 0.7002 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001098/1.374, allocations: 95.98 kB / 0.7003 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002777/1.377, allocations: 1.12 MB / 0.7014 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005167/1.382, allocations: 1.529 MB / 0.7029 GB, free: 133.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/1.395, allocations: 12.54 MB / 0.7151 GB, free: 120.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005528/1.4, allocations: 367.5 kB / 0.7155 GB, free: 119.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001046/1.401, allocations: 355.9 kB / 0.7158 GB, free: 119.4 MB / 494.1 MB 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 (806): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,53.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00691/1.408, allocations: 4.29 MB / 0.72 GB, free: 115.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001147/1.409, allocations: 0.5442 MB / 0.7205 GB, free: 114.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.42, allocations: 7.211 MB / 0.7276 GB, free: 107.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005856/1.426, allocations: 4.313 MB / 0.7318 GB, free: 102.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.721e-05/1.426, allocations: 16 kB / 0.7318 GB, free: 102.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.629e-05/1.426, allocations: 19.92 kB / 0.7318 GB, free: 102.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0247/1.451, allocations: 17.19 MB / 0.7486 GB, free: 85.47 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.59e-05/1.451, allocations: 4 kB / 0.7486 GB, free: 85.47 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002781/1.454, allocations: 0.6871 MB / 0.7493 GB, free: 84.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002972/1.457, allocations: 1.184 MB / 0.7504 GB, free: 83.58 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003521/1.457, allocations: 99.97 kB / 0.7505 GB, free: 83.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/1.472, allocations: 16.03 MB / 0.7662 GB, free: 66.66 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/1.472, allocations: 8 kB / 0.7662 GB, free: 66.65 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/1.486, allocations: 10.45 MB / 0.7764 GB, free: 56.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002812/1.489, allocations: 1.146 MB / 0.7775 GB, free: 54.86 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001008/1.49, allocations: 85.42 kB / 0.7776 GB, free: 54.78 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002555/1.492, allocations: 223.8 kB / 0.7778 GB, free: 54.56 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006501/1.493, allocations: 299.4 kB / 0.7781 GB, free: 54.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002538/1.493, allocations: 124 kB / 0.7782 GB, free: 54.14 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004917/1.498, allocations: 3.55 MB / 0.7817 GB, free: 50.61 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.498, allocations: 4 kB / 0.7817 GB, free: 50.61 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00718/1.505, allocations: 1.994 MB / 0.7836 GB, free: 48.62 MB / 494.1 MB 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 (356): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0007058/1.506, allocations: 282.6 kB / 0.7839 GB, free: 48.35 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01084/1.517, allocations: 7.924 MB / 0.7916 GB, free: 40.35 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/1.517, allocations: 0 / 0.7916 GB, free: 40.35 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005881/1.523, allocations: 4.153 MB / 0.7957 GB, free: 36.12 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01058/1.533, allocations: 1.354 MB / 0.797 GB, free: 34.77 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2208/1.754, allocations: 26.27 MB / 0.8227 GB, free: 168.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00746/1.762, allocations: 7.449 MB / 0.8299 GB, free: 167.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006467/1.768, allocations: 2.094 MB / 0.832 GB, free: 166.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/1.769, allocations: 410.6 kB / 0.8324 GB, free: 166.9 MB / 494.1 MB Notification: Performance of SimCode: time 8.12e-07/1.769, allocations: 0 / 0.8324 GB, free: 166.9 MB / 494.1 MB Notification: Performance of Templates: time 0.1222/1.892, allocations: 82.05 MB / 0.9125 GB, free: 95.97 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)