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.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.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.2.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.000987/0.0009875, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006088/0.006088, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.312/1.312, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.000455/0.0004551, allocations: 16 kB / 279.5 MB, free: 12.46 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2242, allocations: 47.58 MB / 327.1 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03791/0.2621, allocations: 37.74 MB / 364.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02246/0.2846, allocations: 10.36 MB / 375.2 MB, free: 3.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008664/0.2933, allocations: 247.1 kB / 375.4 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007538/0.3009, allocations: 2.142 MB / 377.5 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01387/0.3148, allocations: 3.289 MB / 380.8 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00673/0.3216, allocations: 2.004 MB / 382.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01786/0.3394, allocations: 13.65 MB / 396.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04215/0.3816, allocations: 24.14 MB / 420.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008964/0.3906, allocations: 4.942 MB / 425.6 MB, free: 432 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01063/0.4013, allocations: 6.224 MB / 431.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003454/0.4048, allocations: 0.7734 MB / 432.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005694/0.4105, allocations: 1.171 MB / 433.7 MB, free: 8.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00468/0.4152, allocations: 2.678 MB / 436.4 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01274/0.428, allocations: 6.209 MB / 442.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3665/0.7946, allocations: 24.78 MB / 467.4 MB, free: 39.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.7946, allocations: 0 / 467.4 MB, free: 39.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.7946, allocations: 0.5312 kB / 467.4 MB, free: 39.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007722/0.7954, allocations: 0 / 467.4 MB, free: 39.85 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.0341/0.8295, allocations: 12.85 MB / 480.2 MB, free: 33.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.8296, allocations: 9.312 kB / 480.3 MB, free: 33.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04856/0.8781, allocations: 9.14 MB / 489.4 MB, free: 30.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01428/0.8924, allocations: 7.462 MB / 496.9 MB, free: 27.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007382/0.8932, allocations: 0.9546 MB / 497.8 MB, free: 27.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004571/0.8978, allocations: 1.248 MB / 499.1 MB, free: 27.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04297/0.9408, allocations: 20.17 MB / 0.5071 GB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004452/0.9413, allocations: 15.91 kB / 0.5071 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003981/0.9452, allocations: 0.5087 MB / 0.5076 GB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006069/0.9459, allocations: 0.7333 MB / 0.5083 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03836/0.9842, allocations: 18.98 MB / 0.5268 GB, free: 8.453 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1034/1.088, allocations: 63.61 MB / 0.5889 GB, free: 8.254 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2213/1.309, allocations: 56.93 MB / 0.6445 GB, free: 165 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006411/1.315, allocations: 4.127 MB / 0.6486 GB, free: 165 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01671/1.332, allocations: 11.41 MB / 0.6597 GB, free: 160 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/1.332, allocations: 78.09 kB / 0.6598 GB, free: 160 MB / 494.1 MB Notification: Performance of pre-optimization done (n=349): time 4.899e-06/1.332, allocations: 0 / 0.6598 GB, free: 160 MB / 494.1 MB Notification: Performance of matching and sorting (n=389): time 0.03323/1.366, allocations: 18.17 MB / 0.6775 GB, free: 152.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/1.366, allocations: 98.73 kB / 0.6776 GB, free: 152.3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006786/1.372, allocations: 5.46 MB / 0.683 GB, free: 150 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005589/1.373, allocations: 93.64 kB / 0.683 GB, free: 149.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/1.376, allocations: 5.88 MB / 0.6888 GB, free: 144.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001235/1.377, allocations: 1.379 MB / 0.6901 GB, free: 143.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006735/1.378, allocations: 0.5927 MB / 0.6907 GB, free: 142.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.271e-05/1.378, allocations: 301.1 kB / 0.691 GB, free: 142.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004159/1.382, allocations: 3.083 MB / 0.694 GB, free: 140 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005371/1.387, allocations: 6.748 MB / 0.7006 GB, free: 132.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00993/1.397, allocations: 10.6 MB / 0.711 GB, free: 120.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8e-05/1.397, allocations: 36 kB / 0.711 GB, free: 120.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01517/1.413, allocations: 10.8 MB / 0.7215 GB, free: 110.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.308e-05/1.413, allocations: 62.77 kB / 0.7216 GB, free: 110 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001686/1.413, allocations: 128 kB / 0.7217 GB, free: 109.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/1.415, allocations: 0.9786 MB / 0.7227 GB, free: 108.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005328/1.42, allocations: 1.805 MB / 0.7244 GB, free: 107.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008976/1.429, allocations: 9.563 MB / 0.7338 GB, free: 97.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005766/1.435, allocations: 447.1 kB / 0.7342 GB, free: 96.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009491/1.436, allocations: 420 kB / 0.7346 GB, free: 96.29 MB / 494.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.006974/1.443, allocations: 4.46 MB / 0.739 GB, free: 91.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001168/1.444, allocations: 0.5402 MB / 0.7395 GB, free: 91.27 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009164/1.453, allocations: 6.521 MB / 0.7459 GB, free: 84.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.387e-05/1.454, allocations: 44 kB / 0.7459 GB, free: 84.66 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/1.454, allocations: 14.19 kB / 0.7459 GB, free: 84.65 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.037e-05/1.454, allocations: 23.92 kB / 0.7459 GB, free: 84.62 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02099/1.475, allocations: 15.97 MB / 0.7615 GB, free: 68.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/1.475, allocations: 4 kB / 0.7615 GB, free: 68.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/1.478, allocations: 0.7492 MB / 0.7623 GB, free: 67.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/1.479, allocations: 0.7924 MB / 0.763 GB, free: 67.06 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002149/1.48, allocations: 87.92 kB / 0.7631 GB, free: 66.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007602/1.487, allocations: 8.672 MB / 0.7716 GB, free: 57.91 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.487, allocations: 4 kB / 0.7716 GB, free: 57.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01121/1.499, allocations: 9.535 MB / 0.7809 GB, free: 48.26 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00208/1.501, allocations: 1.099 MB / 0.782 GB, free: 47.14 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006303/1.501, allocations: 68 kB / 0.782 GB, free: 47.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002279/1.504, allocations: 235.8 kB / 0.7823 GB, free: 46.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004958/1.504, allocations: 262.7 kB / 0.7825 GB, free: 46.58 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002208/1.504, allocations: 112 kB / 0.7826 GB, free: 46.47 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00497/1.509, allocations: 3.607 MB / 0.7861 GB, free: 42.89 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.8e-07/1.509, allocations: 0 / 0.7861 GB, free: 42.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007129/1.516, allocations: 1.983 MB / 0.7881 GB, free: 40.91 MB / 494.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.0005509/1.517, allocations: 251.2 kB / 0.7883 GB, free: 40.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01069/1.528, allocations: 8.048 MB / 0.7962 GB, free: 32.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/1.528, allocations: 4.125 kB / 0.7962 GB, free: 32.54 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004731/1.532, allocations: 3.54 MB / 0.7996 GB, free: 28.92 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008426/1.541, allocations: 1.228 MB / 0.8008 GB, free: 27.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2264/1.767, allocations: 26.33 MB / 0.8266 GB, free: 173 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00793/1.775, allocations: 7.597 MB / 0.834 GB, free: 172.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007745/1.783, allocations: 2.361 MB / 0.8363 GB, free: 171.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/1.785, allocations: 432.5 kB / 0.8367 GB, free: 171.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.172e-06/1.785, allocations: 2.188 kB / 0.8367 GB, free: 171.9 MB / 494.1 MB Notification: Performance of Templates: time 0.122/1.907, allocations: 74.75 MB / 0.9097 GB, free: 113.5 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)