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.0009204/0.0009206, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.005404/0.005404, allocations: 171.9 kB / 16.26 MB, free: 6.676 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.348/1.348, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004258/0.0004259, allocations: 16 kB / 279.5 MB, free: 12.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2153, allocations: 47.57 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03772/0.253, allocations: 39.4 MB / 366.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02492/0.278, allocations: 10.88 MB / 377.3 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009469/0.2875, allocations: 251.1 kB / 377.6 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008035/0.2956, allocations: 2.274 MB / 379.8 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01219/0.3078, allocations: 3.441 MB / 383.3 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006197/0.314, allocations: 2.071 MB / 385.4 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01834/0.3324, allocations: 14.08 MB / 399.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04282/0.3752, allocations: 24.51 MB / 423.9 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008563/0.3838, allocations: 5.082 MB / 429 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01121/0.3951, allocations: 6.398 MB / 435.4 MB, free: 6.488 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003624/0.3987, allocations: 0.793 MB / 436.2 MB, free: 5.695 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007212/0.406, allocations: 1.179 MB / 437.4 MB, free: 4.516 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004771/0.4108, allocations: 2.736 MB / 440.1 MB, free: 1.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01165/0.4225, allocations: 6.395 MB / 446.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3654/0.7879, allocations: 25.33 MB / 471.9 MB, free: 38.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.788, allocations: 0 / 471.9 MB, free: 38.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.788, allocations: 0 / 471.9 MB, free: 38.62 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007013/0.7887, allocations: 0 / 471.9 MB, free: 38.62 MB / 382.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.03317/0.8218, allocations: 13.21 MB / 485.1 MB, free: 31.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.8219, allocations: 21.58 kB / 485.1 MB, free: 31.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04749/0.8694, allocations: 9.206 MB / 494.3 MB, free: 28.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01395/0.8834, allocations: 7.671 MB / 0.4902 GB, free: 26.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006991/0.8841, allocations: 0.9787 MB / 0.4912 GB, free: 26.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004261/0.8884, allocations: 1.281 MB / 0.4924 GB, free: 25.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03947/0.9279, allocations: 20.52 MB / 0.5124 GB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002755/0.9282, allocations: 27.8 kB / 0.5125 GB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001406/0.9296, allocations: 0.5247 MB / 0.513 GB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000493/0.9301, allocations: 0.7455 MB / 0.5137 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03246/0.9625, allocations: 19.25 MB / 0.5325 GB, free: 4.859 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1088/1.071, allocations: 65.25 MB / 0.5962 GB, free: 2.941 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2148/1.286, allocations: 57.25 MB / 0.6521 GB, free: 126.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006456/1.293, allocations: 4.205 MB / 0.6562 GB, free: 126.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01684/1.31, allocations: 11.68 MB / 0.6676 GB, free: 121.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/1.31, allocations: 79.19 kB / 0.6677 GB, free: 121.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=361): time 4.508e-06/1.31, allocations: 0 / 0.6677 GB, free: 121.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=403): time 0.03193/1.342, allocations: 17.89 MB / 0.6852 GB, free: 113.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/1.342, allocations: 90.77 kB / 0.6853 GB, free: 113.4 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006711/1.348, allocations: 5.686 MB / 0.6908 GB, free: 111 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000382/1.349, allocations: 93.7 kB / 0.6909 GB, free: 110.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002515/1.351, allocations: 6.053 MB / 0.6968 GB, free: 105.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/1.352, allocations: 1.414 MB / 0.6982 GB, free: 104.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000657/1.353, allocations: 0.6086 MB / 0.6988 GB, free: 103.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.756e-05/1.353, allocations: 305.1 kB / 0.6991 GB, free: 103.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003808/1.357, allocations: 3.145 MB / 0.7022 GB, free: 100.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004955/1.362, allocations: 6.896 MB / 0.7089 GB, free: 92.72 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009488/1.371, allocations: 10.82 MB / 0.7195 GB, free: 80.82 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.905e-05/1.371, allocations: 36 kB / 0.7195 GB, free: 80.79 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01464/1.386, allocations: 11.05 MB / 0.7303 GB, free: 70.49 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.722e-05/1.386, allocations: 60 kB / 0.7303 GB, free: 70.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001423/1.386, allocations: 128 kB / 0.7305 GB, free: 70.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002198/1.389, allocations: 0.975 MB / 0.7314 GB, free: 69.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005725/1.394, allocations: 1.856 MB / 0.7332 GB, free: 67.46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008887/1.403, allocations: 9.563 MB / 0.7426 GB, free: 57.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00581/1.409, allocations: 447.3 kB / 0.743 GB, free: 57.06 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007773/1.41, allocations: 435.9 kB / 0.7434 GB, free: 56.63 MB / 478.1 MB 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.00651/1.416, allocations: 4.507 MB / 0.7478 GB, free: 52.11 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/1.417, allocations: 0.5828 MB / 0.7484 GB, free: 51.52 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00932/1.427, allocations: 6.695 MB / 0.7549 GB, free: 44.78 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/1.427, allocations: 40 kB / 0.755 GB, free: 44.74 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/1.427, allocations: 8 kB / 0.755 GB, free: 44.73 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.151e-05/1.427, allocations: 31.91 kB / 0.755 GB, free: 44.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02165/1.448, allocations: 16.5 MB / 0.7711 GB, free: 28.17 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/1.449, allocations: 7.984 kB / 0.7711 GB, free: 28.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003042/1.452, allocations: 0.7806 MB / 0.7719 GB, free: 27.38 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001975/1.454, allocations: 0.7884 MB / 0.7727 GB, free: 26.58 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002482/1.454, allocations: 91.97 kB / 0.7727 GB, free: 26.49 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007761/1.462, allocations: 8.67 MB / 0.7812 GB, free: 17.42 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.462, allocations: 11.88 kB / 0.7812 GB, free: 17.41 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01193/1.474, allocations: 9.827 MB / 0.7908 GB, free: 7.461 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002201/1.476, allocations: 1.142 MB / 0.7919 GB, free: 6.293 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000627/1.476, allocations: 76 kB / 0.792 GB, free: 6.219 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/1.479, allocations: 235.7 kB / 0.7922 GB, free: 5.988 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004895/1.479, allocations: 270.8 kB / 0.7925 GB, free: 5.723 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002287/1.479, allocations: 120 kB / 0.7926 GB, free: 5.605 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004748/1.484, allocations: 3.75 MB / 0.7963 GB, free: 1.887 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.02e-07/1.484, allocations: 0 / 0.7963 GB, free: 1.887 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.204/1.688, allocations: 2.041 MB / 0.7983 GB, free: 158.4 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 (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.00117/1.689, allocations: 252.1 kB / 0.7985 GB, free: 158.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01289/1.702, allocations: 8.23 MB / 0.8065 GB, free: 157.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.702, allocations: 3.844 kB / 0.8065 GB, free: 157.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005151/1.708, allocations: 3.629 MB / 0.8101 GB, free: 155.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009392/1.717, allocations: 1.338 MB / 0.8114 GB, free: 155 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.037/1.754, allocations: 27 MB / 0.8378 GB, free: 140 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008066/1.762, allocations: 7.699 MB / 0.8453 GB, free: 135.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006876/1.769, allocations: 2.405 MB / 0.8476 GB, free: 133.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/1.77, allocations: 446.8 kB / 0.848 GB, free: 133.4 MB / 478.1 MB Notification: Performance of SimCode: time 7.62e-07/1.77, allocations: 0 / 0.848 GB, free: 133.4 MB / 478.1 MB Notification: Performance of Templates: time 0.1213/1.892, allocations: 78.5 MB / 0.9247 GB, free: 59.04 MB / 478.1 MB 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)