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.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.2.2_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.2.2_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.0009195/0.0009196, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.001017/0.001017, allocations: 182 kB / 17.56 MB, free: 6.203 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.341/1.341, allocations: 205.4 MB / 223.7 MB, free: 12.99 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.0006881/0.0006884, allocations: 16 kB / 280.8 MB, free: 3.371 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.116, allocations: 47.58 MB / 328.3 MB, free: 3.719 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03756/0.1536, allocations: 37.74 MB / 366.1 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02426/0.1779, allocations: 10.36 MB / 376.4 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0094/0.1874, allocations: 247.1 kB / 376.7 MB, free: 3.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007514/0.1949, allocations: 2.15 MB / 378.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1836/0.3786, allocations: 3.289 MB / 382.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006407/0.385, allocations: 1.999 MB / 384.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01854/0.4035, allocations: 13.65 MB / 397.8 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03488/0.4385, allocations: 24.16 MB / 421.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008645/0.4472, allocations: 4.942 MB / 426.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01129/0.4585, allocations: 6.227 MB / 433.1 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00279/0.4613, allocations: 0.7734 MB / 433.9 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005004/0.4663, allocations: 1.162 MB / 435 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002708/0.4691, allocations: 2.67 MB / 437.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009783/0.4789, allocations: 6.214 MB / 443.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02433/0.5032, allocations: 24.79 MB / 468.7 MB, free: 1.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.5033, allocations: 0 / 468.7 MB, free: 1.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5033, allocations: 0 / 468.7 MB, free: 1.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006058/0.5039, allocations: 0 / 468.7 MB, free: 1.34 MB / 366.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.03951/0.5434, allocations: 12.85 MB / 481.5 MB, free: 4.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.5435, allocations: 12.02 kB / 481.6 MB, free: 4.445 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05033/0.5938, allocations: 9.132 MB / 490.7 MB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01475/0.6086, allocations: 7.472 MB / 498.2 MB, free: 3.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009111/0.6095, allocations: 0.9518 MB / 499.1 MB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003623/0.6132, allocations: 1.246 MB / 0.4886 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04411/0.6573, allocations: 20.15 MB / 0.5083 GB, free: 13.54 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003889/0.6577, allocations: 19.81 kB / 0.5083 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00229/0.66, allocations: 0.5157 MB / 0.5088 GB, free: 13.02 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006967/0.6607, allocations: 0.7333 MB / 0.5096 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04016/0.7009, allocations: 18.97 MB / 0.5281 GB, free: 9.301 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4809/1.182, allocations: 63.62 MB / 0.5902 GB, free: 103.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03124/1.213, allocations: 56.94 MB / 0.6458 GB, free: 45.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006724/1.22, allocations: 4.125 MB / 0.6498 GB, free: 42.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01858/1.239, allocations: 11.41 MB / 0.661 GB, free: 31.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.689e-05/1.239, allocations: 81.25 kB / 0.6611 GB, free: 31.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 6.422e-06/1.239, allocations: 0 / 0.6611 GB, free: 31.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.0351/1.274, allocations: 18.18 MB / 0.6788 GB, free: 13.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/1.274, allocations: 94.41 kB / 0.6789 GB, free: 12.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007133/1.281, allocations: 5.462 MB / 0.6842 GB, free: 7.473 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006321/1.282, allocations: 89.7 kB / 0.6843 GB, free: 7.379 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002486/1.284, allocations: 5.889 MB / 0.6901 GB, free: 1.461 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/1.285, allocations: 1.369 MB / 0.6914 GB, free: 104 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007897/1.286, allocations: 0.5888 MB / 0.692 GB, free: 15.51 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/1.286, allocations: 305.1 kB / 0.6923 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004807/1.291, allocations: 3.08 MB / 0.6953 GB, free: 12.12 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007325/1.298, allocations: 6.759 MB / 0.7019 GB, free: 3.602 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01357/1.312, allocations: 10.59 MB / 0.7122 GB, free: 7.207 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/1.312, allocations: 36 kB / 0.7123 GB, free: 7.172 MB / 478.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.1983/1.51, allocations: 10.79 MB / 0.7228 GB, free: 157.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/1.51, allocations: 59.55 kB / 0.7229 GB, free: 157.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002208/1.511, allocations: 124.8 kB / 0.723 GB, free: 157.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002711/1.513, allocations: 0.9756 MB / 0.7239 GB, free: 157.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006826/1.52, allocations: 1.812 MB / 0.7257 GB, free: 157.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/1.531, allocations: 9.554 MB / 0.735 GB, free: 152.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006117/1.537, allocations: 442.9 kB / 0.7355 GB, free: 152 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001465/1.539, allocations: 426.8 kB / 0.7359 GB, free: 151.9 MB / 478.1 MB 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.00872/1.547, allocations: 4.448 MB / 0.7402 GB, free: 149.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001618/1.549, allocations: 0.542 MB / 0.7407 GB, free: 149.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009974/1.559, allocations: 6.526 MB / 0.7471 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.53e-05/1.559, allocations: 45.22 kB / 0.7472 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/1.559, allocations: 8.594 kB / 0.7472 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.578e-05/1.559, allocations: 24.22 kB / 0.7472 GB, free: 147.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02469/1.584, allocations: 15.96 MB / 0.7628 GB, free: 141 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/1.584, allocations: 3.562 kB / 0.7628 GB, free: 141 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003303/1.587, allocations: 0.7605 MB / 0.7635 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002073/1.589, allocations: 0.7888 MB / 0.7643 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004156/1.59, allocations: 89.23 kB / 0.7644 GB, free: 140.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008271/1.598, allocations: 8.674 MB / 0.7729 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/1.598, allocations: 7.844 kB / 0.7729 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/1.612, allocations: 9.531 MB / 0.7822 GB, free: 124.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002627/1.615, allocations: 1.107 MB / 0.7833 GB, free: 123.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001297/1.616, allocations: 68 kB / 0.7833 GB, free: 123.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002931/1.619, allocations: 227.8 kB / 0.7835 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006049/1.62, allocations: 266.7 kB / 0.7838 GB, free: 123.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/1.62, allocations: 120 kB / 0.7839 GB, free: 123.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006043/1.626, allocations: 3.595 MB / 0.7874 GB, free: 119.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.62e-07/1.626, allocations: 0 / 0.7874 GB, free: 119.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009932/1.636, allocations: 1.984 MB / 0.7893 GB, free: 117.7 MB / 478.1 MB 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.001069/1.637, allocations: 251.9 kB / 0.7896 GB, free: 117.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0116/1.649, allocations: 8.066 MB / 0.7975 GB, free: 109.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/1.649, allocations: 0 / 0.7975 GB, free: 109.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005242/1.654, allocations: 3.537 MB / 0.8009 GB, free: 105.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008969/1.663, allocations: 1.232 MB / 0.8021 GB, free: 104.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0357/1.699, allocations: 26.34 MB / 0.8278 GB, free: 78.13 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01034/1.709, allocations: 7.594 MB / 0.8353 GB, free: 70.49 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007614/1.717, allocations: 2.359 MB / 0.8376 GB, free: 68.12 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/1.719, allocations: 435.3 kB / 0.838 GB, free: 67.7 MB / 478.1 MB Notification: Performance of SimCode: time 8.62e-07/1.719, allocations: 3.938 kB / 0.838 GB, free: 67.7 MB / 478.1 MB Notification: Performance of Templates: time 0.318/2.037, allocations: 74.74 MB / 0.911 GB, free: 125.2 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)