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.00763/0.00763, allocations: 99.98 kB / 15.73 MB, free: 6.016 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.001813/0.001813, allocations: 187.6 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.326/1.326, allocations: 205.1 MB / 222.6 MB, free: 4.5 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.001121/0.001121, allocations: 49.94 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1114, allocations: 46.63 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04342/0.1549, allocations: 40.01 MB / 413.2 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0248/0.1797, allocations: 10.55 MB / 423.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008021/0.1878, allocations: 263.1 kB / 424 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0196/0.2074, allocations: 8.539 MB / 432.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0134/0.2209, allocations: 3.644 MB / 436.2 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008191/0.2291, allocations: 2.389 MB / 438.6 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02053/0.2496, allocations: 13.42 MB / 452 MB, free: 2.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2888/0.5384, allocations: 25.36 MB / 477.4 MB, free: 4.586 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01025/0.5487, allocations: 7.041 MB / 484.4 MB, free: 2.934 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01269/0.5615, allocations: 8.194 MB / 492.6 MB, free: 15.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006025/0.5675, allocations: 1.989 MB / 494.6 MB, free: 15.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007888/0.5754, allocations: 2.381 MB / 497 MB, free: 15.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006625/0.5821, allocations: 4.15 MB / 0.4894 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01393/0.596, allocations: 7.828 MB / 0.497 GB, free: 5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0315/0.6276, allocations: 26.49 MB / 0.5229 GB, free: 13.36 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.6276, allocations: 0 / 0.5229 GB, free: 13.36 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.6276, allocations: 0 / 0.5229 GB, free: 13.36 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007092/0.6283, allocations: 0 / 0.5229 GB, free: 13.36 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.04658/0.6749, allocations: 15.9 MB / 0.5384 GB, free: 13.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.675, allocations: 15.97 kB / 0.5385 GB, free: 13.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05127/0.7262, allocations: 9.175 MB / 0.5474 GB, free: 4.336 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0184/0.7447, allocations: 7.531 MB / 0.5548 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001009/0.7457, allocations: 0.9442 MB / 0.5557 GB, free: 12.19 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004692/0.7504, allocations: 1.242 MB / 0.5569 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05058/0.801, allocations: 20.14 MB / 0.5766 GB, free: 6.785 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000801/0.8019, allocations: 27.17 kB / 0.5766 GB, free: 6.762 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0047/0.8066, allocations: 0.5163 MB / 0.5771 GB, free: 6.262 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000851/0.8075, allocations: 0.7293 MB / 0.5778 GB, free: 5.531 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04303/0.8505, allocations: 18.99 MB / 0.5964 GB, free: 2.543 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4874/1.338, allocations: 62.81 MB / 0.6577 GB, free: 140.3 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02996/1.368, allocations: 56.98 MB / 0.7133 GB, free: 87.98 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005523/1.373, allocations: 4.089 MB / 0.7173 GB, free: 86.43 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01614/1.39, allocations: 11.38 MB / 0.7284 GB, free: 81.34 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/1.39, allocations: 68.56 kB / 0.7285 GB, free: 81.28 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.911e-06/1.39, allocations: 2 kB / 0.7285 GB, free: 81.28 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.03472/1.424, allocations: 18.3 MB / 0.7464 GB, free: 71.62 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/1.425, allocations: 93.69 kB / 0.7465 GB, free: 71.56 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007245/1.432, allocations: 5.472 MB / 0.7518 GB, free: 68.76 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006234/1.432, allocations: 85.92 kB / 0.7519 GB, free: 68.68 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003019/1.435, allocations: 6.1 MB / 0.7579 GB, free: 63.86 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001308/1.437, allocations: 1.436 MB / 0.7593 GB, free: 62.62 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001967/1.439, allocations: 1.518 MB / 0.7607 GB, free: 61.58 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.858e-05/1.439, allocations: 301.1 kB / 0.761 GB, free: 61.29 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003814/1.443, allocations: 3.08 MB / 0.764 GB, free: 58.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004926/1.448, allocations: 6.755 MB / 0.7706 GB, free: 49.74 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009375/1.457, allocations: 10.59 MB / 0.781 GB, free: 37.35 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.187e-05/1.457, allocations: 36 kB / 0.781 GB, free: 37.32 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01604/1.473, allocations: 10.83 MB / 0.7916 GB, free: 26.43 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 7.129e-05/1.473, allocations: 60 kB / 0.7916 GB, free: 26.37 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001534/1.473, allocations: 124 kB / 0.7918 GB, free: 26.25 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002224/1.476, allocations: 0.9767 MB / 0.7927 GB, free: 25.26 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006099/1.482, allocations: 1.81 MB / 0.7945 GB, free: 23.45 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.492, allocations: 10.26 MB / 0.8045 GB, free: 12.77 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006373/1.498, allocations: 447.6 kB / 0.8049 GB, free: 12.33 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001267/1.5, allocations: 420 kB / 0.8053 GB, free: 11.92 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.007652/1.507, allocations: 4.464 MB / 0.8097 GB, free: 7.438 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001541/1.509, allocations: 0.5744 MB / 0.8102 GB, free: 6.859 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.52, allocations: 6.515 MB / 0.8166 GB, free: 304 kB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-05/1.52, allocations: 43.98 kB / 0.8167 GB, free: 260 kB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.389e-05/1.52, allocations: 8 kB / 0.8167 GB, free: 252 kB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.023e-05/1.52, allocations: 19.92 kB / 0.8167 GB, free: 232 kB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0295/1.549, allocations: 15.95 MB / 0.8323 GB, free: 260 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/1.549, allocations: 4 kB / 0.8323 GB, free: 256 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2176/1.767, allocations: 0.7468 MB / 0.833 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002907/1.77, allocations: 0.7925 MB / 0.8338 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009247/1.771, allocations: 85.05 kB / 0.8338 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01132/1.782, allocations: 9.348 MB / 0.843 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.086e-06/1.782, allocations: 7.422 kB / 0.843 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01698/1.799, allocations: 9.561 MB / 0.8523 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003124/1.803, allocations: 1.11 MB / 0.8534 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001433/1.804, allocations: 71.25 kB / 0.8535 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003586/1.808, allocations: 220.3 kB / 0.8537 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008171/1.808, allocations: 269.1 kB / 0.8539 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002825/1.809, allocations: 113.6 kB / 0.854 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006254/1.815, allocations: 3.603 MB / 0.8576 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/1.815, allocations: 0 / 0.8576 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008092/1.823, allocations: 1.985 MB / 0.8595 GB, free: 163.9 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.001054/1.824, allocations: 250.4 kB / 0.8597 GB, free: 163.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01213/1.836, allocations: 8.076 MB / 0.8676 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.836, allocations: 0 / 0.8676 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005509/1.842, allocations: 3.543 MB / 0.8711 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007415/1.849, allocations: 1.316 MB / 0.8724 GB, free: 158.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03305/1.882, allocations: 21.07 MB / 0.8929 GB, free: 146.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00814/1.891, allocations: 7.588 MB / 0.9004 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006023/1.897, allocations: 2.363 MB / 0.9027 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001472/1.898, allocations: 432.7 kB / 0.9031 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of SimCode: time 1.793e-06/1.898, allocations: 0 / 0.9031 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of Templates: time 0.1083/2.006, allocations: 73.83 MB / 0.9752 GB, free: 65.16 MB / 0.5294 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)