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.001143/0.001143, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001296/0.001296, allocations: 197.2 kB / 16.26 MB, free: 6.621 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.362/1.362, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001518/0.001518, allocations: 47.92 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2858, allocations: 46.63 MB / 324.9 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01953/0.3053, allocations: 15.63 MB / 340.5 MB, free: 4.43 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0127/0.3181, allocations: 5.309 MB / 345.8 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004451/0.3227, allocations: 83.62 kB / 345.9 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004426/0.3271, allocations: 0.9754 MB / 346.8 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006079/0.3332, allocations: 1.212 MB / 348.1 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00312/0.3364, allocations: 0.8655 MB / 348.9 MB, free: 11.96 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007448/0.3438, allocations: 4.033 MB / 353 MB, free: 7.902 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005207/0.3491, allocations: 3.548 MB / 356.5 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003423/0.3525, allocations: 1.826 MB / 358.3 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004115/0.3567, allocations: 2.265 MB / 360.6 MB, free: 192 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001228/0.3579, allocations: 0.5157 MB / 361.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002232/0.3602, allocations: 0.7497 MB / 361.9 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001319/0.3615, allocations: 1.286 MB / 363.1 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003758/0.3653, allocations: 2.244 MB / 365.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008363/0.3737, allocations: 6.796 MB / 372.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.3737, allocations: 0 / 372.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3737, allocations: 0 / 372.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002126/0.3739, allocations: 0 / 372.2 MB, free: 4.562 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.01287/0.3868, allocations: 4.669 MB / 376.9 MB, free: 15.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.3869, allocations: 15.83 kB / 376.9 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003185/0.3901, allocations: 0.6753 MB / 377.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004585/0.3947, allocations: 2.334 MB / 379.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002301/0.3949, allocations: 267.5 kB / 380.1 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005903/0.3955, allocations: 347.8 kB / 380.5 MB, free: 12.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009573/0.4051, allocations: 4.464 MB / 384.9 MB, free: 7.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.195e-05/0.4053, allocations: 4 kB / 384.9 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003492/0.4056, allocations: 144 kB / 385.1 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001901/0.4058, allocations: 158.8 kB / 385.2 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007126/0.413, allocations: 3.739 MB / 389 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02576/0.4387, allocations: 14.49 MB / 403.5 MB, free: 4.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005781/0.4446, allocations: 5.368 MB / 408.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002018/0.4466, allocations: 1.275 MB / 410.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006583/0.4532, allocations: 3.807 MB / 413.9 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/0.4533, allocations: 47.81 kB / 414 MB, free: 9.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=127): time 3.126e-06/0.4533, allocations: 0 / 414 MB, free: 9.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=131): time 0.009631/0.4629, allocations: 5.463 MB / 419.4 MB, free: 3.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.463, allocations: 68.66 kB / 419.5 MB, free: 3.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00308/0.4661, allocations: 2.102 MB / 421.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.4662, allocations: 49.64 kB / 421.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/0.4675, allocations: 1.653 MB / 423.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004078/0.4679, allocations: 461.4 kB / 423.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005064/0.4684, allocations: 351.1 kB / 424.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.4685, allocations: 301.1 kB / 424.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.4696, allocations: 0.7106 MB / 425.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.4711, allocations: 1.357 MB / 426.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002723/0.4739, allocations: 2.215 MB / 428.7 MB, free: 9.801 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/0.4739, allocations: 11.94 kB / 428.7 MB, free: 9.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004107/0.478, allocations: 2.521 MB / 431.2 MB, free: 7.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.073e-05/0.4781, allocations: 12 kB / 431.2 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.649e-05/0.4781, allocations: 20 kB / 431.2 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003933/0.4785, allocations: 138.7 kB / 431.4 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.4802, allocations: 471.2 kB / 431.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002635/0.4828, allocations: 3.356 MB / 435.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.4846, allocations: 111.8 kB / 435.3 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001549/0.4847, allocations: 80 kB / 435.4 MB, free: 2.766 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.002044/0.4868, allocations: 1.055 MB / 436.4 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005494/0.4873, allocations: 213.3 kB / 436.6 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003664/0.491, allocations: 2.173 MB / 438.8 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/0.491, allocations: 12 kB / 438.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.4911, allocations: 7.938 kB / 438.8 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.4911, allocations: 7.969 kB / 438.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009316/0.5004, allocations: 5.165 MB / 444 MB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.5004, allocations: 7.938 kB / 444 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.5015, allocations: 228 kB / 444.2 MB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008031/0.5023, allocations: 275.2 kB / 444.5 MB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.793e-05/0.5024, allocations: 32.12 kB / 444.5 MB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007591/0.51, allocations: 7.806 MB / 452.3 MB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.51, allocations: 3.938 kB / 452.3 MB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1773/0.6873, allocations: 3.176 MB / 455.5 MB, free: 108.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.6885, allocations: 453.4 kB / 456 MB, free: 108.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003421/0.6888, allocations: 27.34 kB / 456 MB, free: 108.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.6898, allocations: 69.61 kB / 456.1 MB, free: 108.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.6901, allocations: 98.97 kB / 456.2 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.314e-05/0.6902, allocations: 39.06 kB / 456.2 MB, free: 108.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002418/0.6926, allocations: 1.431 MB / 457.6 MB, free: 108.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6926, allocations: 0 / 457.6 MB, free: 108.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002453/0.6951, allocations: 0.5548 MB / 458.2 MB, free: 108.2 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.000344/0.6954, allocations: 163.8 kB / 458.3 MB, free: 108.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004657/0.7001, allocations: 2.566 MB / 460.9 MB, free: 107.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.7001, allocations: 0 / 460.9 MB, free: 107.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001698/0.7018, allocations: 1.373 MB / 462.3 MB, free: 106.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/0.7045, allocations: 0.5552 MB / 462.8 MB, free: 106.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009788/0.7143, allocations: 7.606 MB / 470.4 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001686/0.716, allocations: 2.421 MB / 472.9 MB, free: 100.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00167/0.7177, allocations: 493.1 kB / 473.3 MB, free: 100.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004189/0.7181, allocations: 158.1 kB / 473.5 MB, free: 100.3 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.7182, allocations: 0 / 473.5 MB, free: 100.3 MB / 382.1 MB Notification: Performance of Templates: time 0.04433/0.7625, allocations: 28.46 MB / 0.4902 GB, free: 72.07 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)