Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0008912/0.0008913, allocations: 92.75 kB / 16.3 MB, free: 5.996 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.0008994/0.0008995, allocations: 184.3 kB / 17.2 MB, free: 5.914 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.289/1.289, allocations: 205.4 MB / 223.4 MB, free: 5.543 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.0004477/0.0004478, allocations: 8 kB / 280.1 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2253, allocations: 47.59 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0315/0.2568, allocations: 32.06 MB / 359.8 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02327/0.2801, allocations: 10.18 MB / 370 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007332/0.2875, allocations: 239.1 kB / 370.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007296/0.2948, allocations: 2.106 MB / 372.3 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.3064, allocations: 3.669 MB / 376 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00574/0.3122, allocations: 1.809 MB / 377.8 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01519/0.3274, allocations: 10.3 MB / 388.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03543/0.3628, allocations: 19.77 MB / 407.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006847/0.3697, allocations: 4.676 MB / 412.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008031/0.3778, allocations: 5.424 MB / 418 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002457/0.3802, allocations: 0.7695 MB / 418.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003951/0.3842, allocations: 1.074 MB / 419.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003404/0.3876, allocations: 2.55 MB / 422.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004037/0.3917, allocations: 2.593 MB / 425 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02282/0.4145, allocations: 22.04 MB / 447 MB, free: 11.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4146, allocations: 0 / 447 MB, free: 11.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4146, allocations: 0 / 447 MB, free: 11.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007345/0.4153, allocations: 4 kB / 447 MB, free: 11.87 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.356/0.7714, allocations: 12.94 MB / 459.9 MB, free: 91.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.7715, allocations: 9.594 kB / 459.9 MB, free: 91.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04829/0.8198, allocations: 9.039 MB / 469 MB, free: 88.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01505/0.8349, allocations: 7.382 MB / 476.4 MB, free: 84.03 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006798/0.8356, allocations: 0.9475 MB / 477.3 MB, free: 83.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00372/0.8393, allocations: 1.247 MB / 478.6 MB, free: 83.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03777/0.8771, allocations: 19.95 MB / 498.5 MB, free: 63.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003216/0.8774, allocations: 27.8 kB / 498.5 MB, free: 63.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001908/0.8794, allocations: 0.511 MB / 499 MB, free: 62.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005018/0.8799, allocations: 0.7293 MB / 499.8 MB, free: 62.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03119/0.9111, allocations: 18.89 MB / 0.5065 GB, free: 43.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1012/1.012, allocations: 63.54 MB / 0.5686 GB, free: 10.49 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2424/1.255, allocations: 56.9 MB / 0.6241 GB, free: 101.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02044/1.275, allocations: 11.53 MB / 0.6354 GB, free: 97.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.884e-05/1.275, allocations: 80.73 kB / 0.6355 GB, free: 97.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=359): time 6.683e-06/1.275, allocations: 0 / 0.6355 GB, free: 97.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=399): time 0.02981/1.305, allocations: 17.55 MB / 0.6526 GB, free: 89.47 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.641e-05/1.305, allocations: 92.61 kB / 0.6527 GB, free: 89.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006642/1.312, allocations: 5.379 MB / 0.6579 GB, free: 87.43 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006066/1.313, allocations: 93.27 kB / 0.658 GB, free: 87.34 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00255/1.315, allocations: 5.876 MB / 0.6638 GB, free: 82.91 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00112/1.316, allocations: 1.401 MB / 0.6651 GB, free: 81.85 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003539/1.317, allocations: 153.3 kB / 0.6653 GB, free: 81.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003067/1.317, allocations: 0.6109 MB / 0.6659 GB, free: 81.29 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003954/1.321, allocations: 3.078 MB / 0.6689 GB, free: 80.14 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004988/1.326, allocations: 6.704 MB / 0.6754 GB, free: 74.11 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005599/1.331, allocations: 4.592 MB / 0.6799 GB, free: 70.18 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.076e-05/1.332, allocations: 36 kB / 0.6799 GB, free: 70.15 MB / 462.1 MB Notification: Performance of matching and sorting (n=988) (initialization): time 0.01447/1.346, allocations: 10.78 MB / 0.6905 GB, free: 59.31 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.042e-05/1.346, allocations: 61.56 kB / 0.6905 GB, free: 59.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/1.346, allocations: 127.9 kB / 0.6907 GB, free: 59.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002078/1.348, allocations: 0.9852 MB / 0.6916 GB, free: 58.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005496/1.354, allocations: 1.825 MB / 0.6934 GB, free: 56.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009116/1.363, allocations: 9.75 MB / 0.7029 GB, free: 46.15 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005437/1.368, allocations: 451.2 kB / 0.7033 GB, free: 45.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007161/1.369, allocations: 416 kB / 0.7037 GB, free: 45.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * 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 (939): * Single equations (assignments): 934 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006327/1.376, allocations: 4.463 MB / 0.7081 GB, free: 40.83 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001156/1.377, allocations: 0.544 MB / 0.7086 GB, free: 40.28 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009799/1.387, allocations: 6.607 MB / 0.7151 GB, free: 33.63 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.72e-05/1.387, allocations: 40 kB / 0.7151 GB, free: 33.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.376e-05/1.387, allocations: 8 kB / 0.7151 GB, free: 33.58 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.753e-05/1.387, allocations: 23.88 kB / 0.7152 GB, free: 33.56 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03037/1.417, allocations: 16.1 MB / 0.7309 GB, free: 17.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/1.417, allocations: 7.984 kB / 0.7309 GB, free: 17.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003088/1.42, allocations: 0.7766 MB / 0.7316 GB, free: 16.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/1.422, allocations: 0.7807 MB / 0.7324 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002272/1.422, allocations: 83.97 kB / 0.7325 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008108/1.43, allocations: 8.857 MB / 0.7411 GB, free: 6.516 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/1.43, allocations: 7.938 kB / 0.7411 GB, free: 6.508 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01286/1.443, allocations: 10.04 MB / 0.7509 GB, free: 12.32 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003007/1.446, allocations: 1.111 MB / 0.752 GB, free: 11.18 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009248/1.447, allocations: 72 kB / 0.7521 GB, free: 11.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002473/1.45, allocations: 227.8 kB / 0.7523 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005345/1.45, allocations: 274.8 kB / 0.7526 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002565/1.451, allocations: 112 kB / 0.7527 GB, free: 10.51 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005764/1.456, allocations: 3.528 MB / 0.7561 GB, free: 7.008 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.21e-07/1.456, allocations: 0 / 0.7561 GB, free: 7.008 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008352/1.465, allocations: 1.987 MB / 0.7581 GB, free: 5.023 MB / 478.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 (378): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007906/1.466, allocations: 257.2 kB / 0.7583 GB, free: 4.773 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01329/1.479, allocations: 8.084 MB / 0.7662 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/1.479, allocations: 0 / 0.7662 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005544/1.484, allocations: 3.57 MB / 0.7697 GB, free: 8.965 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005179/1.49, allocations: 1.184 MB / 0.7709 GB, free: 7.793 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03804/1.528, allocations: 24.82 MB / 0.7951 GB, free: 14.89 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01046/1.538, allocations: 7.797 MB / 0.8027 GB, free: 7.047 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.00734/1.546, allocations: 2.359 MB / 0.805 GB, free: 4.68 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/1.547, allocations: 431.3 kB / 0.8054 GB, free: 4.258 MB / 0.5138 GB Notification: Performance of SimCode: time 1.072e-06/1.547, allocations: 4 kB / 0.8054 GB, free: 4.254 MB / 0.5138 GB Notification: Performance of Templates: time 0.301/1.848, allocations: 72.89 MB / 0.8766 GB, free: 188.7 MB / 0.5294 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) Environment - environmentSimulation: