Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001034/0.001034, allocations: 84.38 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.0009395/0.0009396, 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.449/1.449, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0004541/0.0004542, allocations: 12 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2387, allocations: 47.59 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01388/0.2527, allocations: 13.28 MB / 339.8 MB, free: 6.184 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01126/0.264, allocations: 4.739 MB / 344.5 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004127/0.2681, allocations: 79.62 kB / 344.6 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003246/0.2714, allocations: 0.8078 MB / 345.4 MB, free: 0.543 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004408/0.2758, allocations: 1.037 MB / 346.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002565/0.2784, allocations: 0.6236 MB / 347.1 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005605/0.284, allocations: 3.51 MB / 350.6 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004355/0.2884, allocations: 2.264 MB / 352.8 MB, free: 9.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002563/0.291, allocations: 1.206 MB / 354 MB, free: 7.824 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003178/0.2942, allocations: 1.583 MB / 355.6 MB, free: 6.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001309/0.2956, allocations: 192 kB / 355.8 MB, free: 6.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002124/0.2977, allocations: 395.7 kB / 356.2 MB, free: 5.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001367/0.2991, allocations: 0.7825 MB / 357 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001751/0.3009, allocations: 0.703 MB / 357.7 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006724/0.3076, allocations: 5.064 MB / 362.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.3076, allocations: 3.984 kB / 362.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3076, allocations: 0 / 362.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002426/0.3079, allocations: 0 / 362.7 MB, free: 15.08 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.009615/0.3175, allocations: 3.614 MB / 366.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.749e-05/0.3176, allocations: 12.03 kB / 366.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003254/0.3208, allocations: 0.6203 MB / 367 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004407/0.3253, allocations: 2.035 MB / 369 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002799/0.3256, allocations: 250.2 kB / 369.3 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008669/0.3265, allocations: 307.9 kB / 369.6 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009782/0.3363, allocations: 4.019 MB / 373.6 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001175/0.3364, allocations: 7.938 kB / 373.6 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006369/0.3371, allocations: 132 kB / 373.7 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001684/0.3372, allocations: 146.2 kB / 373.9 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007572/0.3448, allocations: 3.362 MB / 377.2 MB, free: 396 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02444/0.3693, allocations: 13.37 MB / 390.6 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004463/0.3738, allocations: 3.959 MB / 394.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001878/0.3757, allocations: 1.007 MB / 395.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005131/0.3809, allocations: 2.657 MB / 398.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.3809, allocations: 47.56 kB / 398.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 1.48e-05/0.381, allocations: 4 kB / 398.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01263/0.3936, allocations: 5.979 MB / 404.3 MB, free: 4.215 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.3937, allocations: 76.64 kB / 404.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003275/0.397, allocations: 1.873 MB / 406.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001303/0.3971, allocations: 57.7 kB / 406.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.3983, allocations: 1.489 MB / 407.7 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004497/0.3987, allocations: 496.9 kB / 408.2 MB, free: 152 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.3989, allocations: 40 kB / 408.3 MB, free: 112 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.3991, allocations: 381.8 kB / 408.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.4004, allocations: 0.7652 MB / 409.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001808/0.4022, allocations: 1.379 MB / 410.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001739/0.404, allocations: 1.002 MB / 411.8 MB, free: 12.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-05/0.404, allocations: 4 kB / 411.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004381/0.4084, allocations: 2.462 MB / 414.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.4085, allocations: 16 kB / 414.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.438e-05/0.4085, allocations: 23.95 kB / 414.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003896/0.4089, allocations: 118.5 kB / 414.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/0.4108, allocations: 495.6 kB / 414.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001097/0.4119, allocations: 1.311 MB / 416.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/0.4134, allocations: 119.8 kB / 416.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001596/0.4136, allocations: 80 kB / 416.4 MB, free: 7.543 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.001805/0.4154, allocations: 0.9852 MB / 417.4 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004419/0.4159, allocations: 201.5 kB / 417.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003665/0.4195, allocations: 1.957 MB / 419.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.305e-05/0.4196, allocations: 12 kB / 419.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.4196, allocations: 0 / 419.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.4196, allocations: 11.97 kB / 419.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008778/0.4284, allocations: 4.989 MB / 424.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.4284, allocations: 0 / 424.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/0.4299, allocations: 323.8 kB / 424.9 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003099/0.4302, allocations: 90.53 kB / 425 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/0.4303, allocations: 35.98 kB / 425 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009568/0.4313, allocations: 1.28 MB / 426.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4313, allocations: 4 kB / 426.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00576/0.4371, allocations: 3.077 MB / 429.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.4383, allocations: 462.5 kB / 429.8 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000532/0.4389, allocations: 27.98 kB / 429.8 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.44, allocations: 83.97 kB / 429.9 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.4402, allocations: 89.19 kB / 430 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-05/0.4403, allocations: 35.95 kB / 430 MB, free: 9.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002554/0.4428, allocations: 1.273 MB / 431.3 MB, free: 8.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4429, allocations: 0 / 431.3 MB, free: 8.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002117/0.445, allocations: 0.5312 MB / 431.8 MB, free: 7.719 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.0003736/0.4454, allocations: 162.8 kB / 432 MB, free: 7.555 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003602/0.449, allocations: 2.208 MB / 434.2 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.449, allocations: 3.938 kB / 434.2 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.4507, allocations: 1.174 MB / 435.4 MB, free: 4.059 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002922/0.4536, allocations: 0.4988 MB / 435.9 MB, free: 3.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.4655, allocations: 6.731 MB / 442.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/0.4682, allocations: 2.259 MB / 444.9 MB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002241/0.4704, allocations: 0.517 MB / 445.4 MB, free: 9.953 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006168/0.4711, allocations: 151.4 kB / 445.5 MB, free: 9.805 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4711, allocations: 0 / 445.5 MB, free: 9.805 MB / 382.1 MB Notification: Performance of Templates: time 0.2134/0.6845, allocations: 24.15 MB / 469.7 MB, free: 104.8 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)