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.0009004/0.0009004, allocations: 88.52 kB / 16.31 MB, free: 5.516 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.001019/0.001019, allocations: 182.1 kB / 17.21 MB, free: 5.453 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.33/1.33, allocations: 205.4 MB / 223.4 MB, free: 13.13 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.0004785/0.0004785, allocations: 8 kB / 280.2 MB, free: 3.707 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08495/0.08544, allocations: 47.58 MB / 327.7 MB, free: 4.051 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03449/0.12, allocations: 32.69 MB / 360.4 MB, free: 3.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01958/0.1396, allocations: 9.287 MB / 369.7 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005925/0.1456, allocations: 219.2 kB / 369.9 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006233/0.1518, allocations: 1.845 MB / 371.8 MB, free: 7.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01077/0.1626, allocations: 3.273 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006295/0.1689, allocations: 1.527 MB / 376.6 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.193/0.362, allocations: 15.65 MB / 392.2 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03755/0.3996, allocations: 20.39 MB / 412.6 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009992/0.4096, allocations: 5.238 MB / 417.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01022/0.4199, allocations: 5.968 MB / 423.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002992/0.4229, allocations: 0.7969 MB / 424.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005853/0.4288, allocations: 1.159 MB / 425.8 MB, free: 288 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004223/0.433, allocations: 2.562 MB / 428.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007251/0.4403, allocations: 2.649 MB / 431 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02671/0.467, allocations: 22.67 MB / 453.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.4671, allocations: 0 / 453.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4671, allocations: 0 / 453.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0008456/0.468, allocations: 0 / 453.7 MB, free: 8.582 MB / 350.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.03959/0.5076, allocations: 13.49 MB / 467.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.5076, allocations: 12.02 kB / 467.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04024/0.5479, allocations: 7.385 MB / 474.5 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0162/0.5641, allocations: 7.585 MB / 482.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001176/0.5653, allocations: 0.9142 MB / 483 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004262/0.5696, allocations: 1.212 MB / 484.3 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04882/0.6185, allocations: 19.16 MB / 0.4916 GB, free: 6.941 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005377/0.619, allocations: 19.75 kB / 0.4916 GB, free: 6.922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003374/0.6224, allocations: 0.5067 MB / 0.4921 GB, free: 6.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007273/0.6231, allocations: 0.6815 MB / 0.4928 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03929/0.6624, allocations: 17.61 MB / 0.51 GB, free: 4.121 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4254/1.088, allocations: 64.04 MB / 0.5725 GB, free: 91.78 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02559/1.113, allocations: 38.64 MB / 0.6103 GB, free: 54.1 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00617/1.12, allocations: 4.258 MB / 0.6144 GB, free: 51.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01851/1.138, allocations: 12.35 MB / 0.6265 GB, free: 43.62 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/1.138, allocations: 81.59 kB / 0.6266 GB, free: 43.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=408): time 6.522e-06/1.138, allocations: 0 / 0.6266 GB, free: 43.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=418): time 0.04403/1.182, allocations: 21.74 MB / 0.6478 GB, free: 22.15 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/1.182, allocations: 122.7 kB / 0.6479 GB, free: 22.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007902/1.19, allocations: 5.265 MB / 0.6531 GB, free: 16.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005396/1.191, allocations: 93.7 kB / 0.6532 GB, free: 16.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002537/1.193, allocations: 5.483 MB / 0.6585 GB, free: 11.15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001214/1.195, allocations: 1.454 MB / 0.6599 GB, free: 9.711 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006123/1.195, allocations: 140 kB / 0.6601 GB, free: 9.574 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000386/1.196, allocations: 0.5753 MB / 0.6606 GB, free: 8.992 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004256/1.2, allocations: 2.926 MB / 0.6635 GB, free: 6.062 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005299/1.205, allocations: 5.66 MB / 0.669 GB, free: 15.13 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006095/1.211, allocations: 4.172 MB / 0.6731 GB, free: 10.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-05/1.211, allocations: 24 kB / 0.6731 GB, free: 10.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01714/1.229, allocations: 10.03 MB / 0.6829 GB, free: 0.8047 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.418e-05/1.229, allocations: 40.66 kB / 0.6829 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001704/1.229, allocations: 92 kB / 0.683 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003166/1.232, allocations: 1.148 MB / 0.6842 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005656/1.238, allocations: 1.529 MB / 0.6856 GB, free: 13.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01598/1.254, allocations: 12.51 MB / 0.6979 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005295/1.259, allocations: 374.4 kB / 0.6982 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/1.26, allocations: 340 kB / 0.6985 GB, free: 244 kB / 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.1922/1.453, allocations: 4.294 MB / 0.7027 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001345/1.454, allocations: 0.5402 MB / 0.7033 GB, free: 142.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/1.467, allocations: 7.189 MB / 0.7103 GB, free: 140.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006559/1.474, allocations: 4.286 MB / 0.7145 GB, free: 138.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.123e-05/1.474, allocations: 17.86 kB / 0.7145 GB, free: 138.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.433e-05/1.474, allocations: 22.3 kB / 0.7145 GB, free: 138.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02859/1.503, allocations: 17.16 MB / 0.7313 GB, free: 131.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.952e-05/1.503, allocations: 9.594 kB / 0.7313 GB, free: 131.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00308/1.506, allocations: 0.6897 MB / 0.7319 GB, free: 131.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002852/1.509, allocations: 1.183 MB / 0.7331 GB, free: 130.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004898/1.509, allocations: 101.5 kB / 0.7332 GB, free: 130.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01441/1.524, allocations: 16 MB / 0.7488 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/1.524, allocations: 11.44 kB / 0.7488 GB, free: 118.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01422/1.538, allocations: 10.41 MB / 0.759 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002569/1.54, allocations: 1.145 MB / 0.7601 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001151/1.542, allocations: 87.98 kB / 0.7602 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002695/1.544, allocations: 221.8 kB / 0.7604 GB, free: 110.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005691/1.545, allocations: 306.2 kB / 0.7607 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002556/1.545, allocations: 127.9 kB / 0.7608 GB, free: 109.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004988/1.55, allocations: 3.507 MB / 0.7643 GB, free: 106.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.55, allocations: 0 / 0.7643 GB, free: 106.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00761/1.558, allocations: 1.996 MB / 0.7662 GB, free: 104.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,52.0%) 46,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008092/1.559, allocations: 276.6 kB / 0.7665 GB, free: 104.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01083/1.569, allocations: 7.874 MB / 0.7742 GB, free: 96.22 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/1.57, allocations: 7.938 kB / 0.7742 GB, free: 96.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005803/1.575, allocations: 4.148 MB / 0.7782 GB, free: 92 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006662/1.582, allocations: 1.375 MB / 0.7796 GB, free: 90.63 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03524/1.617, allocations: 25.06 MB / 0.804 GB, free: 65.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007034/1.624, allocations: 7.45 MB / 0.8113 GB, free: 58 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006597/1.631, allocations: 2.088 MB / 0.8133 GB, free: 55.91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001628/1.633, allocations: 411.4 kB / 0.8137 GB, free: 55.5 MB / 462.1 MB Notification: Performance of SimCode: time 2.995e-06/1.633, allocations: 0 / 0.8137 GB, free: 55.5 MB / 462.1 MB Notification: Performance of Templates: time 0.3184/1.951, allocations: 80.27 MB / 0.8921 GB, free: 105.6 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)