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.007881/0.007881, allocations: 103.9 kB / 15.74 MB, free: 5.953 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.001474/0.001474, allocations: 188.9 kB / 16.67 MB, free: 5.883 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.532/1.532, allocations: 205.1 MB / 222.6 MB, free: 4.355 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.001183/0.001183, allocations: 53.94 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09473/0.09593, allocations: 46.63 MB / 373.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03799/0.134, allocations: 37.33 MB / 410.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02278/0.1568, allocations: 10.03 MB / 420.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006672/0.1635, allocations: 235.2 kB / 420.8 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02277/0.1864, allocations: 9.181 MB / 430 MB, free: 8.254 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01652/0.2029, allocations: 4.052 MB / 434 MB, free: 4.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007912/0.2108, allocations: 2.428 MB / 436.5 MB, free: 1.746 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02148/0.2323, allocations: 14.23 MB / 450.7 MB, free: 3.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2819/0.5143, allocations: 25.59 MB / 476.3 MB, free: 4.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01105/0.5254, allocations: 7.284 MB / 483.6 MB, free: 3.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0111/0.5365, allocations: 7.998 MB / 491.6 MB, free: 480 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004739/0.5413, allocations: 2.037 MB / 493.6 MB, free: 480 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006908/0.5482, allocations: 2.438 MB / 496 MB, free: 380 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00664/0.5549, allocations: 4.117 MB / 0.4884 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01432/0.5692, allocations: 7.898 MB / 0.4961 GB, free: 6.035 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03516/0.6044, allocations: 27 MB / 0.5225 GB, free: 14.28 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.6045, allocations: 0 / 0.5225 GB, free: 14.28 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6045, allocations: 0 / 0.5225 GB, free: 14.28 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000755/0.6052, allocations: 0 / 0.5225 GB, free: 14.28 MB / 430.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.04727/0.6525, allocations: 16.01 MB / 0.5381 GB, free: 14.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.6526, allocations: 8.031 kB / 0.5382 GB, free: 14.26 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04181/0.6944, allocations: 7.392 MB / 0.5454 GB, free: 6.938 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01874/0.7132, allocations: 7.771 MB / 0.553 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001037/0.7142, allocations: 0.9135 MB / 0.5539 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004784/0.719, allocations: 1.207 MB / 0.555 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05386/0.7729, allocations: 19.22 MB / 0.5738 GB, free: 10.1 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006752/0.7737, allocations: 23.8 kB / 0.5738 GB, free: 10.08 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003772/0.7774, allocations: 0.5036 MB / 0.5743 GB, free: 9.59 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008745/0.7783, allocations: 0.6814 MB / 0.575 GB, free: 8.906 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04015/0.8185, allocations: 17.69 MB / 0.5923 GB, free: 7.215 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5346/1.353, allocations: 63.1 MB / 0.6539 GB, free: 142.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02477/1.378, allocations: 38.68 MB / 0.6917 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006731/1.385, allocations: 4.172 MB / 0.6957 GB, free: 109.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01837/1.403, allocations: 12.2 MB / 0.7076 GB, free: 103.8 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/1.403, allocations: 73.36 kB / 0.7077 GB, free: 103.7 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=402): time 5.741e-06/1.403, allocations: 3.969 kB / 0.7077 GB, free: 103.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=412): time 0.03642/1.44, allocations: 20.05 MB / 0.7273 GB, free: 92.49 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/1.44, allocations: 125 kB / 0.7274 GB, free: 92.39 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006809/1.447, allocations: 5.307 MB / 0.7326 GB, free: 89.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006633/1.447, allocations: 93.83 kB / 0.7327 GB, free: 89.52 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0026/1.45, allocations: 5.487 MB / 0.738 GB, free: 84.73 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001047/1.451, allocations: 1.44 MB / 0.7394 GB, free: 83.49 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001714/1.453, allocations: 1.302 MB / 0.7407 GB, free: 82.74 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.886e-05/1.453, allocations: 313 kB / 0.741 GB, free: 82.44 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003604/1.456, allocations: 2.903 MB / 0.7439 GB, free: 79.8 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004321/1.461, allocations: 5.64 MB / 0.7494 GB, free: 72.89 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008249/1.469, allocations: 9.118 MB / 0.7583 GB, free: 62.47 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.473e-05/1.469, allocations: 24 kB / 0.7583 GB, free: 62.45 MB / 0.5138 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01332/1.482, allocations: 9.997 MB / 0.7681 GB, free: 52.38 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.466e-05/1.482, allocations: 44 kB / 0.7681 GB, free: 52.34 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/1.483, allocations: 88.66 kB / 0.7682 GB, free: 52.25 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002642/1.485, allocations: 1.13 MB / 0.7693 GB, free: 51.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004821/1.49, allocations: 1.525 MB / 0.7708 GB, free: 49.57 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/1.503, allocations: 13.47 MB / 0.7839 GB, free: 35.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006467/1.509, allocations: 371.4 kB / 0.7843 GB, free: 35.18 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008641/1.51, allocations: 347.4 kB / 0.7846 GB, free: 34.85 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.007194/1.517, allocations: 4.294 MB / 0.7888 GB, free: 30.54 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001574/1.519, allocations: 0.5442 MB / 0.7893 GB, free: 29.99 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/1.529, allocations: 7.097 MB / 0.7963 GB, free: 22.79 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005492/1.535, allocations: 4.226 MB / 0.8004 GB, free: 18.51 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.543e-05/1.535, allocations: 16 kB / 0.8004 GB, free: 18.5 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.675e-05/1.535, allocations: 19.92 kB / 0.8004 GB, free: 18.48 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02445/1.559, allocations: 17.04 MB / 0.8171 GB, free: 1.316 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.695e-05/1.56, allocations: 4 kB / 0.8171 GB, free: 1.312 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002719/1.562, allocations: 0.6793 MB / 0.8177 GB, free: 0.6328 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003125/1.565, allocations: 1.186 MB / 0.8189 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003634/1.566, allocations: 99.91 kB / 0.819 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2627/1.828, allocations: 17.38 MB / 0.836 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/1.828, allocations: 7.5 kB / 0.836 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01747/1.846, allocations: 10.28 MB / 0.846 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002997/1.849, allocations: 1.126 MB / 0.8471 GB, free: 165.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001421/1.85, allocations: 84.98 kB / 0.8472 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003322/1.854, allocations: 208.2 kB / 0.8474 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008299/1.855, allocations: 301.1 kB / 0.8477 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000291/1.855, allocations: 126.6 kB / 0.8478 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.007133/1.862, allocations: 3.55 MB / 0.8513 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.22e-07/1.862, allocations: 3.938 kB / 0.8513 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00819/1.87, allocations: 1.991 MB / 0.8532 GB, free: 164.1 MB / 0.5294 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.0007567/1.871, allocations: 280.9 kB / 0.8535 GB, free: 164 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01093/1.882, allocations: 7.829 MB / 0.8611 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.405e-06/1.882, allocations: 3.938 kB / 0.8611 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005796/1.888, allocations: 4.068 MB / 0.8651 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006638/1.895, allocations: 1.457 MB / 0.8665 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0392/1.934, allocations: 20.66 MB / 0.8867 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01102/1.945, allocations: 7.452 MB / 0.894 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00543/1.95, allocations: 2.075 MB / 0.896 GB, free: 143 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/1.951, allocations: 410.5 kB / 0.8964 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of SimCode: time 8.82e-07/1.951, allocations: 0 / 0.8964 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1232/2.075, allocations: 80.94 MB / 0.9754 GB, free: 64.06 MB / 0.5294 GB 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)