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.008137/0.008137, allocations: 101.3 kB / 15.73 MB, free: 6.043 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.001637/0.001637, allocations: 186.2 kB / 16.67 MB, free: 5.973 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.327/1.327, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.001159/0.001159, allocations: 52.67 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08494/0.08611, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04145/0.1276, allocations: 40.02 MB / 413.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0223/0.15, allocations: 10.54 MB / 423.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01075/0.1608, allocations: 263.1 kB / 424 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02066/0.1815, allocations: 8.535 MB / 432.6 MB, free: 5.691 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01353/0.1951, allocations: 3.636 MB / 436.2 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007561/0.2026, allocations: 2.401 MB / 438.6 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01973/0.2224, allocations: 13.42 MB / 452 MB, free: 2.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2412/0.4636, allocations: 25.36 MB / 477.4 MB, free: 4.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01205/0.4757, allocations: 7.042 MB / 484.4 MB, free: 2.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01502/0.4908, allocations: 8.228 MB / 492.7 MB, free: 15.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005647/0.4965, allocations: 1.991 MB / 494.6 MB, free: 15.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007988/0.5045, allocations: 2.382 MB / 497 MB, free: 15.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006497/0.511, allocations: 4.155 MB / 0.4894 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01403/0.5251, allocations: 7.83 MB / 0.4971 GB, free: 5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03505/0.5602, allocations: 26.43 MB / 0.5229 GB, free: 13.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.5602, allocations: 0 / 0.5229 GB, free: 13.59 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5603, allocations: 4 kB / 0.5229 GB, free: 13.59 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007681/0.561, allocations: 0 / 0.5229 GB, free: 13.59 MB / 430.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.05066/0.6117, allocations: 15.6 MB / 0.5381 GB, free: 14.01 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.6118, allocations: 16.03 kB / 0.5381 GB, free: 13.99 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0529/0.6647, allocations: 9.105 MB / 0.547 GB, free: 4.969 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01889/0.6836, allocations: 7.508 MB / 0.5544 GB, free: 13.77 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001133/0.6848, allocations: 0.9411 MB / 0.5553 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00495/0.6898, allocations: 1.246 MB / 0.5565 GB, free: 11.61 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04659/0.7364, allocations: 20.15 MB / 0.5762 GB, free: 7.43 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005795/0.737, allocations: 23.75 kB / 0.5762 GB, free: 7.406 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003978/0.741, allocations: 0.509 MB / 0.5767 GB, free: 6.91 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008228/0.7418, allocations: 0.7404 MB / 0.5774 GB, free: 6.172 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04231/0.7842, allocations: 18.98 MB / 0.5959 GB, free: 3.188 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4673/1.252, allocations: 62.64 MB / 0.6571 GB, free: 141.4 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03048/1.282, allocations: 56.98 MB / 0.7128 GB, free: 89.17 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00748/1.29, allocations: 4.093 MB / 0.7168 GB, free: 87.76 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01644/1.306, allocations: 11.35 MB / 0.7279 GB, free: 82.51 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/1.306, allocations: 68.19 kB / 0.7279 GB, free: 82.45 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.06e-06/1.306, allocations: 3.938 kB / 0.7279 GB, free: 82.44 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.0341/1.34, allocations: 18.13 MB / 0.7456 GB, free: 72.63 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/1.34, allocations: 96.16 kB / 0.7457 GB, free: 72.56 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006683/1.347, allocations: 5.457 MB / 0.751 GB, free: 69.69 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006142/1.348, allocations: 88.95 kB / 0.7511 GB, free: 69.61 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002567/1.35, allocations: 5.888 MB / 0.7569 GB, free: 64.48 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00109/1.351, allocations: 1.376 MB / 0.7582 GB, free: 63.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001808/1.353, allocations: 1.51 MB / 0.7597 GB, free: 61.98 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.184e-05/1.353, allocations: 301.1 kB / 0.76 GB, free: 61.68 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003777/1.357, allocations: 3.08 MB / 0.763 GB, free: 58.6 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004922/1.362, allocations: 6.758 MB / 0.7696 GB, free: 50.08 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009774/1.372, allocations: 10.58 MB / 0.7799 GB, free: 37.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/1.372, allocations: 40 kB / 0.78 GB, free: 37.66 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01642/1.388, allocations: 10.79 MB / 0.7905 GB, free: 26.8 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.562e-05/1.388, allocations: 59.98 kB / 0.7906 GB, free: 26.74 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002025/1.389, allocations: 128 kB / 0.7907 GB, free: 26.61 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002384/1.391, allocations: 0.9725 MB / 0.7916 GB, free: 25.63 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005978/1.397, allocations: 1.817 MB / 0.7934 GB, free: 23.81 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009961/1.407, allocations: 10.25 MB / 0.8034 GB, free: 13.13 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006309/1.413, allocations: 447.3 kB / 0.8038 GB, free: 12.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001429/1.415, allocations: 416 kB / 0.8042 GB, free: 12.29 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.007616/1.422, allocations: 4.453 MB / 0.8086 GB, free: 7.82 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/1.424, allocations: 0.5519 MB / 0.8091 GB, free: 7.262 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01056/1.435, allocations: 6.513 MB / 0.8155 GB, free: 0.6992 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.719e-05/1.435, allocations: 40 kB / 0.8155 GB, free: 0.6602 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/1.435, allocations: 11.98 kB / 0.8155 GB, free: 0.6484 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-05/1.435, allocations: 23.59 kB / 0.8156 GB, free: 0.6289 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03135/1.466, allocations: 15.93 MB / 0.8311 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.659e-05/1.466, allocations: 4 kB / 0.8311 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2117/1.678, allocations: 0.7572 MB / 0.8319 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002619/1.68, allocations: 0.7933 MB / 0.8326 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007108/1.681, allocations: 81.92 kB / 0.8327 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/1.692, allocations: 9.344 MB / 0.8418 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/1.692, allocations: 5.453 kB / 0.8419 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/1.707, allocations: 9.531 MB / 0.8512 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002848/1.71, allocations: 1.075 MB / 0.8522 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007202/1.71, allocations: 71.69 kB / 0.8523 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002396/1.713, allocations: 220.6 kB / 0.8525 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006353/1.713, allocations: 271.1 kB / 0.8527 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002382/1.714, allocations: 115.1 kB / 0.8529 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004897/1.719, allocations: 3.599 MB / 0.8564 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.71e-07/1.719, allocations: 0 / 0.8564 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007416/1.726, allocations: 1.986 MB / 0.8583 GB, free: 163.2 MB / 0.5294 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.000785/1.727, allocations: 257.5 kB / 0.8586 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01212/1.739, allocations: 8.07 MB / 0.8664 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/1.739, allocations: 0 / 0.8664 GB, free: 159.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005494/1.745, allocations: 3.535 MB / 0.8699 GB, free: 158 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006266/1.751, allocations: 1.317 MB / 0.8712 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03327/1.784, allocations: 20.74 MB / 0.8914 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01019/1.794, allocations: 7.596 MB / 0.8988 GB, free: 140.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00627/1.801, allocations: 2.356 MB / 0.9011 GB, free: 139 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/1.802, allocations: 435.8 kB / 0.9016 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of SimCode: time 7.81e-07/1.802, allocations: 3.828 kB / 0.9016 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1155/1.918, allocations: 73.81 MB / 0.9736 GB, free: 65.65 MB / 0.5294 GB 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)