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.001033/0.001033, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001171/0.001171, allocations: 194.7 kB / 16.25 MB, free: 6.625 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.335/1.335, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.001104/0.001104, allocations: 47.92 kB / 278.2 MB, free: 12.61 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1912, allocations: 46.63 MB / 324.9 MB, free: 1.988 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04007/0.2313, allocations: 40.99 MB / 365.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02259/0.2539, allocations: 10.91 MB / 376.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00754/0.2615, allocations: 255.1 kB / 377 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01869/0.2802, allocations: 8.253 MB / 385.3 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01316/0.2934, allocations: 3.421 MB / 388.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006628/0.3001, allocations: 2.258 MB / 391 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01778/0.3178, allocations: 13.88 MB / 404.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04045/0.3583, allocations: 29.11 MB / 434 MB, free: 6.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01076/0.3691, allocations: 7.206 MB / 441.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01218/0.3814, allocations: 8.315 MB / 449.5 MB, free: 6.973 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005243/0.3866, allocations: 2.027 MB / 451.5 MB, free: 4.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007067/0.3937, allocations: 2.429 MB / 453.9 MB, free: 2.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2865/0.6803, allocations: 4.239 MB / 458.2 MB, free: 43.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01252/0.6928, allocations: 8.046 MB / 466.2 MB, free: 42.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02813/0.721, allocations: 26.8 MB / 493 MB, free: 34.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.721, allocations: 2.844 kB / 493 MB, free: 34.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7211, allocations: 0 / 493 MB, free: 34.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00092/0.722, allocations: 0 / 493 MB, free: 34.18 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.06114/0.7831, allocations: 16.06 MB / 0.4971 GB, free: 24.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.7832, allocations: 14.53 kB / 0.4972 GB, free: 24.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04789/0.8311, allocations: 9.168 MB / 0.5061 GB, free: 19.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0152/0.8463, allocations: 7.662 MB / 0.5136 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006879/0.8471, allocations: 0.9682 MB / 0.5145 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00518/0.8523, allocations: 1.286 MB / 0.5158 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0523/0.9046, allocations: 20.52 MB / 0.5358 GB, free: 5.496 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006655/0.9053, allocations: 23.38 kB / 0.5359 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005722/0.911, allocations: 0.5373 MB / 0.5364 GB, free: 4.953 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008695/0.9119, allocations: 0.7416 MB / 0.5371 GB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04399/0.9559, allocations: 19.24 MB / 0.5559 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2966/1.253, allocations: 65.04 MB / 0.6194 GB, free: 151.6 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03116/1.284, allocations: 57.3 MB / 0.6754 GB, free: 99.12 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005689/1.289, allocations: 4.189 MB / 0.6795 GB, free: 99.05 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0157/1.305, allocations: 11.67 MB / 0.6909 GB, free: 97.96 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/1.305, allocations: 75.09 kB / 0.6909 GB, free: 97.92 MB / 478.1 MB Notification: Performance of pre-optimization done (n=361): time 4.789e-06/1.305, allocations: 0 / 0.6909 GB, free: 97.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=403): time 0.03218/1.337, allocations: 17.87 MB / 0.7084 GB, free: 91.28 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.414e-05/1.338, allocations: 94.98 kB / 0.7085 GB, free: 91.21 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007103/1.345, allocations: 5.688 MB / 0.714 GB, free: 89.14 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006287/1.345, allocations: 93.02 kB / 0.7141 GB, free: 89.05 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002493/1.348, allocations: 6.045 MB / 0.72 GB, free: 84.49 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/1.349, allocations: 1.422 MB / 0.7214 GB, free: 83.42 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002184/1.351, allocations: 1.545 MB / 0.7229 GB, free: 82.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.683e-05/1.351, allocations: 301.1 kB / 0.7232 GB, free: 82.37 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006918/1.358, allocations: 3.148 MB / 0.7263 GB, free: 81.03 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009573/1.368, allocations: 6.892 MB / 0.733 GB, free: 72.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01615/1.384, allocations: 10.81 MB / 0.7436 GB, free: 60.13 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001476/1.384, allocations: 40 kB / 0.7436 GB, free: 60.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02762/1.412, allocations: 11.02 MB / 0.7544 GB, free: 49 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001989/1.412, allocations: 67.89 kB / 0.7544 GB, free: 48.94 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002511/1.412, allocations: 128 kB / 0.7545 GB, free: 48.81 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003944/1.416, allocations: 0.9872 MB / 0.7555 GB, free: 47.81 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01027/1.427, allocations: 1.856 MB / 0.7573 GB, free: 45.95 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/1.441, allocations: 10.26 MB / 0.7673 GB, free: 35.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009404/1.451, allocations: 451.2 kB / 0.7678 GB, free: 34.83 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00196/1.453, allocations: 428 kB / 0.7682 GB, free: 34.41 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.01128/1.464, allocations: 4.515 MB / 0.7726 GB, free: 29.88 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001391/1.465, allocations: 0.5672 MB / 0.7731 GB, free: 29.31 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01004/1.475, allocations: 6.714 MB / 0.7797 GB, free: 22.55 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.467e-05/1.475, allocations: 43.94 kB / 0.7797 GB, free: 22.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/1.475, allocations: 8 kB / 0.7797 GB, free: 22.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.274e-05/1.475, allocations: 19.92 kB / 0.7798 GB, free: 22.48 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02668/1.502, allocations: 16.49 MB / 0.7959 GB, free: 5.941 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/1.502, allocations: 4 kB / 0.7959 GB, free: 5.938 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003066/1.505, allocations: 0.7844 MB / 0.7966 GB, free: 5.156 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002092/1.507, allocations: 0.804 MB / 0.7974 GB, free: 4.336 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002783/1.508, allocations: 91.97 kB / 0.7975 GB, free: 4.246 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2121/1.72, allocations: 9.339 MB / 0.8066 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.72, allocations: 7.281 kB / 0.8066 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01332/1.733, allocations: 9.82 MB / 0.8162 GB, free: 148.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002251/1.735, allocations: 1.112 MB / 0.8173 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006917/1.736, allocations: 79.47 kB / 0.8174 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002372/1.739, allocations: 228.2 kB / 0.8176 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005437/1.739, allocations: 283.2 kB / 0.8179 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002494/1.739, allocations: 116.4 kB / 0.818 GB, free: 148.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005184/1.745, allocations: 3.748 MB / 0.8216 GB, free: 147.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.11e-07/1.745, allocations: 0 / 0.8216 GB, free: 147.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006172/1.751, allocations: 2.044 MB / 0.8236 GB, free: 146.9 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.0005567/1.751, allocations: 261.8 kB / 0.8239 GB, free: 146.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02614/1.777, allocations: 13.87 MB / 0.8374 GB, free: 143.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/1.777, allocations: 0 / 0.8374 GB, free: 143.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004387/1.782, allocations: 3.621 MB / 0.841 GB, free: 141.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00603/1.788, allocations: 1.416 MB / 0.8424 GB, free: 140.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03588/1.824, allocations: 26.9 MB / 0.8686 GB, free: 115.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007626/1.831, allocations: 7.695 MB / 0.8761 GB, free: 109.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00646/1.838, allocations: 2.399 MB / 0.8785 GB, free: 108.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/1.839, allocations: 457.8 kB / 0.8789 GB, free: 107.8 MB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/1.839, allocations: 0 / 0.8789 GB, free: 107.8 MB / 478.1 MB Notification: Performance of Templates: time 0.115/1.954, allocations: 82.35 MB / 0.9593 GB, free: 27.66 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)