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.001102/0.001102, allocations: 94.64 kB / 16.65 MB, free: 6.535 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.001298/0.001298, allocations: 176.4 kB / 17.56 MB, free: 6.18 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.511/1.511, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.000601/0.0006009, allocations: 16 kB / 280.7 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.1001, allocations: 47.59 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01766/0.1178, allocations: 14.91 MB / 343.2 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01395/0.1318, allocations: 5.269 MB / 348.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005013/0.1369, allocations: 87.62 kB / 348.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004139/0.141, allocations: 0.9559 MB / 349.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006377/0.1474, allocations: 1.205 MB / 350.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003748/0.1512, allocations: 0.8695 MB / 351.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008238/0.1595, allocations: 4.08 MB / 355.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00657/0.1661, allocations: 2.97 MB / 358.7 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003063/0.1692, allocations: 1.326 MB / 360 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003885/0.1731, allocations: 1.812 MB / 361.8 MB, free: 2.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001237/0.1743, allocations: 208 kB / 362 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002402/0.1768, allocations: 439.7 kB / 362.4 MB, free: 1.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001602/0.1784, allocations: 0.9067 MB / 363.3 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00402/0.1824, allocations: 1.839 MB / 365.2 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00769/0.1901, allocations: 6.423 MB / 371.6 MB, free: 8.227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1902, allocations: 0 / 371.6 MB, free: 8.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1902, allocations: 4 kB / 371.6 MB, free: 8.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002005/0.1904, allocations: 4 kB / 371.6 MB, free: 8.219 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.01016/0.2006, allocations: 3.913 MB / 375.5 MB, free: 4.234 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.2006, allocations: 12.03 kB / 375.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003542/0.2042, allocations: 0.6675 MB / 376.2 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005237/0.2094, allocations: 2.342 MB / 378.6 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003035/0.2098, allocations: 267.5 kB / 378.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008821/0.2107, allocations: 347.8 kB / 379.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2179/0.4286, allocations: 4.457 MB / 383.6 MB, free: 29.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.476e-05/0.4287, allocations: 5.469 kB / 383.6 MB, free: 29.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003556/0.4291, allocations: 140.9 kB / 383.8 MB, free: 29.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001914/0.4293, allocations: 163.1 kB / 383.9 MB, free: 29.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008183/0.4375, allocations: 3.743 MB / 387.7 MB, free: 29.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02336/0.4609, allocations: 14.56 MB / 402.2 MB, free: 21.58 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004307/0.4652, allocations: 5.368 MB / 407.6 MB, free: 16.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/0.467, allocations: 1.286 MB / 408.9 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005732/0.4727, allocations: 3.821 MB / 412.7 MB, free: 13.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.4728, allocations: 42.75 kB / 412.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 3.096e-06/0.4728, allocations: 5.812 kB / 412.7 MB, free: 13.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.008484/0.4813, allocations: 5.483 MB / 418.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.4814, allocations: 68.56 kB / 418.3 MB, free: 7.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003418/0.4848, allocations: 2.102 MB / 420.4 MB, free: 5.391 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001308/0.4849, allocations: 53.7 kB / 420.4 MB, free: 5.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008545/0.4858, allocations: 1.652 MB / 422.1 MB, free: 3.668 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003628/0.4862, allocations: 463.9 kB / 422.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.4864, allocations: 145.6 kB / 422.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.159e-05/0.4864, allocations: 305.1 kB / 423 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00109/0.4875, allocations: 0.7184 MB / 423.7 MB, free: 2.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.4888, allocations: 1.353 MB / 425.1 MB, free: 428 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003105/0.4919, allocations: 2.242 MB / 427.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.779e-05/0.492, allocations: 4 kB / 427.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004636/0.4966, allocations: 2.525 MB / 429.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.4967, allocations: 12 kB / 429.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.293e-05/0.4967, allocations: 20.5 kB / 429.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004374/0.4972, allocations: 144.7 kB / 430 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.4988, allocations: 462.2 kB / 430.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0027/0.5015, allocations: 3.08 MB / 433.5 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.5032, allocations: 119.8 kB / 433.7 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.5033, allocations: 80 kB / 433.7 MB, free: 7.422 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.002078/0.5054, allocations: 1.05 MB / 434.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005211/0.5059, allocations: 217.4 kB / 435 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003975/0.5099, allocations: 2.182 MB / 437.2 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/0.51, allocations: 12 kB / 437.2 MB, free: 3.941 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.717e-05/0.51, allocations: 4 kB / 437.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.51, allocations: 11.34 kB / 437.2 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009679/0.5197, allocations: 5.171 MB / 442.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.5197, allocations: 0 / 442.4 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009881/0.5207, allocations: 233.1 kB / 442.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007288/0.5215, allocations: 274.3 kB / 442.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.9e-05/0.5216, allocations: 28 kB / 442.9 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006913/0.5285, allocations: 7.11 MB / 450 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.5285, allocations: 6.719 kB / 450 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005771/0.5343, allocations: 3.18 MB / 453.2 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/0.5357, allocations: 470.2 kB / 453.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006639/0.5364, allocations: 28 kB / 453.7 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001297/0.5377, allocations: 71.92 kB / 453.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002385/0.538, allocations: 106.1 kB / 453.9 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.951e-05/0.5381, allocations: 32 kB / 453.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003253/0.5413, allocations: 1.439 MB / 455.3 MB, free: 1.125 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5414, allocations: 0 / 455.3 MB, free: 1.125 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002623/0.544, allocations: 0.5547 MB / 455.9 MB, free: 0.5703 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.0004129/0.5444, allocations: 168.6 kB / 456 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003726/0.5481, allocations: 2.09 MB / 458.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.5482, allocations: 0 / 458.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002147/0.5503, allocations: 1.383 MB / 459.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003939/0.5543, allocations: 0.529 MB / 460 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01405/0.5683, allocations: 7.714 MB / 467.8 MB, free: 4.656 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003128/0.5715, allocations: 2.417 MB / 470.2 MB, free: 2.207 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002027/0.5736, allocations: 498.5 kB / 470.7 MB, free: 1.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006046/0.5742, allocations: 159.4 kB / 470.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5742, allocations: 1.641 kB / 470.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of Templates: time 0.05371/0.6279, allocations: 27.09 MB / 497.9 MB, free: 6.512 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)