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.006032/0.006032, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001112/0.001112, allocations: 191.2 kB / 16.67 MB, free: 5.93 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.372/1.372, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001178/0.001178, allocations: 55.92 kB / 326.6 MB, free: 3.234 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0946/0.09578, allocations: 46.62 MB / 373.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2124/0.3082, allocations: 40.01 MB / 413.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02461/0.3329, allocations: 10.55 MB / 423.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01021/0.3431, allocations: 262.3 kB / 424 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02046/0.3637, allocations: 8.613 MB / 432.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01697/0.3806, allocations: 3.707 MB / 436.4 MB, free: 236 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009538/0.3902, allocations: 2.384 MB / 438.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02169/0.4119, allocations: 13.44 MB / 452.2 MB, free: 368 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0356/0.4476, allocations: 25.36 MB / 477.5 MB, free: 6.848 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009628/0.4572, allocations: 7.067 MB / 484.6 MB, free: 15.76 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01226/0.4695, allocations: 8.055 MB / 492.6 MB, free: 7.68 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005462/0.475, allocations: 1.988 MB / 494.6 MB, free: 5.691 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008027/0.4831, allocations: 2.382 MB / 497 MB, free: 3.309 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006387/0.4895, allocations: 4.15 MB / 0.4894 GB, free: 15.15 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01321/0.5027, allocations: 7.828 MB / 0.4971 GB, free: 7.289 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03148/0.5342, allocations: 26.42 MB / 0.5229 GB, free: 12.79 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.5343, allocations: 0 / 0.5229 GB, free: 12.79 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5343, allocations: 0 / 0.5229 GB, free: 12.79 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007588/0.5351, allocations: 3.938 kB / 0.5229 GB, free: 12.79 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.048/0.5831, allocations: 15.6 MB / 0.5381 GB, free: 13.07 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.5831, allocations: 8.031 kB / 0.5381 GB, free: 13.07 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05188/0.635, allocations: 9.118 MB / 0.547 GB, free: 3.922 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3505/0.9855, allocations: 7.499 MB / 0.5543 GB, free: 133.5 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009972/0.9866, allocations: 0.9462 MB / 0.5553 GB, free: 133.1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004709/0.9913, allocations: 1.24 MB / 0.5565 GB, free: 132.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05106/1.042, allocations: 20.15 MB / 0.5762 GB, free: 124.8 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006528/1.043, allocations: 23.69 kB / 0.5762 GB, free: 124.8 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004023/1.047, allocations: 0.5129 MB / 0.5767 GB, free: 124.4 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009353/1.048, allocations: 0.7348 MB / 0.5774 GB, free: 124.3 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03778/1.086, allocations: 18.98 MB / 0.5959 GB, free: 112.3 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1136/1.2, allocations: 62.65 MB / 0.6571 GB, free: 48.75 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05387/1.253, allocations: 56.98 MB / 0.7128 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01238/1.266, allocations: 4.093 MB / 0.7168 GB, free: 12.79 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02128/1.287, allocations: 11.34 MB / 0.7278 GB, free: 1.441 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.34e-05/1.287, allocations: 69.31 kB / 0.7279 GB, free: 1.363 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=349): time 5.501e-06/1.287, allocations: 0 / 0.7279 GB, free: 1.363 MB / 0.4982 GB Notification: Performance of matching and sorting (n=389): time 0.2304/1.518, allocations: 18.14 MB / 0.7456 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/1.518, allocations: 95.11 kB / 0.7457 GB, free: 165.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008465/1.526, allocations: 5.456 MB / 0.751 GB, free: 165 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007494/1.527, allocations: 91.8 kB / 0.7511 GB, free: 164.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003399/1.53, allocations: 5.883 MB / 0.7569 GB, free: 161.5 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001428/1.532, allocations: 1.377 MB / 0.7582 GB, free: 160.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002288/1.534, allocations: 1.51 MB / 0.7597 GB, free: 159.8 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.255e-05/1.534, allocations: 303.1 kB / 0.76 GB, free: 159.5 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004538/1.539, allocations: 3.081 MB / 0.763 GB, free: 158.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007075/1.546, allocations: 6.754 MB / 0.7696 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01206/1.558, allocations: 10.59 MB / 0.7799 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001539/1.558, allocations: 37.59 kB / 0.7799 GB, free: 144.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01728/1.575, allocations: 10.8 MB / 0.7905 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.834e-05/1.576, allocations: 60.81 kB / 0.7905 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002175/1.576, allocations: 126.5 kB / 0.7907 GB, free: 139.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/1.578, allocations: 0.9753 MB / 0.7916 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006524/1.585, allocations: 1.812 MB / 0.7934 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/1.595, allocations: 10.25 MB / 0.8034 GB, free: 132.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006701/1.602, allocations: 440.9 kB / 0.8038 GB, free: 132.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001171/1.603, allocations: 420.6 kB / 0.8042 GB, free: 132 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.00774/1.611, allocations: 4.453 MB / 0.8086 GB, free: 129.8 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001447/1.613, allocations: 0.5452 MB / 0.8091 GB, free: 129.5 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/1.623, allocations: 6.513 MB / 0.8155 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-05/1.623, allocations: 40 kB / 0.8155 GB, free: 125.7 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.409e-05/1.623, allocations: 8 kB / 0.8155 GB, free: 125.7 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-05/1.623, allocations: 28.98 kB / 0.8155 GB, free: 125.7 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03075/1.654, allocations: 15.95 MB / 0.8311 GB, free: 111.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.975e-05/1.654, allocations: 7.984 kB / 0.8311 GB, free: 111.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003578/1.658, allocations: 0.76 MB / 0.8319 GB, free: 110.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002324/1.66, allocations: 0.7923 MB / 0.8326 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006572/1.661, allocations: 79.98 kB / 0.8327 GB, free: 110 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008999/1.67, allocations: 9.337 MB / 0.8418 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/1.67, allocations: 7.625 kB / 0.8418 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0194/1.689, allocations: 9.534 MB / 0.8511 GB, free: 90.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003837/1.693, allocations: 1.076 MB / 0.8522 GB, free: 89.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001927/1.695, allocations: 75.89 kB / 0.8523 GB, free: 89.43 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005549/1.701, allocations: 223.8 kB / 0.8525 GB, free: 89.21 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/1.702, allocations: 262.7 kB / 0.8527 GB, free: 88.95 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006727/1.703, allocations: 112 kB / 0.8528 GB, free: 88.84 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007715/1.71, allocations: 3.599 MB / 0.8563 GB, free: 85.27 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.71e-07/1.71, allocations: 4 kB / 0.8564 GB, free: 85.26 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009969/1.72, allocations: 1.987 MB / 0.8583 GB, free: 83.28 MB / 0.5138 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.001118/1.721, allocations: 259.5 kB / 0.8585 GB, free: 83.03 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01312/1.735, allocations: 8.067 MB / 0.8664 GB, free: 74.9 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/1.735, allocations: 3.938 kB / 0.8664 GB, free: 74.89 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005393/1.74, allocations: 3.537 MB / 0.8699 GB, free: 71.29 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007979/1.748, allocations: 1.325 MB / 0.8712 GB, free: 69.98 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03535/1.783, allocations: 20.73 MB / 0.8914 GB, free: 49.22 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01084/1.794, allocations: 7.586 MB / 0.8988 GB, free: 41.59 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007049/1.801, allocations: 2.363 MB / 0.9011 GB, free: 39.21 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001716/1.803, allocations: 435.3 kB / 0.9015 GB, free: 38.79 MB / 0.5138 GB Notification: Performance of SimCode: time 2.094e-06/1.803, allocations: 0 / 0.9015 GB, free: 38.79 MB / 0.5138 GB Notification: Performance of Templates: time 0.3093/2.112, allocations: 73.81 MB / 0.9736 GB, free: 141.5 MB / 0.5138 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)