Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008535/0.008535, allocations: 101.7 kB / 15.73 MB, free: 6.047 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.001931/0.001931, allocations: 187.9 kB / 16.67 MB, free: 5.977 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.426/1.426, allocations: 205.1 MB / 222.6 MB, free: 4.379 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.001154/0.001154, allocations: 53.61 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08451/0.08568, allocations: 46.62 MB / 373.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04097/0.1267, allocations: 40.02 MB / 413.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02334/0.1501, allocations: 10.55 MB / 423.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008962/0.1591, allocations: 259.1 kB / 424 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02041/0.1796, allocations: 8.539 MB / 432.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01375/0.1933, allocations: 3.632 MB / 436.2 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008603/0.202, allocations: 2.401 MB / 438.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01911/0.2211, allocations: 13.42 MB / 452 MB, free: 2.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2354/0.4565, allocations: 25.36 MB / 477.4 MB, free: 3.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01009/0.4666, allocations: 7.039 MB / 484.4 MB, free: 2.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01385/0.4805, allocations: 8.316 MB / 492.7 MB, free: 15.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005263/0.4858, allocations: 1.991 MB / 494.7 MB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007801/0.4937, allocations: 2.378 MB / 497.1 MB, free: 15.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006927/0.5006, allocations: 4.163 MB / 0.4895 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0146/0.5152, allocations: 7.822 MB / 0.4972 GB, free: 5.238 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03053/0.5458, allocations: 26.43 MB / 0.523 GB, free: 13.88 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.5459, allocations: 0 / 0.523 GB, free: 13.88 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5459, allocations: 0 / 0.523 GB, free: 13.88 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007749/0.5467, allocations: 0 / 0.523 GB, free: 13.88 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04707/0.5937, allocations: 15.6 MB / 0.5382 GB, free: 14.28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.5938, allocations: 8.031 kB / 0.5382 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05165/0.6454, allocations: 9.113 MB / 0.5471 GB, free: 5.238 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01708/0.6626, allocations: 7.51 MB / 0.5544 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000975/0.6636, allocations: 0.9429 MB / 0.5554 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004887/0.6685, allocations: 1.246 MB / 0.5566 GB, free: 11.88 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04651/0.715, allocations: 20.15 MB / 0.5763 GB, free: 7.703 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004214/0.7155, allocations: 19.19 kB / 0.5763 GB, free: 7.688 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003205/0.7187, allocations: 0.5085 MB / 0.5768 GB, free: 7.191 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006891/0.7194, allocations: 0.7332 MB / 0.5775 GB, free: 6.457 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03786/0.7572, allocations: 18.98 MB / 0.596 GB, free: 3.473 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.465/1.222, allocations: 62.65 MB / 0.6572 GB, free: 141.6 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03079/1.253, allocations: 56.98 MB / 0.7128 GB, free: 89.27 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00571/1.259, allocations: 4.09 MB / 0.7168 GB, free: 87.92 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01668/1.276, allocations: 11.35 MB / 0.7279 GB, free: 82.66 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/1.276, allocations: 74 kB / 0.728 GB, free: 82.59 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.169e-06/1.276, allocations: 3.938 kB / 0.728 GB, free: 82.59 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.03247/1.308, allocations: 18.14 MB / 0.7457 GB, free: 72.91 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/1.308, allocations: 91.53 kB / 0.7458 GB, free: 72.84 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006845/1.315, allocations: 5.459 MB / 0.7511 GB, free: 69.98 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006377/1.316, allocations: 86.33 kB / 0.7512 GB, free: 69.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002791/1.319, allocations: 5.891 MB / 0.757 GB, free: 64.76 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001068/1.32, allocations: 1.372 MB / 0.7583 GB, free: 63.58 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001745/1.321, allocations: 1.508 MB / 0.7598 GB, free: 62.27 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.592e-05/1.321, allocations: 305.1 kB / 0.7601 GB, free: 61.96 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003837/1.325, allocations: 3.08 MB / 0.7631 GB, free: 58.88 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004948/1.33, allocations: 6.752 MB / 0.7697 GB, free: 50.37 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009349/1.34, allocations: 10.59 MB / 0.78 GB, free: 37.97 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.644e-05/1.34, allocations: 39.56 kB / 0.78 GB, free: 37.94 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01557/1.355, allocations: 10.79 MB / 0.7906 GB, free: 27.08 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.802e-05/1.355, allocations: 60 kB / 0.7906 GB, free: 27.02 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001577/1.356, allocations: 128 kB / 0.7908 GB, free: 26.89 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002255/1.358, allocations: 0.9647 MB / 0.7917 GB, free: 25.91 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00607/1.364, allocations: 1.817 MB / 0.7935 GB, free: 24.09 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00993/1.374, allocations: 10.25 MB / 0.8035 GB, free: 13.42 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006025/1.38, allocations: 443.2 kB / 0.8039 GB, free: 12.99 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001475/1.381, allocations: 420 kB / 0.8043 GB, free: 12.58 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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.007382/1.389, allocations: 4.464 MB / 0.8087 GB, free: 8.098 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001266/1.39, allocations: 0.5479 MB / 0.8092 GB, free: 7.543 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00961/1.4, allocations: 6.514 MB / 0.8156 GB, free: 0.9805 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/1.4, allocations: 40 kB / 0.8156 GB, free: 0.9414 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/1.4, allocations: 8 kB / 0.8156 GB, free: 0.9336 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-05/1.4, allocations: 27.92 kB / 0.8156 GB, free: 0.9062 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03036/1.43, allocations: 15.94 MB / 0.8312 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/1.43, allocations: 4 kB / 0.8312 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003274/1.433, allocations: 0.7571 MB / 0.8319 GB, free: 184 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2128/1.646, allocations: 0.7804 MB / 0.8327 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006845/1.647, allocations: 89.97 kB / 0.8328 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01078/1.658, allocations: 9.339 MB / 0.8419 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/1.658, allocations: 7.938 kB / 0.8419 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01422/1.672, allocations: 9.536 MB / 0.8512 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002877/1.675, allocations: 1.072 MB / 0.8523 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001065/1.676, allocations: 75 kB / 0.8524 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003034/1.679, allocations: 220.7 kB / 0.8526 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000861/1.68, allocations: 268.8 kB / 0.8528 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002926/1.68, allocations: 117.1 kB / 0.8529 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006587/1.687, allocations: 3.599 MB / 0.8564 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/1.687, allocations: 0 / 0.8564 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00778/1.695, allocations: 1.987 MB / 0.8584 GB, free: 163.2 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.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 (368): * Single equations (assignments): 363 * 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.0007047/1.695, allocations: 253.1 kB / 0.8586 GB, free: 163 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01057/1.706, allocations: 8.071 MB / 0.8665 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/1.706, allocations: 0 / 0.8665 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004593/1.711, allocations: 3.545 MB / 0.87 GB, free: 158 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007057/1.718, allocations: 1.319 MB / 0.8713 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03153/1.749, allocations: 20.73 MB / 0.8915 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00777/1.757, allocations: 7.59 MB / 0.8989 GB, free: 140.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00558/1.763, allocations: 2.367 MB / 0.9012 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/1.764, allocations: 430 kB / 0.9016 GB, free: 138.7 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/1.764, allocations: 0 / 0.9016 GB, free: 138.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.1123/1.876, allocations: 73.81 MB / 0.9737 GB, free: 65.89 MB / 0.5294 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)