Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 92.16 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.001487/0.001487, 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.445/1.445, allocations: 205.4 MB / 222.1 MB, free: 5.531 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.0005284/0.0005287, allocations: 12 kB / 278.9 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2266/0.2271, allocations: 47.58 MB / 326.5 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.05208/0.2793, allocations: 36.49 MB / 363 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02936/0.3087, allocations: 10.29 MB / 373.3 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009123/0.3178, allocations: 255.1 kB / 373.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007831/0.3257, allocations: 1.782 MB / 375.3 MB, free: 2.508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01257/0.3383, allocations: 3.141 MB / 378.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006733/0.3451, allocations: 1.61 MB / 380.1 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02192/0.367, allocations: 14.76 MB / 394.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04242/0.4095, allocations: 20.28 MB / 415.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009834/0.4194, allocations: 5.139 MB / 420.2 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01057/0.43, allocations: 6.128 MB / 426.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003316/0.4333, allocations: 0.7969 MB / 427.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007968/0.4413, allocations: 1.156 MB / 428.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005532/0.4469, allocations: 2.678 MB / 431 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005827/0.4528, allocations: 2.675 MB / 433.7 MB, free: 7.898 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0264/0.4792, allocations: 22.57 MB / 456.3 MB, free: 1.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.986e-06/0.4793, allocations: 0 / 456.3 MB, free: 1.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.786e-06/0.4793, allocations: 0 / 456.3 MB, free: 1.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0009101/0.4802, allocations: 0 / 456.3 MB, free: 1.266 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.3289/0.8092, allocations: 13.34 MB / 469.6 MB, free: 93.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.8092, allocations: 15.77 kB / 469.6 MB, free: 93.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0446/0.8538, allocations: 9.208 MB / 478.8 MB, free: 87.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01398/0.8678, allocations: 7.545 MB / 486.4 MB, free: 79.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007861/0.8687, allocations: 0.9785 MB / 487.3 MB, free: 78.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003967/0.8726, allocations: 1.283 MB / 488.6 MB, free: 77.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04684/0.9195, allocations: 20.42 MB / 0.4971 GB, free: 56.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005692/0.9201, allocations: 27.8 kB / 0.4971 GB, free: 56.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003355/0.9235, allocations: 0.5258 MB / 0.4977 GB, free: 56.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005803/0.9241, allocations: 0.7533 MB / 0.4984 GB, free: 55.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03652/0.9606, allocations: 19.13 MB / 0.5171 GB, free: 36.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1093/1.07, allocations: 65.21 MB / 0.5808 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2211/1.291, allocations: 57.2 MB / 0.6366 GB, free: 109.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007754/1.299, allocations: 4.189 MB / 0.6407 GB, free: 109.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02072/1.32, allocations: 11.69 MB / 0.6521 GB, free: 104.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/1.32, allocations: 72.53 kB / 0.6522 GB, free: 104.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 5.149e-06/1.32, allocations: 0 / 0.6522 GB, free: 104.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03707/1.357, allocations: 18.79 MB / 0.6705 GB, free: 96.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/1.357, allocations: 91.7 kB / 0.6706 GB, free: 96.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007103/1.364, allocations: 5.649 MB / 0.6761 GB, free: 93.57 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006248/1.365, allocations: 85.7 kB / 0.6762 GB, free: 93.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002577/1.367, allocations: 6.044 MB / 0.6821 GB, free: 88.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001194/1.369, allocations: 1.427 MB / 0.6835 GB, free: 86.85 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003417/1.369, allocations: 156 kB / 0.6837 GB, free: 86.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002684/1.369, allocations: 0.6253 MB / 0.6843 GB, free: 86.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003861/1.373, allocations: 3.114 MB / 0.6873 GB, free: 83.49 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005051/1.378, allocations: 6.861 MB / 0.694 GB, free: 74.84 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005806/1.384, allocations: 4.652 MB / 0.6986 GB, free: 70.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.946e-05/1.384, allocations: 40 kB / 0.6986 GB, free: 70.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.0177/1.402, allocations: 10.97 MB / 0.7093 GB, free: 59.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.286e-05/1.402, allocations: 63.95 kB / 0.7094 GB, free: 59.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001667/1.402, allocations: 128 kB / 0.7095 GB, free: 58.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002149/1.404, allocations: 0.9842 MB / 0.7105 GB, free: 57.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005921/1.41, allocations: 1.86 MB / 0.7123 GB, free: 56.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008988/1.419, allocations: 9.532 MB / 0.7216 GB, free: 46.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00567/1.425, allocations: 447.2 kB / 0.722 GB, free: 45.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008537/1.426, allocations: 435.9 kB / 0.7224 GB, free: 45.26 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 (958): * Single equations (assignments): 953 * 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.00631/1.432, allocations: 4.511 MB / 0.7268 GB, free: 40.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/1.433, allocations: 0.571 MB / 0.7274 GB, free: 40.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008953/1.442, allocations: 6.702 MB / 0.7339 GB, free: 33.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.157e-05/1.442, allocations: 40 kB / 0.734 GB, free: 33.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/1.442, allocations: 11.98 kB / 0.734 GB, free: 33.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.01e-05/1.442, allocations: 19.92 kB / 0.734 GB, free: 33.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02087/1.463, allocations: 16.47 MB / 0.7501 GB, free: 16.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/1.463, allocations: 7.938 kB / 0.7501 GB, free: 16.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00291/1.466, allocations: 0.7762 MB / 0.7508 GB, free: 16.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001798/1.468, allocations: 0.7885 MB / 0.7516 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003354/1.468, allocations: 99.92 kB / 0.7517 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00778/1.476, allocations: 8.655 MB / 0.7602 GB, free: 6.074 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/1.476, allocations: 4 kB / 0.7602 GB, free: 6.07 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01337/1.489, allocations: 9.792 MB / 0.7697 GB, free: 12.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002772/1.492, allocations: 1.142 MB / 0.7708 GB, free: 10.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000913/1.493, allocations: 72 kB / 0.7709 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002214/1.495, allocations: 235.7 kB / 0.7711 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005154/1.496, allocations: 274.8 kB / 0.7714 GB, free: 10.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002485/1.496, allocations: 120 kB / 0.7715 GB, free: 10.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005657/1.502, allocations: 3.699 MB / 0.7751 GB, free: 6.633 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.502, allocations: 0 / 0.7751 GB, free: 6.633 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007336/1.509, allocations: 2.042 MB / 0.7771 GB, free: 4.594 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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.0006412/1.51, allocations: 260.6 kB / 0.7774 GB, free: 4.336 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1806/1.69, allocations: 8.179 MB / 0.7854 GB, free: 155.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/1.69, allocations: 1.062 kB / 0.7854 GB, free: 155.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004965/1.695, allocations: 3.615 MB / 0.7889 GB, free: 154.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006394/1.702, allocations: 1.358 MB / 0.7902 GB, free: 154.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03301/1.735, allocations: 25.76 MB / 0.8154 GB, free: 140.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007627/1.743, allocations: 7.699 MB / 0.8229 GB, free: 134.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006613/1.749, allocations: 2.397 MB / 0.8252 GB, free: 131.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/1.75, allocations: 455.3 kB / 0.8257 GB, free: 131.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/1.75, allocations: 0 / 0.8257 GB, free: 131.5 MB / 462.1 MB Notification: Performance of Templates: time 0.1128/1.863, allocations: 76.75 MB / 0.9006 GB, free: 54.66 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)