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_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 94.31 kB / 16.3 MB, free: 5.996 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.001412/0.001412, allocations: 183.5 kB / 17.2 MB, free: 5.914 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.286/1.286, allocations: 205.4 MB / 223.4 MB, free: 13.17 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.0004422/0.0004422, allocations: 8 kB / 280.1 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07935/0.0798, allocations: 47.58 MB / 327.7 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03346/0.1133, allocations: 33.45 MB / 361.2 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01991/0.1332, allocations: 10.69 MB / 371.9 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005511/0.1388, allocations: 251.1 kB / 372.1 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006743/0.1456, allocations: 2.223 MB / 374.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.1574, allocations: 3.837 MB / 378.2 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1526/0.3101, allocations: 1.845 MB / 380 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01648/0.3266, allocations: 10.63 MB / 390.6 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03384/0.3605, allocations: 20.1 MB / 410.7 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008249/0.3688, allocations: 4.785 MB / 415.5 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008624/0.3774, allocations: 5.545 MB / 421.1 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002735/0.3802, allocations: 0.7852 MB / 421.9 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005139/0.3854, allocations: 1.096 MB / 423 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003343/0.3887, allocations: 2.589 MB / 425.5 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004731/0.3935, allocations: 2.675 MB / 428.2 MB, free: 408 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0245/0.418, allocations: 22.47 MB / 450.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/0.4181, allocations: 0 / 450.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.579e-06/0.4181, allocations: 3.75 kB / 450.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00101/0.4191, allocations: 0 / 450.7 MB, free: 13.13 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.03469/0.4538, allocations: 13.28 MB / 464 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.4539, allocations: 8.031 kB / 464 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05077/0.5047, allocations: 9.112 MB / 473.1 MB, free: 7.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01763/0.5223, allocations: 7.593 MB / 480.7 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009772/0.5234, allocations: 0.9782 MB / 481.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005467/0.5288, allocations: 1.272 MB / 482.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04902/0.5779, allocations: 20.31 MB / 0.4915 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004701/0.5784, allocations: 23.08 kB / 0.4915 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003525/0.5819, allocations: 0.529 MB / 0.492 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008193/0.5827, allocations: 0.7455 MB / 0.4927 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03989/0.6226, allocations: 19.13 MB / 0.5114 GB, free: 5.605 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3964/1.019, allocations: 65.1 MB / 0.575 GB, free: 88.71 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02952/1.049, allocations: 57.21 MB / 0.6309 GB, free: 30.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0202/1.069, allocations: 11.76 MB / 0.6423 GB, free: 23.04 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.813e-05/1.069, allocations: 76.89 kB / 0.6424 GB, free: 22.96 MB / 430.1 MB Notification: Performance of pre-optimization done (n=371): time 5.169e-06/1.069, allocations: 4 kB / 0.6424 GB, free: 22.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=413): time 0.03077/1.1, allocations: 18.03 MB / 0.66 GB, free: 10 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/1.1, allocations: 98.61 kB / 0.6601 GB, free: 9.891 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006364/1.106, allocations: 5.528 MB / 0.6655 GB, free: 4.387 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004777/1.107, allocations: 89.7 kB / 0.6656 GB, free: 4.293 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002795/1.11, allocations: 6.052 MB / 0.6715 GB, free: 14.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001461/1.111, allocations: 1.448 MB / 0.6729 GB, free: 12.78 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003893/1.111, allocations: 160 kB / 0.6731 GB, free: 12.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004058/1.112, allocations: 0.6209 MB / 0.6737 GB, free: 12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004729/1.117, allocations: 3.142 MB / 0.6768 GB, free: 8.852 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007026/1.124, allocations: 6.84 MB / 0.6834 GB, free: 232 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007084/1.131, allocations: 4.672 MB / 0.688 GB, free: 11.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-05/1.131, allocations: 43.98 kB / 0.688 GB, free: 11.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.01928/1.15, allocations: 11.01 MB / 0.6988 GB, free: 428 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.274e-05/1.15, allocations: 56 kB / 0.6988 GB, free: 372 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001663/1.15, allocations: 128 kB / 0.699 GB, free: 244 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/1.153, allocations: 0.9884 MB / 0.6999 GB, free: 15.23 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006616/1.16, allocations: 1.868 MB / 0.7018 GB, free: 13.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/1.171, allocations: 9.735 MB / 0.7113 GB, free: 3.227 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005632/1.177, allocations: 455.3 kB / 0.7117 GB, free: 2.781 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009513/1.178, allocations: 429.6 kB / 0.7121 GB, free: 2.363 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * 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 (965): * Single equations (assignments): 960 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.1794/1.357, allocations: 4.505 MB / 0.7165 GB, free: 156.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00169/1.359, allocations: 0.5732 MB / 0.7171 GB, free: 156.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01246/1.371, allocations: 6.781 MB / 0.7237 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.486e-05/1.372, allocations: 42.03 kB / 0.7237 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.322e-05/1.372, allocations: 8.812 kB / 0.7237 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.469e-05/1.372, allocations: 23.28 kB / 0.7238 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02891/1.401, allocations: 16.58 MB / 0.74 GB, free: 149.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/1.401, allocations: 3.938 kB / 0.74 GB, free: 149.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003381/1.404, allocations: 0.793 MB / 0.7407 GB, free: 149.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002065/1.406, allocations: 0.7905 MB / 0.7415 GB, free: 149.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003602/1.406, allocations: 90.64 kB / 0.7416 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008796/1.415, allocations: 8.849 MB / 0.7502 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/1.415, allocations: 8.531 kB / 0.7502 GB, free: 143.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01324/1.429, allocations: 10.48 MB / 0.7605 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003667/1.432, allocations: 1.141 MB / 0.7616 GB, free: 138.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001919/1.434, allocations: 78.44 kB / 0.7617 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003206/1.437, allocations: 230.2 kB / 0.7619 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000539/1.438, allocations: 283.7 kB / 0.7622 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002412/1.438, allocations: 118.1 kB / 0.7623 GB, free: 137.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006009/1.444, allocations: 3.618 MB / 0.7658 GB, free: 135.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.444, allocations: 0 / 0.7658 GB, free: 135.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008344/1.453, allocations: 2.048 MB / 0.7678 GB, free: 133.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (394): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008348/1.453, allocations: 257.1 kB / 0.768 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01127/1.465, allocations: 8.26 MB / 0.7761 GB, free: 125.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/1.465, allocations: 0 / 0.7761 GB, free: 125.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005111/1.47, allocations: 3.659 MB / 0.7797 GB, free: 121.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006109/1.476, allocations: 1.288 MB / 0.7809 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03374/1.51, allocations: 25.47 MB / 0.8058 GB, free: 94.62 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007706/1.518, allocations: 7.907 MB / 0.8135 GB, free: 86.68 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006706/1.524, allocations: 2.401 MB / 0.8159 GB, free: 84.27 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001282/1.526, allocations: 451.3 kB / 0.8163 GB, free: 83.83 MB / 478.1 MB Notification: Performance of SimCode: time 1.162e-06/1.526, allocations: 4 kB / 0.8163 GB, free: 83.82 MB / 478.1 MB Notification: Performance of Templates: time 0.2873/1.813, allocations: 75.77 MB / 0.8903 GB, free: 143.2 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) Environment - environmentSimulation: