Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008909/0.0008909, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008739/0.0008739, allocations: 168.7 kB / 15.95 MB, free: 204 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.674/1.674, allocations: 205.4 MB / 222.1 MB, free: 5.629 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.0004686/0.0004686, allocations: 16 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3473, allocations: 47.59 MB / 326.5 MB, free: 1.598 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.0311/0.3784, allocations: 13.28 MB / 339.8 MB, free: 6.316 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01974/0.3982, allocations: 4.746 MB / 344.5 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005438/0.4038, allocations: 87.62 kB / 344.6 MB, free: 1.473 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00488/0.4087, allocations: 0.8078 MB / 345.4 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007044/0.4158, allocations: 1.026 MB / 346.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002894/0.4187, allocations: 0.6235 MB / 347.1 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007434/0.4261, allocations: 3.503 MB / 350.6 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005274/0.4315, allocations: 2.275 MB / 352.8 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002822/0.4343, allocations: 1.21 MB / 354 MB, free: 7.945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003095/0.4374, allocations: 1.576 MB / 355.6 MB, free: 6.363 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005902/0.438, allocations: 192 kB / 355.8 MB, free: 6.176 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001563/0.4396, allocations: 395.8 kB / 356.2 MB, free: 5.789 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008799/0.4405, allocations: 0.7863 MB / 357 MB, free: 5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.4417, allocations: 0.6952 MB / 357.7 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006041/0.4478, allocations: 5.068 MB / 362.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.455e-06/0.4478, allocations: 4 kB / 362.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.4478, allocations: 0 / 362.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000165/0.448, allocations: 0 / 362.7 MB, free: 15.21 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009634/0.4576, allocations: 3.614 MB / 366.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.4577, allocations: 8.031 kB / 366.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00325/0.4609, allocations: 0.6281 MB / 367 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004375/0.4653, allocations: 2.031 MB / 369 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002444/0.4656, allocations: 250.2 kB / 369.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005388/0.4661, allocations: 311.9 kB / 369.6 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00776/0.4739, allocations: 4.019 MB / 373.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.307e-05/0.474, allocations: 4 kB / 373.6 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002888/0.4743, allocations: 124 kB / 373.7 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001615/0.4745, allocations: 150.2 kB / 373.9 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006202/0.4807, allocations: 3.358 MB / 377.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02322/0.5039, allocations: 13.37 MB / 390.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00464/0.5086, allocations: 3.959 MB / 394.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001737/0.5104, allocations: 1.011 MB / 395.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005117/0.5155, allocations: 2.665 MB / 398.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/0.5156, allocations: 43.56 kB / 398.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 3.176e-06/0.5156, allocations: 0 / 398.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01235/0.528, allocations: 5.995 MB / 404.3 MB, free: 4.324 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.709e-05/0.5281, allocations: 64.72 kB / 404.3 MB, free: 4.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00354/0.5316, allocations: 1.877 MB / 406.2 MB, free: 2.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.5317, allocations: 45.7 kB / 406.3 MB, free: 2.277 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.5329, allocations: 1.501 MB / 407.8 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004761/0.5334, allocations: 0.4891 MB / 408.2 MB, free: 268 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.967e-05/0.5335, allocations: 32 kB / 408.3 MB, free: 236 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.5337, allocations: 385.8 kB / 408.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/0.535, allocations: 0.7691 MB / 409.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/0.5368, allocations: 1.367 MB / 410.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/0.5385, allocations: 1.006 MB / 411.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.797e-05/0.5385, allocations: 4 kB / 411.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004589/0.5431, allocations: 2.465 MB / 414.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.954e-05/0.5432, allocations: 12 kB / 414.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.806e-05/0.5432, allocations: 24.48 kB / 414.3 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004493/0.5437, allocations: 122.5 kB / 414.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/0.5455, allocations: 495.2 kB / 414.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.5467, allocations: 1.307 MB / 416.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.5483, allocations: 120 kB / 416.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001654/0.5485, allocations: 84 kB / 416.4 MB, free: 7.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002284/0.5507, allocations: 0.9773 MB / 417.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005602/0.5513, allocations: 201.5 kB / 417.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003771/0.5551, allocations: 1.965 MB / 419.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/0.5551, allocations: 16 kB / 419.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.5551, allocations: 0 / 419.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.5552, allocations: 7.969 kB / 419.6 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009179/0.5643, allocations: 4.985 MB / 424.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.5644, allocations: 4 kB / 424.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.5658, allocations: 311.6 kB / 424.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003232/0.5661, allocations: 102.7 kB / 425 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/0.5662, allocations: 31.98 kB / 425 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.5674, allocations: 1.288 MB / 426.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5674, allocations: 0 / 426.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005038/0.5724, allocations: 3.081 MB / 429.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001285/0.5737, allocations: 454.5 kB / 429.8 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005661/0.5743, allocations: 28 kB / 429.8 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/0.5756, allocations: 87.89 kB / 429.9 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/0.5757, allocations: 85.08 kB / 430 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-05/0.5758, allocations: 48 kB / 430.1 MB, free: 9.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002468/0.5783, allocations: 1.273 MB / 431.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5783, allocations: 0 / 431.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002259/0.5806, allocations: 0.5273 MB / 431.9 MB, free: 7.836 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003939/0.581, allocations: 163 kB / 432 MB, free: 7.668 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003934/0.5849, allocations: 2.204 MB / 434.2 MB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.585, allocations: 0 / 434.2 MB, free: 5.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001807/0.5868, allocations: 1.175 MB / 435.4 MB, free: 4.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/0.5897, allocations: 0.4906 MB / 435.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.6034, allocations: 6.734 MB / 442.6 MB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003187/0.6066, allocations: 2.259 MB / 444.9 MB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002326/0.609, allocations: 0.5132 MB / 445.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006446/0.6096, allocations: 155.4 kB / 445.5 MB, free: 9.934 MB / 382.1 MB Notification: Performance of SimCode: time 1.352e-06/0.6096, allocations: 0 / 445.5 MB, free: 9.934 MB / 382.1 MB Notification: Performance of Templates: time 0.284/0.8937, allocations: 24.16 MB / 469.7 MB, free: 104.8 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)