Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 198.3 kB / 16.53 MB, free: 6.391 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.389/1.389, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.001999/0.001999, allocations: 55.92 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2599, allocations: 46.64 MB / 325.3 MB, free: 1.883 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01914/0.2791, allocations: 15.83 MB / 341.2 MB, free: 4.055 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.2913, allocations: 5.386 MB / 346.5 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00388/0.2952, allocations: 99.5 kB / 346.6 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004703/0.3, allocations: 1.106 MB / 347.7 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006293/0.3064, allocations: 1.347 MB / 349.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003382/0.3098, allocations: 0.9586 MB / 350 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006703/0.3165, allocations: 3.959 MB / 354 MB, free: 7.145 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006928/0.3234, allocations: 3.544 MB / 357.6 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003852/0.3273, allocations: 1.873 MB / 359.4 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004457/0.3318, allocations: 2.265 MB / 361.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002038/0.3339, allocations: 0.5156 MB / 362.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003021/0.3369, allocations: 0.7497 MB / 363 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002298/0.3392, allocations: 1.293 MB / 364.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004545/0.3438, allocations: 2.248 MB / 366.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.355, allocations: 6.808 MB / 373.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3551, allocations: 0 / 373.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3551, allocations: 0 / 373.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003016/0.3554, allocations: 4 kB / 373.3 MB, free: 3.734 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01567/0.3711, allocations: 4.669 MB / 378 MB, free: 14.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3711, allocations: 11.89 kB / 378 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003098/0.3743, allocations: 0.6714 MB / 378.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004692/0.379, allocations: 2.357 MB / 381 MB, free: 11.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000256/0.3792, allocations: 271.5 kB / 381.3 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006594/0.3799, allocations: 343.8 kB / 381.6 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008434/0.3884, allocations: 4.456 MB / 386.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.187e-05/0.3885, allocations: 7.906 kB / 386.1 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003135/0.3888, allocations: 148 kB / 386.2 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.3889, allocations: 162.8 kB / 386.4 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006369/0.3953, allocations: 3.739 MB / 390.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02264/0.418, allocations: 14.49 MB / 404.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005362/0.4234, allocations: 5.369 MB / 410 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002025/0.4254, allocations: 1.278 MB / 411.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006694/0.4321, allocations: 3.795 MB / 415.1 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/0.4322, allocations: 55.86 kB / 415.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=127): time 2.565e-06/0.4322, allocations: 0 / 415.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.009727/0.442, allocations: 5.467 MB / 420.6 MB, free: 2.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.442, allocations: 64.72 kB / 420.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003076/0.4451, allocations: 2.098 MB / 422.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.4452, allocations: 49.7 kB / 422.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.4463, allocations: 1.657 MB / 424.4 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003424/0.4466, allocations: 457.4 kB / 424.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004571/0.4471, allocations: 335.2 kB / 425.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.318e-05/0.4472, allocations: 301.1 kB / 425.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/0.4483, allocations: 0.7222 MB / 426.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001623/0.4499, allocations: 1.349 MB / 427.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002915/0.4528, allocations: 2.231 MB / 429.8 MB, free: 8.957 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.4528, allocations: 7.938 kB / 429.8 MB, free: 8.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004476/0.4573, allocations: 2.513 MB / 432.3 MB, free: 6.398 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.4574, allocations: 12 kB / 432.3 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-05/0.4574, allocations: 24 kB / 432.4 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004532/0.4579, allocations: 147 kB / 432.5 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.4595, allocations: 463.2 kB / 433 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00289/0.4624, allocations: 3.36 MB / 436.3 MB, free: 2.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.4642, allocations: 107.8 kB / 436.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.4643, allocations: 87.98 kB / 436.5 MB, free: 1.922 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002035/0.4664, allocations: 1.048 MB / 437.6 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004998/0.4669, allocations: 221.3 kB / 437.8 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003544/0.4704, allocations: 2.177 MB / 440 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.4705, allocations: 12 kB / 440 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.4705, allocations: 7.938 kB / 440 MB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.4705, allocations: 7.969 kB / 440 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008603/0.4791, allocations: 5.169 MB / 445.2 MB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.4791, allocations: 0 / 445.2 MB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009694/0.4801, allocations: 227.7 kB / 445.4 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006777/0.4808, allocations: 275.5 kB / 445.6 MB, free: 8.57 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.141e-05/0.4809, allocations: 31.98 kB / 445.7 MB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006968/0.4879, allocations: 7.798 MB / 453.5 MB, free: 188 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4879, allocations: 4 kB / 453.5 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1894/0.6773, allocations: 3.179 MB / 456.7 MB, free: 108.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.6784, allocations: 456.2 kB / 457.1 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002768/0.6787, allocations: 24.34 kB / 457.1 MB, free: 108.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009822/0.6797, allocations: 75.5 kB / 457.2 MB, free: 108.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.6799, allocations: 96.14 kB / 457.3 MB, free: 108.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.662e-05/0.68, allocations: 37.77 kB / 457.3 MB, free: 108.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002078/0.6821, allocations: 1.425 MB / 458.8 MB, free: 108.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6821, allocations: 0.6875 kB / 458.8 MB, free: 108.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002115/0.6842, allocations: 0.5604 MB / 459.3 MB, free: 108.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003392/0.6845, allocations: 165.8 kB / 459.5 MB, free: 108 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004141/0.6887, allocations: 2.564 MB / 462 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.6887, allocations: 0 / 462 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001704/0.6904, allocations: 1.38 MB / 463.4 MB, free: 106.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/0.6928, allocations: 0.5522 MB / 464 MB, free: 106 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00901/0.7018, allocations: 6.133 MB / 470.1 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/0.7035, allocations: 2.416 MB / 472.5 MB, free: 101.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001697/0.7052, allocations: 496.2 kB / 473 MB, free: 101 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003825/0.7056, allocations: 155.2 kB / 473.2 MB, free: 100.8 MB / 382.1 MB Notification: Performance of SimCode: time 5.82e-07/0.7056, allocations: 0 / 473.2 MB, free: 100.8 MB / 382.1 MB Notification: Performance of Templates: time 0.0434/0.749, allocations: 28.47 MB / 0.4899 GB, free: 72.55 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)