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.001722/0.001722, allocations: 116.2 kB / 17.07 MB, free: 6 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.001992/0.001992, allocations: 198.9 kB / 18 MB, free: 5.078 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.429/1.429, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001444/0.001444, allocations: 43.94 kB / 327.9 MB, free: 3.246 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09538/0.09684, allocations: 46.62 MB / 374.5 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2213/0.3182, allocations: 41.75 MB / 416.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02678/0.345, allocations: 11.08 MB / 427.4 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008801/0.3538, allocations: 272.4 kB / 427.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02041/0.3743, allocations: 8.8 MB / 436.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01458/0.3889, allocations: 3.79 MB / 440.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008469/0.3974, allocations: 2.48 MB / 442.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01785/0.4152, allocations: 13.87 MB / 456.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04017/0.4555, allocations: 25.79 MB / 482.4 MB, free: 3.461 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01357/0.4691, allocations: 7.23 MB / 489.6 MB, free: 12.21 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01356/0.4827, allocations: 8.245 MB / 497.8 MB, free: 3.938 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005776/0.4885, allocations: 2.035 MB / 499.9 MB, free: 1.902 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007435/0.496, allocations: 2.414 MB / 0.4905 GB, free: 15.49 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006896/0.5029, allocations: 4.232 MB / 0.4946 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01464/0.5176, allocations: 8.046 MB / 0.5025 GB, free: 3.168 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03375/0.5514, allocations: 27 MB / 0.5289 GB, free: 8.086 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.5514, allocations: 0 / 0.5289 GB, free: 8.086 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.5514, allocations: 0 / 0.5289 GB, free: 8.086 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006734/0.5521, allocations: 0 / 0.5289 GB, free: 8.086 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.04804/0.6002, allocations: 16.03 MB / 0.5445 GB, free: 7.938 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.6002, allocations: 12.03 kB / 0.5445 GB, free: 7.926 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4039/1.004, allocations: 9.181 MB / 0.5535 GB, free: 135.3 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01811/1.022, allocations: 7.709 MB / 0.561 GB, free: 132.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00107/1.023, allocations: 0.9686 MB / 0.562 GB, free: 132.1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004974/1.028, allocations: 1.276 MB / 0.5632 GB, free: 131.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0544/1.083, allocations: 20.51 MB / 0.5832 GB, free: 123.6 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006599/1.084, allocations: 27.27 kB / 0.5833 GB, free: 123.6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004025/1.088, allocations: 0.5296 MB / 0.5838 GB, free: 123.2 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007362/1.088, allocations: 0.7503 MB / 0.5845 GB, free: 123.1 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03676/1.125, allocations: 19.25 MB / 0.6033 GB, free: 106.7 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1085/1.234, allocations: 64.32 MB / 0.6661 GB, free: 41.04 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03741/1.271, allocations: 57.28 MB / 0.7221 GB, free: 8.902 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008582/1.28, allocations: 4.169 MB / 0.7261 GB, free: 4.715 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02778/1.308, allocations: 11.63 MB / 0.7375 GB, free: 9.082 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.622e-05/1.308, allocations: 73.41 kB / 0.7376 GB, free: 9 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=361): time 5.34e-06/1.308, allocations: 0 / 0.7376 GB, free: 9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=403): time 0.2533/1.561, allocations: 17.86 MB / 0.755 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/1.561, allocations: 96.33 kB / 0.7551 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01009/1.571, allocations: 5.69 MB / 0.7607 GB, free: 164 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007429/1.572, allocations: 90.95 kB / 0.7607 GB, free: 164 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004118/1.576, allocations: 6.05 MB / 0.7667 GB, free: 159.4 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001659/1.578, allocations: 1.42 MB / 0.768 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002576/1.58, allocations: 1.544 MB / 0.7695 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.933e-05/1.58, allocations: 303.4 kB / 0.7698 GB, free: 157.3 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005584/1.586, allocations: 3.145 MB / 0.7729 GB, free: 156.1 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008191/1.594, allocations: 6.894 MB / 0.7796 GB, free: 150 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/1.607, allocations: 10.82 MB / 0.7902 GB, free: 141.6 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001644/1.607, allocations: 36.88 kB / 0.7902 GB, free: 141.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01945/1.626, allocations: 11.02 MB / 0.801 GB, free: 137.1 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001276/1.626, allocations: 63 kB / 0.8011 GB, free: 137.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002464/1.627, allocations: 126.2 kB / 0.8012 GB, free: 137.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/1.629, allocations: 0.986 MB / 0.8021 GB, free: 136.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006394/1.636, allocations: 1.85 MB / 0.804 GB, free: 136.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01086/1.646, allocations: 10.25 MB / 0.814 GB, free: 128.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00654/1.653, allocations: 450.6 kB / 0.8144 GB, free: 128.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001343/1.654, allocations: 434 kB / 0.8148 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.008893/1.663, allocations: 4.511 MB / 0.8192 GB, free: 123.9 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002257/1.666, allocations: 0.5767 MB / 0.8198 GB, free: 123.3 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01313/1.679, allocations: 6.703 MB / 0.8263 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.803e-05/1.679, allocations: 40 kB / 0.8264 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3e-05/1.679, allocations: 10.69 kB / 0.8264 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.956e-05/1.679, allocations: 19.92 kB / 0.8264 GB, free: 117.6 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03267/1.712, allocations: 16.46 MB / 0.8425 GB, free: 102 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-05/1.712, allocations: 4 kB / 0.8425 GB, free: 102 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003332/1.715, allocations: 0.7767 MB / 0.8432 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/1.717, allocations: 0.7923 MB / 0.844 GB, free: 100.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005906/1.718, allocations: 91.97 kB / 0.8441 GB, free: 100.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008894/1.727, allocations: 9.337 MB / 0.8532 GB, free: 90.59 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/1.727, allocations: 7.938 kB / 0.8532 GB, free: 90.58 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/1.741, allocations: 9.829 MB / 0.8628 GB, free: 80.63 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003163/1.744, allocations: 1.119 MB / 0.8639 GB, free: 79.49 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001372/1.745, allocations: 79.94 kB / 0.864 GB, free: 79.41 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003132/1.749, allocations: 235.4 kB / 0.8642 GB, free: 79.18 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006184/1.749, allocations: 270.8 kB / 0.8645 GB, free: 78.92 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003241/1.75, allocations: 120 kB / 0.8646 GB, free: 78.8 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006013/1.756, allocations: 3.75 MB / 0.8682 GB, free: 75.08 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.61e-07/1.756, allocations: 0 / 0.8682 GB, free: 75.08 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008876/1.764, allocations: 2.047 MB / 0.8702 GB, free: 73.04 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.0009745/1.765, allocations: 262.2 kB / 0.8705 GB, free: 72.78 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01258/1.778, allocations: 8.255 MB / 0.8786 GB, free: 64.46 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.086e-06/1.778, allocations: 0 / 0.8786 GB, free: 64.46 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005053/1.783, allocations: 3.614 MB / 0.8821 GB, free: 60.77 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006995/1.79, allocations: 1.417 MB / 0.8835 GB, free: 59.38 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04162/1.832, allocations: 21.26 MB / 0.9042 GB, free: 38.07 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01304/1.845, allocations: 7.692 MB / 0.9117 GB, free: 30.34 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007789/1.853, allocations: 2.404 MB / 0.9141 GB, free: 27.93 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001955/1.855, allocations: 447.4 kB / 0.9145 GB, free: 27.49 MB / 0.5138 GB Notification: Performance of SimCode: time 1.173e-06/1.855, allocations: 0 / 0.9145 GB, free: 27.49 MB / 0.5138 GB Notification: Performance of Templates: time 0.3404/2.195, allocations: 77.62 MB / 0.9903 GB, free: 128.1 MB / 0.5138 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (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)