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.005412/0.005412, allocations: 109.5 kB / 15.74 MB, free: 6.445 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.001278/0.001278, allocations: 191.5 kB / 16.67 MB, free: 6.355 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.321/1.321, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001131/0.001131, allocations: 50.52 kB / 326.6 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08582/0.08696, allocations: 46.62 MB / 373.2 MB, free: 1.406 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03959/0.1266, allocations: 40.01 MB / 413.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02345/0.1501, allocations: 10.55 MB / 423.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01022/0.1603, allocations: 263.1 kB / 424 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01996/0.1804, allocations: 8.602 MB / 432.6 MB, free: 5.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01378/0.1942, allocations: 3.714 MB / 436.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007281/0.2015, allocations: 2.393 MB / 438.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01625/0.2177, allocations: 13.42 MB / 452.2 MB, free: 2.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2487/0.4664, allocations: 25.37 MB / 477.5 MB, free: 3.961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01324/0.4797, allocations: 7.062 MB / 484.6 MB, free: 2.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01317/0.4929, allocations: 8.177 MB / 492.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005075/0.498, allocations: 1.989 MB / 494.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006855/0.5049, allocations: 2.382 MB / 497.1 MB, free: 15.29 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006014/0.5109, allocations: 4.148 MB / 0.4895 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01191/0.5228, allocations: 7.831 MB / 0.4972 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02751/0.5504, allocations: 26.42 MB / 0.523 GB, free: 13.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.5504, allocations: 0 / 0.523 GB, free: 13.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5504, allocations: 0 / 0.523 GB, free: 13.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006207/0.551, allocations: 0 / 0.523 GB, free: 13.32 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.04457/0.5956, allocations: 15.6 MB / 0.5382 GB, free: 13.72 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.5957, allocations: 8.031 kB / 0.5382 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05123/0.6469, allocations: 9.116 MB / 0.5471 GB, free: 4.684 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01601/0.663, allocations: 7.506 MB / 0.5545 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009298/0.6639, allocations: 0.9436 MB / 0.5554 GB, free: 12.57 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004927/0.6689, allocations: 1.245 MB / 0.5566 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04928/0.7182, allocations: 20.15 MB / 0.5763 GB, free: 7.156 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004508/0.7187, allocations: 23.28 kB / 0.5763 GB, free: 7.137 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004198/0.7229, allocations: 0.5136 MB / 0.5768 GB, free: 6.637 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008021/0.7237, allocations: 0.7371 MB / 0.5775 GB, free: 5.898 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04227/0.766, allocations: 18.97 MB / 0.5961 GB, free: 2.922 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4676/1.234, allocations: 62.65 MB / 0.6572 GB, free: 141.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02907/1.263, allocations: 56.98 MB / 0.7129 GB, free: 89.21 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00558/1.268, allocations: 4.093 MB / 0.7169 GB, free: 87.67 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01561/1.284, allocations: 11.35 MB / 0.728 GB, free: 82.42 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/1.284, allocations: 72.06 kB / 0.728 GB, free: 82.35 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.521e-06/1.284, allocations: 3.938 kB / 0.728 GB, free: 82.35 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.03243/1.317, allocations: 18.13 MB / 0.7457 GB, free: 72.57 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/1.317, allocations: 90.09 kB / 0.7458 GB, free: 72.5 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006239/1.323, allocations: 5.463 MB / 0.7512 GB, free: 69.63 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0002882/1.323, allocations: 85.83 kB / 0.7512 GB, free: 69.55 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002215/1.325, allocations: 5.887 MB / 0.757 GB, free: 64.41 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007507/1.326, allocations: 1.383 MB / 0.7583 GB, free: 63.23 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001658/1.328, allocations: 1.504 MB / 0.7598 GB, free: 61.75 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.684e-05/1.328, allocations: 305.1 kB / 0.7601 GB, free: 61.45 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003538/1.331, allocations: 3.083 MB / 0.7631 GB, free: 58.37 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004629/1.336, allocations: 6.751 MB / 0.7697 GB, free: 49.86 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009014/1.345, allocations: 10.59 MB / 0.78 GB, free: 37.46 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-05/1.345, allocations: 40 kB / 0.7801 GB, free: 37.43 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01372/1.359, allocations: 10.8 MB / 0.7906 GB, free: 26.56 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.094e-05/1.359, allocations: 60 kB / 0.7907 GB, free: 26.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001389/1.359, allocations: 124 kB / 0.7908 GB, free: 26.38 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002232/1.361, allocations: 0.9687 MB / 0.7917 GB, free: 25.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005673/1.367, allocations: 1.817 MB / 0.7935 GB, free: 23.58 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009759/1.377, allocations: 10.25 MB / 0.8035 GB, free: 12.91 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005826/1.383, allocations: 439.3 kB / 0.804 GB, free: 12.48 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009334/1.384, allocations: 420.8 kB / 0.8044 GB, free: 12.07 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.006797/1.39, allocations: 4.457 MB / 0.8087 GB, free: 7.594 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001305/1.392, allocations: 0.548 MB / 0.8092 GB, free: 7.039 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009193/1.401, allocations: 6.523 MB / 0.8156 GB, free: 480 kB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.05e-05/1.401, allocations: 43.98 kB / 0.8157 GB, free: 436 kB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/1.401, allocations: 8 kB / 0.8157 GB, free: 428 kB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.923e-05/1.401, allocations: 19.92 kB / 0.8157 GB, free: 408 kB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02778/1.429, allocations: 15.93 MB / 0.8312 GB, free: 452 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.541e-05/1.429, allocations: 4 kB / 0.8312 GB, free: 448 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2114/1.64, allocations: 0.7515 MB / 0.832 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002564/1.643, allocations: 0.7915 MB / 0.8327 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005071/1.643, allocations: 87.8 kB / 0.8328 GB, free: 173.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009849/1.653, allocations: 9.343 MB / 0.842 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/1.653, allocations: 3.312 kB / 0.842 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01394/1.667, allocations: 9.531 MB / 0.8513 GB, free: 165.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002236/1.669, allocations: 1.076 MB / 0.8523 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007069/1.67, allocations: 72.19 kB / 0.8524 GB, free: 165.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002433/1.673, allocations: 223.5 kB / 0.8526 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006142/1.673, allocations: 267.7 kB / 0.8529 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002236/1.673, allocations: 113.8 kB / 0.853 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004993/1.678, allocations: 3.603 MB / 0.8565 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/1.678, allocations: 0 / 0.8565 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006242/1.685, allocations: 1.99 MB / 0.8584 GB, free: 163.7 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.0005571/1.685, allocations: 248.9 kB / 0.8587 GB, free: 163.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01049/1.696, allocations: 8.076 MB / 0.8665 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.696, allocations: 1.656 kB / 0.8665 GB, free: 160.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005117/1.701, allocations: 3.535 MB / 0.87 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005847/1.707, allocations: 1.312 MB / 0.8713 GB, free: 158 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03078/1.738, allocations: 20.73 MB / 0.8915 GB, free: 146.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006545/1.744, allocations: 7.601 MB / 0.899 GB, free: 140.5 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005797/1.75, allocations: 2.355 MB / 0.9013 GB, free: 138.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/1.751, allocations: 430.4 kB / 0.9017 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of SimCode: time 8.31e-07/1.751, allocations: 4 kB / 0.9017 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.1078/1.859, allocations: 73.81 MB / 0.9737 GB, free: 65.47 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)