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.001184/0.001185, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.001574/0.001574, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004473/0.0004474, allocations: 15.98 kB / 278.9 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2156, allocations: 47.57 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03735/0.253, allocations: 34.95 MB / 361.5 MB, free: 452 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02106/0.2741, allocations: 9.805 MB / 371.3 MB, free: 6.609 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006568/0.2807, allocations: 247.1 kB / 371.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006061/0.2868, allocations: 1.674 MB / 373.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01092/0.2977, allocations: 2.989 MB / 376.2 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00622/0.304, allocations: 1.571 MB / 377.7 MB, free: 108 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01953/0.3235, allocations: 14.36 MB / 392.1 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04195/0.3655, allocations: 19.97 MB / 412.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009115/0.3747, allocations: 4.999 MB / 417.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01014/0.3848, allocations: 5.969 MB / 423 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00325/0.3881, allocations: 0.7734 MB / 423.8 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005602/0.3938, allocations: 1.136 MB / 424.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004669/0.3985, allocations: 2.62 MB / 427.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006596/0.4051, allocations: 2.609 MB / 430.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02543/0.4305, allocations: 22.09 MB / 452.3 MB, free: 5.301 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.4306, allocations: 0 / 452.3 MB, free: 5.301 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.085e-06/0.4306, allocations: 0 / 452.3 MB, free: 5.301 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007598/0.4314, allocations: 0 / 452.3 MB, free: 5.301 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.367/0.7984, allocations: 12.99 MB / 465.3 MB, free: 92.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.7985, allocations: 7.906 kB / 465.3 MB, free: 92.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04549/0.844, allocations: 9.136 MB / 474.4 MB, free: 88.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01598/0.86, allocations: 7.355 MB / 481.7 MB, free: 80.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008499/0.8609, allocations: 0.9496 MB / 482.7 MB, free: 79.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004643/0.8655, allocations: 1.249 MB / 483.9 MB, free: 78.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04559/0.9111, allocations: 20.06 MB / 0.4922 GB, free: 58.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005093/0.9117, allocations: 23.73 kB / 0.4922 GB, free: 58.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003792/0.9155, allocations: 0.5179 MB / 0.4927 GB, free: 57.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007164/0.9162, allocations: 0.7333 MB / 0.4934 GB, free: 57.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03839/0.9546, allocations: 18.86 MB / 0.5119 GB, free: 38.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1043/1.059, allocations: 63.58 MB / 0.5739 GB, free: 5.395 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2105/1.27, allocations: 56.9 MB / 0.6295 GB, free: 146.1 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007311/1.277, allocations: 4.116 MB / 0.6335 GB, free: 145.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01591/1.293, allocations: 11.4 MB / 0.6447 GB, free: 140.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/1.293, allocations: 70.44 kB / 0.6447 GB, free: 140.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 4.168e-06/1.293, allocations: 3.875 kB / 0.6447 GB, free: 140.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03917/1.332, allocations: 19.08 MB / 0.6634 GB, free: 133 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/1.332, allocations: 91.78 kB / 0.6635 GB, free: 133 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008887/1.341, allocations: 5.424 MB / 0.6688 GB, free: 130.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000628/1.342, allocations: 89.7 kB / 0.6688 GB, free: 130.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003045/1.345, allocations: 5.883 MB / 0.6746 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001378/1.346, allocations: 1.374 MB / 0.6759 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009428/1.347, allocations: 156 kB / 0.6761 GB, free: 123.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0006174/1.348, allocations: 0.6116 MB / 0.6767 GB, free: 123.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004999/1.353, allocations: 3.054 MB / 0.6797 GB, free: 120.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006876/1.36, allocations: 6.724 MB / 0.6862 GB, free: 111.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009184/1.369, allocations: 4.569 MB / 0.6907 GB, free: 107.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001276/1.369, allocations: 36 kB / 0.6907 GB, free: 107.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02148/1.391, allocations: 10.73 MB / 0.7012 GB, free: 96.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001571/1.391, allocations: 61.41 kB / 0.7013 GB, free: 96.28 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000182/1.391, allocations: 124 kB / 0.7014 GB, free: 96.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002373/1.393, allocations: 0.9967 MB / 0.7023 GB, free: 95.15 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006186/1.4, allocations: 1.813 MB / 0.7041 GB, free: 93.34 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/1.41, allocations: 9.535 MB / 0.7134 GB, free: 83.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00581/1.415, allocations: 448.3 kB / 0.7139 GB, free: 82.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001289/1.417, allocations: 419.9 kB / 0.7143 GB, free: 82.55 MB / 462.1 MB 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 (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.008494/1.425, allocations: 4.457 MB / 0.7186 GB, free: 78.08 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001876/1.427, allocations: 0.544 MB / 0.7191 GB, free: 77.53 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01283/1.44, allocations: 6.518 MB / 0.7255 GB, free: 70.96 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.023e-05/1.44, allocations: 43.94 kB / 0.7255 GB, free: 70.92 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.442e-05/1.44, allocations: 8 kB / 0.7256 GB, free: 70.91 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-05/1.44, allocations: 23.92 kB / 0.7256 GB, free: 70.89 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0323/1.473, allocations: 15.94 MB / 0.7411 GB, free: 54.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.798e-05/1.473, allocations: 4 kB / 0.7411 GB, free: 54.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003323/1.476, allocations: 0.7489 MB / 0.7419 GB, free: 54.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002078/1.478, allocations: 0.7924 MB / 0.7427 GB, free: 53.36 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005727/1.479, allocations: 83.98 kB / 0.7427 GB, free: 53.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008589/1.487, allocations: 8.66 MB / 0.7512 GB, free: 44.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.487, allocations: 4 kB / 0.7512 GB, free: 44.21 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01553/1.503, allocations: 9.499 MB / 0.7605 GB, free: 34.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002956/1.506, allocations: 1.099 MB / 0.7615 GB, free: 33.48 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001544/1.507, allocations: 68 kB / 0.7616 GB, free: 33.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003371/1.511, allocations: 227.8 kB / 0.7618 GB, free: 33.19 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007155/1.512, allocations: 258.8 kB / 0.7621 GB, free: 32.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004144/1.512, allocations: 116 kB / 0.7622 GB, free: 32.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006593/1.519, allocations: 3.56 MB / 0.7657 GB, free: 29.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/1.519, allocations: 0 / 0.7657 GB, free: 29.29 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009465/1.528, allocations: 1.987 MB / 0.7676 GB, free: 27.3 MB / 462.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 (368): * Single equations (assignments): 363 * 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.0009389/1.529, allocations: 258 kB / 0.7678 GB, free: 27.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01247/1.541, allocations: 8.004 MB / 0.7757 GB, free: 18.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.542, allocations: 0 / 0.7757 GB, free: 18.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005165/1.547, allocations: 3.531 MB / 0.7791 GB, free: 15.36 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00728/1.554, allocations: 1.252 MB / 0.7803 GB, free: 14.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2295/1.784, allocations: 25.14 MB / 0.8049 GB, free: 144.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0116/1.795, allocations: 7.594 MB / 0.8123 GB, free: 142.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00862/1.804, allocations: 2.36 MB / 0.8146 GB, free: 142.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002016/1.806, allocations: 430.8 kB / 0.815 GB, free: 142.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/1.806, allocations: 0 / 0.815 GB, free: 142.5 MB / 462.1 MB Notification: Performance of Templates: time 0.124/1.93, allocations: 73.14 MB / 0.8864 GB, free: 73.08 MB / 462.1 MB 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)