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.0009851/0.0009851, allocations: 97.56 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.007588/0.007588, allocations: 168.6 kB / 16.26 MB, free: 6.648 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.353/1.353, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.0005031/0.0005033, allocations: 12 kB / 279.5 MB, free: 12.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2297, allocations: 47.57 MB / 327.1 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03857/0.2683, allocations: 37.74 MB / 364.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02406/0.2924, allocations: 10.35 MB / 375.1 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008815/0.3013, allocations: 247.1 kB / 375.4 MB, free: 2.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006862/0.3081, allocations: 2.146 MB / 377.5 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01287/0.321, allocations: 3.286 MB / 380.8 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007831/0.3289, allocations: 2.02 MB / 382.8 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02003/0.3489, allocations: 13.64 MB / 396.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04237/0.3914, allocations: 24.14 MB / 420.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01109/0.4025, allocations: 4.934 MB / 425.6 MB, free: 440 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0106/0.4131, allocations: 6.231 MB / 431.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00283/0.416, allocations: 0.7812 MB / 432.6 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004409/0.4204, allocations: 1.164 MB / 433.7 MB, free: 8.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003345/0.4238, allocations: 2.67 MB / 436.4 MB, free: 5.547 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01001/0.4338, allocations: 6.213 MB / 442.6 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3853/0.8192, allocations: 24.77 MB / 467.4 MB, free: 39.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.8192, allocations: 0.5938 kB / 467.4 MB, free: 39.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.8192, allocations: 0 / 467.4 MB, free: 39.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007448/0.82, allocations: 0.875 kB / 467.4 MB, free: 39.82 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.0356/0.8556, allocations: 12.85 MB / 480.2 MB, free: 33.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.8557, allocations: 11.77 kB / 480.3 MB, free: 33.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04831/0.904, allocations: 9.138 MB / 489.4 MB, free: 29.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01496/0.919, allocations: 7.459 MB / 496.9 MB, free: 27.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008088/0.9198, allocations: 0.961 MB / 497.8 MB, free: 27.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005193/0.925, allocations: 1.249 MB / 499.1 MB, free: 27.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04753/0.9726, allocations: 20.16 MB / 0.5071 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008436/0.9735, allocations: 12.98 kB / 0.5071 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005063/0.9786, allocations: 0.5153 MB / 0.5076 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007087/0.9793, allocations: 0.7333 MB / 0.5083 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04014/1.019, allocations: 18.97 MB / 0.5268 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1088/1.128, allocations: 63.63 MB / 0.5889 GB, free: 8.293 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2094/1.338, allocations: 56.93 MB / 0.6445 GB, free: 164.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00725/1.345, allocations: 4.131 MB / 0.6486 GB, free: 164.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01657/1.362, allocations: 11.4 MB / 0.6597 GB, free: 159.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/1.362, allocations: 69.06 kB / 0.6598 GB, free: 159.8 MB / 494.1 MB Notification: Performance of pre-optimization done (n=349): time 5.139e-06/1.362, allocations: 0 / 0.6598 GB, free: 159.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=389): time 0.03514/1.397, allocations: 18.18 MB / 0.6775 GB, free: 152.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/1.397, allocations: 98.98 kB / 0.6776 GB, free: 152.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006546/1.403, allocations: 5.458 MB / 0.683 GB, free: 150 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005968/1.404, allocations: 91.06 kB / 0.683 GB, free: 149.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002499/1.407, allocations: 5.886 MB / 0.6888 GB, free: 144.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001173/1.408, allocations: 1.379 MB / 0.6901 GB, free: 143.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006533/1.408, allocations: 0.5872 MB / 0.6907 GB, free: 143 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.151e-05/1.408, allocations: 301.1 kB / 0.691 GB, free: 142.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003889/1.412, allocations: 3.085 MB / 0.694 GB, free: 140.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004883/1.417, allocations: 6.751 MB / 0.7006 GB, free: 132.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009827/1.427, allocations: 10.6 MB / 0.711 GB, free: 120.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.171e-05/1.427, allocations: 36 kB / 0.711 GB, free: 120.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01851/1.446, allocations: 10.8 MB / 0.7215 GB, free: 110.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002109/1.446, allocations: 57.41 kB / 0.7216 GB, free: 110 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002583/1.446, allocations: 132.4 kB / 0.7217 GB, free: 109.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002651/1.449, allocations: 0.9781 MB / 0.7227 GB, free: 108.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006179/1.455, allocations: 1.803 MB / 0.7244 GB, free: 107.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009978/1.465, allocations: 9.562 MB / 0.7338 GB, free: 97.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006168/1.471, allocations: 447.1 kB / 0.7342 GB, free: 96.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/1.473, allocations: 424 kB / 0.7346 GB, free: 96.3 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.008407/1.481, allocations: 4.455 MB / 0.739 GB, free: 91.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001566/1.483, allocations: 0.5402 MB / 0.7395 GB, free: 91.29 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01177/1.495, allocations: 6.531 MB / 0.7459 GB, free: 84.71 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.328e-05/1.495, allocations: 40 kB / 0.7459 GB, free: 84.67 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.701e-05/1.495, allocations: 13.03 kB / 0.7459 GB, free: 84.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-05/1.495, allocations: 19.92 kB / 0.7459 GB, free: 84.64 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02957/1.524, allocations: 15.97 MB / 0.7615 GB, free: 68.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/1.524, allocations: 5.531 kB / 0.7615 GB, free: 68.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003193/1.528, allocations: 0.7532 MB / 0.7623 GB, free: 67.89 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002129/1.53, allocations: 0.7885 MB / 0.763 GB, free: 67.08 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004583/1.53, allocations: 91.92 kB / 0.7631 GB, free: 66.99 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008442/1.539, allocations: 8.668 MB / 0.7716 GB, free: 57.93 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.539, allocations: 0 / 0.7716 GB, free: 57.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01476/1.553, allocations: 9.535 MB / 0.7809 GB, free: 48.28 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002679/1.556, allocations: 1.099 MB / 0.782 GB, free: 47.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001514/1.558, allocations: 76 kB / 0.782 GB, free: 47.08 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003153/1.561, allocations: 231.6 kB / 0.7823 GB, free: 46.86 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006604/1.562, allocations: 268.2 kB / 0.7825 GB, free: 46.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003419/1.562, allocations: 112 kB / 0.7826 GB, free: 46.49 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005744/1.568, allocations: 3.603 MB / 0.7861 GB, free: 42.91 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.568, allocations: 0 / 0.7861 GB, free: 42.91 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008751/1.576, allocations: 1.983 MB / 0.7881 GB, free: 40.93 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.001124/1.578, allocations: 253.9 kB / 0.7883 GB, free: 40.68 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0126/1.59, allocations: 8.053 MB / 0.7962 GB, free: 32.56 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/1.59, allocations: 4 kB / 0.7962 GB, free: 32.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005661/1.596, allocations: 3.537 MB / 0.7996 GB, free: 28.94 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01127/1.607, allocations: 1.226 MB / 0.8008 GB, free: 27.72 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2239/1.831, allocations: 26.33 MB / 0.8266 GB, free: 172.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008864/1.84, allocations: 7.602 MB / 0.834 GB, free: 171.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00713/1.847, allocations: 2.348 MB / 0.8363 GB, free: 171.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/1.849, allocations: 433.1 kB / 0.8367 GB, free: 171.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/1.849, allocations: 0 / 0.8367 GB, free: 171.7 MB / 494.1 MB Notification: Performance of Templates: time 0.1223/1.971, allocations: 74.77 MB / 0.9097 GB, free: 113.5 MB / 494.1 MB 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)