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.008449/0.008449, allocations: 97.94 kB / 15.73 MB, free: 6.004 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.0016/0.0016, allocations: 192.4 kB / 16.67 MB, free: 5.934 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.551/1.551, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001152/0.001152, allocations: 41.34 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09539/0.09655, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04059/0.1372, allocations: 37.34 MB / 410.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02182/0.1591, allocations: 10.02 MB / 420.6 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006674/0.1658, allocations: 235.2 kB / 420.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02487/0.1907, allocations: 9.181 MB / 430 MB, free: 8.312 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01591/0.2066, allocations: 4.063 MB / 434 MB, free: 4.227 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008197/0.2149, allocations: 2.425 MB / 436.5 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02152/0.2364, allocations: 14.24 MB / 450.7 MB, free: 3.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3085/0.5449, allocations: 25.58 MB / 476.3 MB, free: 4.527 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01302/0.558, allocations: 7.285 MB / 483.6 MB, free: 4.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01476/0.5728, allocations: 7.993 MB / 491.6 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005862/0.5787, allocations: 2.04 MB / 493.6 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008687/0.5874, allocations: 2.431 MB / 496 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01464/0.6021, allocations: 4.831 MB / 0.4891 GB, free: 0 / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01679/0.619, allocations: 7.919 MB / 0.4969 GB, free: 8.648 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03509/0.6541, allocations: 27.05 MB / 0.5233 GB, free: 76 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.697e-06/0.6541, allocations: 4 kB / 0.5233 GB, free: 72 kB / 414.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6542, allocations: 0 / 0.5233 GB, free: 72 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0009053/0.6551, allocations: 0 / 0.5233 GB, free: 72 kB / 414.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.05069/0.7058, allocations: 16.31 MB / 0.5392 GB, free: 15.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.7058, allocations: 12.03 kB / 0.5392 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04177/0.7476, allocations: 7.471 MB / 0.5465 GB, free: 8.336 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01809/0.7657, allocations: 7.789 MB / 0.5541 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00103/0.7668, allocations: 0.9116 MB / 0.555 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004108/0.7709, allocations: 1.212 MB / 0.5562 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04908/0.82, allocations: 19.23 MB / 0.575 GB, free: 11.48 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004981/0.8206, allocations: 15.89 kB / 0.575 GB, free: 11.46 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003578/0.8242, allocations: 0.5007 MB / 0.5755 GB, free: 10.98 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007732/0.825, allocations: 0.6889 MB / 0.5761 GB, free: 10.29 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03511/0.8601, allocations: 17.68 MB / 0.5934 GB, free: 8.605 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5289/1.389, allocations: 63.28 MB / 0.6552 GB, free: 143 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02929/1.418, allocations: 38.67 MB / 0.693 GB, free: 110.7 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006867/1.425, allocations: 4.175 MB / 0.697 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02177/1.447, allocations: 12.22 MB / 0.709 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.617e-05/1.447, allocations: 76.58 kB / 0.7091 GB, free: 104.3 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=402): time 5.34e-06/1.447, allocations: 3.969 kB / 0.7091 GB, free: 104.3 MB / 0.5138 GB Notification: Performance of matching and sorting (n=412): time 0.04235/1.49, allocations: 20.33 MB / 0.7289 GB, free: 93.09 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/1.49, allocations: 123.4 kB / 0.729 GB, free: 92.98 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008583/1.498, allocations: 5.311 MB / 0.7342 GB, free: 90.25 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001024/1.499, allocations: 98.3 kB / 0.7343 GB, free: 90.16 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003308/1.503, allocations: 5.678 MB / 0.7398 GB, free: 85.8 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001594/1.504, allocations: 1.499 MB / 0.7413 GB, free: 84.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001915/1.506, allocations: 1.315 MB / 0.7426 GB, free: 83.75 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.478e-05/1.506, allocations: 305.1 kB / 0.7429 GB, free: 83.45 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003777/1.51, allocations: 2.904 MB / 0.7457 GB, free: 81.38 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004823/1.515, allocations: 5.636 MB / 0.7512 GB, free: 74.47 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008423/1.523, allocations: 9.124 MB / 0.7601 GB, free: 64.04 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.754e-05/1.523, allocations: 24 kB / 0.7602 GB, free: 64.02 MB / 0.5138 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01351/1.537, allocations: 10.01 MB / 0.7699 GB, free: 53.93 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.616e-05/1.537, allocations: 48.12 kB / 0.77 GB, free: 53.89 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001037/1.537, allocations: 88 kB / 0.7701 GB, free: 53.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002651/1.54, allocations: 1.134 MB / 0.7712 GB, free: 52.65 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004772/1.545, allocations: 1.525 MB / 0.7727 GB, free: 51.12 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/1.557, allocations: 13.48 MB / 0.7858 GB, free: 37.09 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005804/1.563, allocations: 367.8 kB / 0.7862 GB, free: 36.73 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001154/1.564, allocations: 340.1 kB / 0.7865 GB, free: 36.39 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.007546/1.572, allocations: 4.298 MB / 0.7907 GB, free: 32.08 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001444/1.573, allocations: 0.5706 MB / 0.7913 GB, free: 31.51 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01054/1.584, allocations: 7.107 MB / 0.7982 GB, free: 24.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005542/1.589, allocations: 4.222 MB / 0.8023 GB, free: 20.03 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.187e-05/1.589, allocations: 16 kB / 0.8023 GB, free: 20.01 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.611e-05/1.59, allocations: 23.86 kB / 0.8024 GB, free: 19.99 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02546/1.615, allocations: 17.04 MB / 0.819 GB, free: 2.828 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.821e-05/1.615, allocations: 8 kB / 0.819 GB, free: 2.82 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002857/1.618, allocations: 0.6827 MB / 0.8197 GB, free: 2.137 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003117/1.621, allocations: 1.182 MB / 0.8208 GB, free: 0.9375 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004294/1.621, allocations: 111.6 kB / 0.8209 GB, free: 0.832 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.265/1.886, allocations: 17.38 MB / 0.8379 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.408e-05/1.887, allocations: 7.984 kB / 0.8379 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02063/1.907, allocations: 10.31 MB / 0.848 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003884/1.911, allocations: 1.15 MB / 0.8491 GB, free: 168.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001476/1.913, allocations: 85.03 kB / 0.8492 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003172/1.916, allocations: 215.4 kB / 0.8494 GB, free: 168 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007785/1.917, allocations: 303.1 kB / 0.8497 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002988/1.917, allocations: 126.1 kB / 0.8498 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006696/1.924, allocations: 3.551 MB / 0.8533 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.1e-07/1.924, allocations: 3.969 kB / 0.8533 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009007/1.933, allocations: 1.991 MB / 0.8552 GB, free: 166.4 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.001129/1.934, allocations: 283.2 kB / 0.8555 GB, free: 166.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01181/1.946, allocations: 7.835 MB / 0.8631 GB, free: 163 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/1.946, allocations: 0 / 0.8631 GB, free: 163 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006374/1.952, allocations: 4.094 MB / 0.8671 GB, free: 161 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007685/1.96, allocations: 1.447 MB / 0.8686 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03567/1.995, allocations: 20.98 MB / 0.889 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009158/2.005, allocations: 7.451 MB / 0.8963 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006202/2.011, allocations: 2.079 MB / 0.8984 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001638/2.013, allocations: 409 kB / 0.8987 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.112e-06/2.013, allocations: 4 kB / 0.8987 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.1294/2.142, allocations: 80.94 MB / 0.9778 GB, free: 65.73 MB / 0.5294 GB 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)