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_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.1_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.1_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.007851/0.00785, allocations: 103.2 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.001534/0.001534, allocations: 189.2 kB / 16.67 MB, free: 5.93 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.436/1.436, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.00133/0.00133, allocations: 51.92 kB / 326.6 MB, free: 3.242 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08604/0.08738, allocations: 46.62 MB / 373.2 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2426/0.33, allocations: 41.74 MB / 415 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02894/0.359, allocations: 11.09 MB / 426 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01051/0.3695, allocations: 272.7 kB / 426.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02314/0.3928, allocations: 8.878 MB / 435.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0144/0.4072, allocations: 3.872 MB / 439.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008837/0.416, allocations: 2.473 MB / 441.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02155/0.4376, allocations: 13.89 MB / 455.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03848/0.4761, allocations: 25.79 MB / 481.2 MB, free: 3.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01428/0.4904, allocations: 7.238 MB / 488.4 MB, free: 12.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01363/0.5041, allocations: 8.237 MB / 496.7 MB, free: 3.754 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007423/0.5116, allocations: 2.031 MB / 498.7 MB, free: 1.723 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008591/0.5202, allocations: 2.425 MB / 0.4894 GB, free: 15.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007457/0.5277, allocations: 4.232 MB / 0.4935 GB, free: 11.05 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02048/0.5482, allocations: 8.042 MB / 0.5014 GB, free: 2.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03814/0.5864, allocations: 27 MB / 0.5277 GB, free: 7.902 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.5864, allocations: 3.938 kB / 0.5277 GB, free: 7.898 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5864, allocations: 4 kB / 0.5278 GB, free: 7.895 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007774/0.5872, allocations: 0 / 0.5278 GB, free: 7.895 MB / 462.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.04878/0.636, allocations: 16.02 MB / 0.5434 GB, free: 7.754 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.6361, allocations: 11.97 kB / 0.5434 GB, free: 7.742 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.42/1.056, allocations: 9.182 MB / 0.5524 GB, free: 135.4 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01739/1.074, allocations: 7.712 MB / 0.5599 GB, free: 132.6 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00141/1.075, allocations: 0.9686 MB / 0.5609 GB, free: 132.2 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005378/1.08, allocations: 1.273 MB / 0.5621 GB, free: 131.8 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05445/1.135, allocations: 20.52 MB / 0.5821 GB, free: 123.7 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000617/1.136, allocations: 22.94 kB / 0.5822 GB, free: 123.7 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003819/1.139, allocations: 0.5327 MB / 0.5827 GB, free: 123.3 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006948/1.14, allocations: 0.747 MB / 0.5834 GB, free: 123.2 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04063/1.181, allocations: 19.25 MB / 0.6022 GB, free: 106.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.106/1.287, allocations: 64.32 MB / 0.665 GB, free: 40.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03546/1.322, allocations: 57.27 MB / 0.7209 GB, free: 8.77 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009546/1.332, allocations: 4.173 MB / 0.725 GB, free: 4.578 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02544/1.357, allocations: 11.63 MB / 0.7364 GB, free: 8.941 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.888e-05/1.358, allocations: 77.39 kB / 0.7365 GB, free: 8.855 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 5.982e-06/1.358, allocations: 3.938 kB / 0.7365 GB, free: 8.852 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.2676/1.625, allocations: 17.85 MB / 0.7539 GB, free: 166.3 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/1.625, allocations: 97.5 kB / 0.754 GB, free: 166.3 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01455/1.64, allocations: 5.69 MB / 0.7595 GB, free: 164.2 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007389/1.641, allocations: 88.67 kB / 0.7596 GB, free: 164.1 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004076/1.645, allocations: 6.055 MB / 0.7655 GB, free: 159.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001552/1.646, allocations: 1.421 MB / 0.7669 GB, free: 158.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003632/1.65, allocations: 1.54 MB / 0.7684 GB, free: 157.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.767e-05/1.65, allocations: 309.5 kB / 0.7687 GB, free: 157.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00535/1.655, allocations: 3.141 MB / 0.7718 GB, free: 156.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006548/1.662, allocations: 6.895 MB / 0.7785 GB, free: 150.1 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01057/1.673, allocations: 10.81 MB / 0.7891 GB, free: 141.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001702/1.673, allocations: 38.38 kB / 0.7891 GB, free: 141.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01949/1.692, allocations: 11.03 MB / 0.7999 GB, free: 137.2 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.000205/1.692, allocations: 62.77 kB / 0.7999 GB, free: 137.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002729/1.693, allocations: 128 kB / 0.8001 GB, free: 137.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0026/1.695, allocations: 0.9784 MB / 0.801 GB, free: 137 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006212/1.702, allocations: 1.857 MB / 0.8028 GB, free: 136.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/1.712, allocations: 10.24 MB / 0.8128 GB, free: 128.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007193/1.719, allocations: 450.8 kB / 0.8133 GB, free: 128.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001341/1.72, allocations: 426.8 kB / 0.8137 GB, free: 127.8 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009785/1.73, allocations: 4.518 MB / 0.8181 GB, free: 123.9 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002641/1.733, allocations: 0.5756 MB / 0.8187 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01304/1.746, allocations: 6.701 MB / 0.8252 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.58e-05/1.746, allocations: 40 kB / 0.8252 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.03e-05/1.746, allocations: 8 kB / 0.8252 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.759e-05/1.746, allocations: 21.89 kB / 0.8253 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03331/1.779, allocations: 16.47 MB / 0.8413 GB, free: 101.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/1.779, allocations: 4 kB / 0.8414 GB, free: 101.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003205/1.783, allocations: 0.7806 MB / 0.8421 GB, free: 101.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002075/1.785, allocations: 0.7923 MB / 0.8429 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005247/1.785, allocations: 87.98 kB / 0.843 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008703/1.794, allocations: 9.338 MB / 0.8521 GB, free: 90.51 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/1.794, allocations: 15.88 kB / 0.8521 GB, free: 90.49 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01625/1.81, allocations: 9.83 MB / 0.8617 GB, free: 80.54 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003632/1.814, allocations: 1.115 MB / 0.8628 GB, free: 79.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001763/1.816, allocations: 72 kB / 0.8629 GB, free: 79.33 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003411/1.819, allocations: 239.5 kB / 0.8631 GB, free: 79.1 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007306/1.82, allocations: 274.8 kB / 0.8634 GB, free: 78.83 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004135/1.82, allocations: 116 kB / 0.8635 GB, free: 78.72 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006584/1.827, allocations: 3.75 MB / 0.8671 GB, free: 75 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.71e-07/1.827, allocations: 0 / 0.8671 GB, free: 75 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008543/1.835, allocations: 2.044 MB / 0.8691 GB, free: 72.96 MB / 0.5138 GB 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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007226/1.836, allocations: 270.1 kB / 0.8694 GB, free: 72.7 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0117/1.848, allocations: 8.243 MB / 0.8774 GB, free: 64.39 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/1.848, allocations: 4 kB / 0.8774 GB, free: 64.39 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004599/1.853, allocations: 3.614 MB / 0.881 GB, free: 60.7 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006913/1.86, allocations: 1.428 MB / 0.8824 GB, free: 59.29 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04039/1.9, allocations: 21.26 MB / 0.9031 GB, free: 38 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01031/1.91, allocations: 7.692 MB / 0.9106 GB, free: 30.26 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007021/1.917, allocations: 2.401 MB / 0.913 GB, free: 27.86 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001791/1.919, allocations: 455.3 kB / 0.9134 GB, free: 27.41 MB / 0.5138 GB Notification: Performance of SimCode: time 7.72e-07/1.919, allocations: 0 / 0.9134 GB, free: 27.41 MB / 0.5138 GB Notification: Performance of Templates: time 0.3446/2.264, allocations: 77.44 MB / 0.989 GB, free: 128.1 MB / 0.5138 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)