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.0007796/0.0007795, allocations: 89.59 kB / 16.65 MB, free: 6.578 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.0008802/0.0008803, allocations: 186 kB / 17.57 MB, free: 6.199 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.305/1.305, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0004287/0.0004287, allocations: 12 kB / 280.8 MB, free: 3.379 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07961/0.08005, allocations: 47.58 MB / 328.4 MB, free: 3.719 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03413/0.1142, allocations: 35.25 MB / 363.6 MB, free: 316 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02208/0.1363, allocations: 9.819 MB / 373.4 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006406/0.1428, allocations: 227.1 kB / 373.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007268/0.1501, allocations: 2.387 MB / 376 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01275/0.1629, allocations: 3.588 MB / 379.6 MB, free: 240 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1772/0.3401, allocations: 2.03 MB / 381.6 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01862/0.3587, allocations: 14.5 MB / 396.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04068/0.3994, allocations: 24.63 MB / 420.8 MB, free: 0 / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01148/0.411, allocations: 5.151 MB / 425.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01112/0.4221, allocations: 6.236 MB / 432.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002746/0.4249, allocations: 0.7969 MB / 433 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005173/0.4301, allocations: 1.191 MB / 434.2 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002945/0.4331, allocations: 2.614 MB / 436.8 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01019/0.4433, allocations: 6.287 MB / 443.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02721/0.4705, allocations: 25.34 MB / 468.4 MB, free: 2.273 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.4706, allocations: 0 / 468.4 MB, free: 2.273 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.4706, allocations: 0 / 468.4 MB, free: 2.273 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006858/0.4713, allocations: 0 / 468.4 MB, free: 2.273 MB / 366.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.0376/0.5089, allocations: 13.37 MB / 481.8 MB, free: 4.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.5089, allocations: 8.031 kB / 481.8 MB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04132/0.5503, allocations: 7.392 MB / 489.2 MB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01582/0.5661, allocations: 7.719 MB / 496.9 MB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001178/0.5673, allocations: 0.916 MB / 497.8 MB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00458/0.5719, allocations: 1.22 MB / 499 MB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04565/0.6176, allocations: 19.25 MB / 0.5061 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004199/0.6181, allocations: 19.84 kB / 0.5061 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003219/0.6213, allocations: 0.498 MB / 0.5066 GB, free: 20 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000849/0.6222, allocations: 0.6815 MB / 0.5073 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03647/0.6587, allocations: 17.71 MB / 0.5246 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.389/1.048, allocations: 64.09 MB / 0.5872 GB, free: 105.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02642/1.074, allocations: 38.68 MB / 0.6249 GB, free: 67.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00624/1.08, allocations: 4.258 MB / 0.6291 GB, free: 65.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01796/1.098, allocations: 12.37 MB / 0.6412 GB, free: 54.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.781e-05/1.098, allocations: 77.81 kB / 0.6413 GB, free: 53.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=408): time 5.62e-06/1.098, allocations: 4 kB / 0.6413 GB, free: 53.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=418): time 0.03737/1.136, allocations: 20.36 MB / 0.6611 GB, free: 33.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/1.136, allocations: 128.3 kB / 0.6613 GB, free: 33.13 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006917/1.143, allocations: 5.304 MB / 0.6664 GB, free: 27.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000659/1.144, allocations: 93.7 kB / 0.6665 GB, free: 27.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00229/1.146, allocations: 5.483 MB / 0.6719 GB, free: 22.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001209/1.147, allocations: 1.457 MB / 0.6733 GB, free: 20.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000629/1.148, allocations: 0.5204 MB / 0.6738 GB, free: 20.26 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.821e-05/1.148, allocations: 309.1 kB / 0.6741 GB, free: 19.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003877/1.152, allocations: 2.957 MB / 0.677 GB, free: 16.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0047/1.156, allocations: 5.687 MB / 0.6826 GB, free: 10.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009264/1.166, allocations: 9.207 MB / 0.6915 GB, free: 15.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-05/1.166, allocations: 24 kB / 0.6916 GB, free: 15.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01726/1.183, allocations: 10.1 MB / 0.7014 GB, free: 5.332 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.271e-05/1.183, allocations: 52.02 kB / 0.7015 GB, free: 5.281 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001128/1.183, allocations: 88 kB / 0.7016 GB, free: 5.195 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002908/1.186, allocations: 1.12 MB / 0.7027 GB, free: 4.062 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005156/1.191, allocations: 1.533 MB / 0.7042 GB, free: 2.527 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1847/1.376, allocations: 12.54 MB / 0.7164 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005246/1.381, allocations: 370.6 kB / 0.7167 GB, free: 138.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00083/1.382, allocations: 345.1 kB / 0.7171 GB, free: 138.5 MB / 462.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.007038/1.389, allocations: 4.294 MB / 0.7213 GB, free: 136.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/1.39, allocations: 0.5443 MB / 0.7218 GB, free: 136.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01127/1.402, allocations: 7.21 MB / 0.7288 GB, free: 133.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005633/1.407, allocations: 4.318 MB / 0.7331 GB, free: 131.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-05/1.407, allocations: 11.88 kB / 0.7331 GB, free: 131.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.819e-05/1.407, allocations: 27.78 kB / 0.7331 GB, free: 131.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02323/1.431, allocations: 17.19 MB / 0.7499 GB, free: 124.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/1.431, allocations: 4.375 kB / 0.7499 GB, free: 124.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002619/1.433, allocations: 0.6864 MB / 0.7506 GB, free: 124.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002816/1.436, allocations: 1.189 MB / 0.7517 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002656/1.436, allocations: 98.91 kB / 0.7518 GB, free: 124 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/1.45, allocations: 16.02 MB / 0.7675 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/1.45, allocations: 7.75 kB / 0.7675 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01334/1.464, allocations: 10.45 MB / 0.7777 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002454/1.466, allocations: 1.148 MB / 0.7788 GB, free: 99.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009542/1.467, allocations: 83.98 kB / 0.7789 GB, free: 99.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00248/1.47, allocations: 223.7 kB / 0.7791 GB, free: 99.36 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000617/1.47, allocations: 303.4 kB / 0.7794 GB, free: 99.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002407/1.47, allocations: 124 kB / 0.7795 GB, free: 98.94 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005026/1.476, allocations: 3.546 MB / 0.783 GB, free: 95.41 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.232e-06/1.476, allocations: 0 / 0.783 GB, free: 95.41 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007231/1.483, allocations: 1.996 MB / 0.7849 GB, free: 93.42 MB / 462.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.0006768/1.483, allocations: 283.2 kB / 0.7852 GB, free: 93.15 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01025/1.494, allocations: 7.933 MB / 0.7929 GB, free: 85.15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/1.494, allocations: 4 kB / 0.7929 GB, free: 85.15 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005613/1.499, allocations: 4.154 MB / 0.797 GB, free: 80.91 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01022/1.51, allocations: 1.361 MB / 0.7983 GB, free: 79.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03734/1.547, allocations: 26.26 MB / 0.824 GB, free: 53.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008546/1.556, allocations: 7.448 MB / 0.8312 GB, free: 45.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006689/1.562, allocations: 2.092 MB / 0.8333 GB, free: 43.65 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001315/1.564, allocations: 411.4 kB / 0.8337 GB, free: 43.25 MB / 462.1 MB Notification: Performance of SimCode: time 1.372e-06/1.564, allocations: 0 / 0.8337 GB, free: 43.25 MB / 462.1 MB Notification: Performance of Templates: time 0.3312/1.895, allocations: 82.04 MB / 0.9138 GB, free: 113.1 MB / 462.1 MB 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)