Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0011/0.0011, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.346/1.346, allocations: 205.1 MB / 222.4 MB, free: 4.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.001221/0.001222, allocations: 59.91 kB / 278.7 MB, free: 12.33 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2051, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03775/0.2429, allocations: 37.34 MB / 362.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02048/0.2634, allocations: 10.01 MB / 372.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007191/0.2706, allocations: 231.2 kB / 372.9 MB, free: 4.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0208/0.2915, allocations: 9.103 MB / 382 MB, free: 11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01362/0.3052, allocations: 3.97 MB / 386 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00734/0.3125, allocations: 2.412 MB / 388.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01753/0.3301, allocations: 14.14 MB / 402.5 MB, free: 6.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04256/0.3727, allocations: 25.76 MB / 428.3 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01405/0.3868, allocations: 7.227 MB / 435.5 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01227/0.3991, allocations: 8.027 MB / 443.6 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006115/0.4052, allocations: 2.035 MB / 445.6 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007546/0.4128, allocations: 2.441 MB / 448 MB, free: 8.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00616/0.419, allocations: 4.091 MB / 452.1 MB, free: 4.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3284/0.7475, allocations: 7.89 MB / 460 MB, free: 40.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02143/0.769, allocations: 26.83 MB / 486.8 MB, free: 35.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.769, allocations: 0 / 486.8 MB, free: 35.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.769, allocations: 6 kB / 486.8 MB, free: 35.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006117/0.7696, allocations: 0 / 486.8 MB, free: 35.16 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.04669/0.8163, allocations: 16.06 MB / 0.4911 GB, free: 27.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.8164, allocations: 7.406 kB / 0.4911 GB, free: 27.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0399/0.8563, allocations: 7.363 MB / 0.4983 GB, free: 23.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01499/0.8713, allocations: 7.735 MB / 0.5059 GB, free: 17.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00057/0.8719, allocations: 0.9234 MB / 0.5068 GB, free: 16.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00478/0.8767, allocations: 1.206 MB / 0.5079 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04128/0.918, allocations: 19.23 MB / 0.5267 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003088/0.9183, allocations: 23.45 kB / 0.5267 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002286/0.9206, allocations: 0.5011 MB / 0.5272 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006376/0.9213, allocations: 0.6776 MB / 0.5279 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03571/0.957, allocations: 17.67 MB / 0.5452 GB, free: 9.332 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1139/1.071, allocations: 63.86 MB / 0.6075 GB, free: 8.961 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2085/1.279, allocations: 38.67 MB / 0.6453 GB, free: 134.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006707/1.286, allocations: 4.197 MB / 0.6494 GB, free: 134.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01986/1.306, allocations: 12.23 MB / 0.6613 GB, free: 130.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.437e-05/1.306, allocations: 80.86 kB / 0.6614 GB, free: 130.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=402): time 5.09e-06/1.306, allocations: 0 / 0.6614 GB, free: 130.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=412): time 0.03652/1.343, allocations: 20.06 MB / 0.681 GB, free: 121.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/1.343, allocations: 122 kB / 0.6811 GB, free: 121.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007656/1.35, allocations: 5.308 MB / 0.6863 GB, free: 119.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004329/1.351, allocations: 92.58 kB / 0.6864 GB, free: 119.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/1.353, allocations: 5.493 MB / 0.6917 GB, free: 115 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.354, allocations: 1.432 MB / 0.6931 GB, free: 113.7 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002039/1.356, allocations: 1.309 MB / 0.6944 GB, free: 112.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.332e-05/1.356, allocations: 309.1 kB / 0.6947 GB, free: 112.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003945/1.36, allocations: 2.902 MB / 0.6976 GB, free: 109.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004902/1.365, allocations: 5.644 MB / 0.7031 GB, free: 103.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008923/1.374, allocations: 9.112 MB / 0.712 GB, free: 93.67 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.909e-05/1.374, allocations: 24 kB / 0.712 GB, free: 93.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01467/1.389, allocations: 9.992 MB / 0.7217 GB, free: 84.22 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.277e-05/1.389, allocations: 44 kB / 0.7218 GB, free: 84.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/1.389, allocations: 88 kB / 0.7219 GB, free: 84.09 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002758/1.392, allocations: 1.142 MB / 0.723 GB, free: 82.94 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004979/1.397, allocations: 1.529 MB / 0.7245 GB, free: 81.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01282/1.41, allocations: 13.48 MB / 0.7376 GB, free: 67.36 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005357/1.415, allocations: 367.5 kB / 0.738 GB, free: 67 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001031/1.416, allocations: 343.9 kB / 0.7383 GB, free: 66.67 MB / 478.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 (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.006678/1.423, allocations: 4.298 MB / 0.7425 GB, free: 62.36 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001399/1.424, allocations: 0.5364 MB / 0.743 GB, free: 61.81 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/1.436, allocations: 7.112 MB / 0.75 GB, free: 54.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005809/1.441, allocations: 4.226 MB / 0.7541 GB, free: 50.32 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.064e-05/1.441, allocations: 16 kB / 0.7541 GB, free: 50.31 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-05/1.441, allocations: 19.92 kB / 0.7542 GB, free: 50.29 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02735/1.469, allocations: 17.06 MB / 0.7708 GB, free: 33.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/1.469, allocations: 4.594 kB / 0.7708 GB, free: 33.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002742/1.472, allocations: 0.6865 MB / 0.7715 GB, free: 32.42 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002979/1.475, allocations: 1.205 MB / 0.7727 GB, free: 31.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003123/1.475, allocations: 99.97 kB / 0.7728 GB, free: 31.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01502/1.49, allocations: 17.38 MB / 0.7897 GB, free: 12.92 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.49, allocations: 8 kB / 0.7897 GB, free: 12.91 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01339/1.503, allocations: 10.27 MB / 0.7998 GB, free: 2.461 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002256/1.506, allocations: 1.127 MB / 0.8009 GB, free: 1.309 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001178/1.507, allocations: 87.94 kB / 0.801 GB, free: 1.223 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002911/1.51, allocations: 211.8 kB / 0.8012 GB, free: 1.016 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005796/1.51, allocations: 299.4 kB / 0.8014 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002544/1.511, allocations: 128 kB / 0.8016 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.16/1.671, allocations: 3.545 MB / 0.805 GB, free: 152.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.11e-07/1.671, allocations: 1.438 kB / 0.805 GB, free: 152.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008533/1.679, allocations: 1.991 MB / 0.807 GB, free: 152.9 MB / 478.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 (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.0009094/1.68, allocations: 278.4 kB / 0.8072 GB, free: 152.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02119/1.701, allocations: 10.98 MB / 0.818 GB, free: 151.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/1.701, allocations: 0 / 0.818 GB, free: 151.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00578/1.707, allocations: 4.072 MB / 0.8219 GB, free: 150.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006317/1.714, allocations: 1.45 MB / 0.8234 GB, free: 150.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02937/1.743, allocations: 20.92 MB / 0.8438 GB, free: 139.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00682/1.75, allocations: 7.446 MB / 0.8511 GB, free: 133.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005944/1.756, allocations: 2.077 MB / 0.8531 GB, free: 132.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009991/1.757, allocations: 414 kB / 0.8535 GB, free: 132.1 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/1.757, allocations: 3.938 kB / 0.8535 GB, free: 132.1 MB / 478.1 MB Notification: Performance of Templates: time 0.1207/1.877, allocations: 85.67 MB / 0.9371 GB, free: 50.84 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)