Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001248/0.001248, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001229/0.001229, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.355/1.355, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001205/0.001205, allocations: 51.92 kB / 280 MB, free: 3.156 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.09424, allocations: 46.63 MB / 326.6 MB, free: 4.461 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01841/0.1127, allocations: 15.83 MB / 342.5 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01158/0.1243, allocations: 5.397 MB / 347.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002854/0.1272, allocations: 91.62 kB / 348 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003136/0.1304, allocations: 1.106 MB / 349.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003807/0.1342, allocations: 1.351 MB / 350.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00205/0.1363, allocations: 0.9587 MB / 351.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004334/0.1406, allocations: 3.951 MB / 355.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003953/0.1446, allocations: 3.56 MB / 358.9 MB, free: 4.012 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002519/0.1472, allocations: 1.865 MB / 360.7 MB, free: 2.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002814/0.15, allocations: 2.265 MB / 363 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000778/0.1508, allocations: 0.5156 MB / 363.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00149/0.1523, allocations: 0.7536 MB / 364.3 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00114/0.1534, allocations: 1.286 MB / 365.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002592/0.156, allocations: 2.256 MB / 367.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007059/0.1631, allocations: 6.808 MB / 374.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.956e-06/0.1631, allocations: 4 kB / 374.6 MB, free: 4.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1632, allocations: 0 / 374.6 MB, free: 4.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001823/0.1633, allocations: 0 / 374.6 MB, free: 4.211 MB / 318.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.1899/0.3532, allocations: 4.652 MB / 379.3 MB, free: 49.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.152e-05/0.3533, allocations: 13.48 kB / 379.3 MB, free: 49.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003778/0.3571, allocations: 0.6782 MB / 380 MB, free: 49.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005251/0.3624, allocations: 2.354 MB / 382.3 MB, free: 48.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002874/0.3627, allocations: 270 kB / 382.6 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/0.3637, allocations: 351.9 kB / 382.9 MB, free: 47.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00892/0.3727, allocations: 4.459 MB / 387.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-05/0.3728, allocations: 7.469 kB / 387.4 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002857/0.3731, allocations: 139.8 kB / 387.5 MB, free: 45.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00017/0.3732, allocations: 164.3 kB / 387.7 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006656/0.3799, allocations: 3.735 MB / 391.4 MB, free: 44.46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01977/0.3997, allocations: 14.5 MB / 405.9 MB, free: 33.69 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003857/0.4036, allocations: 5.366 MB / 411.3 MB, free: 27.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.4052, allocations: 1.278 MB / 412.6 MB, free: 26.35 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005546/0.4107, allocations: 3.8 MB / 416.4 MB, free: 22.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.4108, allocations: 43.88 kB / 416.4 MB, free: 22.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 3.006e-06/0.4108, allocations: 0 / 416.4 MB, free: 22.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.007964/0.4188, allocations: 5.469 MB / 421.9 MB, free: 16.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.4188, allocations: 64.72 kB / 421.9 MB, free: 16.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002481/0.4213, allocations: 2.098 MB / 424 MB, free: 14.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.949e-05/0.4214, allocations: 53.7 kB / 424.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007005/0.4221, allocations: 1.649 MB / 425.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002558/0.4224, allocations: 461 kB / 426.2 MB, free: 12.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004099/0.4228, allocations: 339.2 kB / 426.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.228e-05/0.4228, allocations: 301.1 kB / 426.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009215/0.4238, allocations: 0.7222 MB / 427.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.425, allocations: 1.361 MB / 428.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002199/0.4272, allocations: 2.223 MB / 431.1 MB, free: 6.918 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.117e-06/0.4272, allocations: 4 kB / 431.1 MB, free: 6.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003169/0.4304, allocations: 2.517 MB / 433.6 MB, free: 4.359 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.4304, allocations: 16.5 kB / 433.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.4305, allocations: 27.84 kB / 433.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003244/0.4308, allocations: 134.5 kB / 433.8 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/0.4322, allocations: 471.2 kB / 434.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/0.4341, allocations: 3.352 MB / 437.6 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001603/0.4357, allocations: 119.9 kB / 437.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.4358, allocations: 91.92 kB / 437.8 MB, free: 15.88 MB / 334.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.002126/0.438, allocations: 1.048 MB / 438.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003613/0.4383, allocations: 209.4 kB / 439.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003505/0.4419, allocations: 2.177 MB / 441.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/0.4419, allocations: 12 kB / 441.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.4419, allocations: 4 kB / 441.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.4419, allocations: 7.969 kB / 441.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007859/0.4498, allocations: 5.161 MB / 446.5 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.126e-06/0.4498, allocations: 0 / 446.5 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.4509, allocations: 235.6 kB / 446.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007065/0.4516, allocations: 275.5 kB / 447 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.853e-05/0.4517, allocations: 31.92 kB / 447 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00628/0.458, allocations: 7.801 MB / 454.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.458, allocations: 4 kB / 454.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004788/0.4628, allocations: 3.174 MB / 458 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.4639, allocations: 458.3 kB / 458.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002932/0.4642, allocations: 28 kB / 458.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009741/0.4651, allocations: 68.17 kB / 458.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/0.4654, allocations: 100.8 kB / 458.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.711e-05/0.4655, allocations: 43.98 kB / 458.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002218/0.4677, allocations: 1.427 MB / 460.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4677, allocations: 0 / 460.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002264/0.47, allocations: 0.5586 MB / 460.6 MB, free: 8.211 MB / 350.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.0003848/0.4704, allocations: 162.4 kB / 460.8 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004964/0.4753, allocations: 2.56 MB / 463.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.4754, allocations: 3.984 kB / 463.4 MB, free: 5.457 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001943/0.4773, allocations: 1.376 MB / 464.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002865/0.4802, allocations: 0.5551 MB / 465.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.4906, allocations: 6.13 MB / 471.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002162/0.4928, allocations: 2.413 MB / 473.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001984/0.4948, allocations: 0.4985 MB / 474.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004085/0.4953, allocations: 151.4 kB / 474.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4953, allocations: 0 / 474.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of Templates: time 0.05196/0.5472, allocations: 28.47 MB / 0.4912 GB, free: 13.72 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)