Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008199/0.008199, allocations: 100.2 kB / 15.73 MB, free: 6.031 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.001484/0.001484, allocations: 190.6 kB / 16.67 MB, free: 5.965 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.578/1.578, allocations: 205.1 MB / 222.6 MB, free: 4.383 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.001491/0.001491, allocations: 50.05 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1345, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01705/0.1516, allocations: 11.6 MB / 384.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00977/0.1615, allocations: 3.949 MB / 388.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002817/0.1643, allocations: 63.69 kB / 388.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002578/0.167, allocations: 0.877 MB / 389.7 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004243/0.1712, allocations: 0.9434 MB / 390.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.1728, allocations: 0.5305 MB / 391.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004834/0.1776, allocations: 3.286 MB / 394.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003509/0.1812, allocations: 2.989 MB / 397.4 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002603/0.1838, allocations: 1.538 MB / 399 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002657/0.1865, allocations: 1.973 MB / 400.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000668/0.1871, allocations: 424 kB / 401.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00135/0.1885, allocations: 0.5271 MB / 401.9 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001125/0.1896, allocations: 1.216 MB / 403.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.1915, allocations: 1.882 MB / 405 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005711/0.1972, allocations: 5.518 MB / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.1973, allocations: 0 / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1973, allocations: 4 kB / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001613/0.1975, allocations: 0 / 410.5 MB, free: 11.79 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.009328/0.2068, allocations: 3.802 MB / 414.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.2069, allocations: 15.89 kB / 414.3 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/0.208, allocations: 396.5 kB / 414.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003975/0.2119, allocations: 1.946 MB / 416.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002269/0.2122, allocations: 218 kB / 416.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004632/0.2127, allocations: 283.8 kB / 417.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00651/0.2192, allocations: 3.701 MB / 420.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.573e-05/0.2193, allocations: 7.844 kB / 420.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002644/0.2196, allocations: 120 kB / 421 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001622/0.2197, allocations: 137.5 kB / 421.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005409/0.2252, allocations: 3.106 MB / 424.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01943/0.2446, allocations: 11.5 MB / 435.7 MB, free: 2.023 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00251/0.2472, allocations: 1.9 MB / 437.6 MB, free: 0 / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.249, allocations: 1.072 MB / 438.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003174/0.2493, allocations: 207.2 kB / 438.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/0.2494, allocations: 43.56 kB / 438.9 MB, free: 14.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=125): time 3.016e-06/0.2494, allocations: 0 / 438.9 MB, free: 14.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01293/0.2623, allocations: 6.535 MB / 445.5 MB, free: 7.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.2624, allocations: 68.66 kB / 445.5 MB, free: 7.887 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003128/0.2655, allocations: 1.986 MB / 447.5 MB, free: 5.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001593/0.2657, allocations: 45.7 kB / 447.6 MB, free: 5.809 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.2667, allocations: 1.416 MB / 449 MB, free: 4.375 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004062/0.2672, allocations: 485 kB / 449.4 MB, free: 3.895 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005035/0.2677, allocations: 335.2 kB / 449.8 MB, free: 3.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.852e-05/0.2678, allocations: 305.1 kB / 450.1 MB, free: 3.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/0.269, allocations: 0.8159 MB / 450.9 MB, free: 2.441 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.2705, allocations: 1.379 MB / 452.3 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2679/0.5384, allocations: 2.361 MB / 454.6 MB, free: 67.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.883e-05/0.5385, allocations: 5.469 kB / 454.6 MB, free: 67.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00561/0.5441, allocations: 2.855 MB / 457.5 MB, free: 66.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.853e-05/0.5442, allocations: 12.16 kB / 457.5 MB, free: 66.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.633e-05/0.5442, allocations: 23.34 kB / 457.5 MB, free: 66.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.5454, allocations: 387.4 kB / 457.9 MB, free: 66.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.547, allocations: 433.7 kB / 458.3 MB, free: 66.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006555/0.5536, allocations: 6.696 MB / 465 MB, free: 61.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/0.5556, allocations: 129.5 kB / 465.1 MB, free: 61.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.5557, allocations: 76.16 kB / 465.2 MB, free: 61.19 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001868/0.5576, allocations: 0.9159 MB / 466.1 MB, free: 60.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004282/0.558, allocations: 205.5 kB / 466.3 MB, free: 60.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004366/0.5624, allocations: 2.429 MB / 468.8 MB, free: 59.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.5624, allocations: 13.75 kB / 468.8 MB, free: 59.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.5625, allocations: 4.125 kB / 468.8 MB, free: 59.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.5625, allocations: 9.688 kB / 468.8 MB, free: 59.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00974/0.5722, allocations: 5.507 MB / 474.3 MB, free: 57.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.258e-06/0.5723, allocations: 3.938 kB / 474.3 MB, free: 57.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009806/0.5733, allocations: 258.2 kB / 474.6 MB, free: 57.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009024/0.5742, allocations: 410.3 kB / 475 MB, free: 57.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.922e-05/0.5743, allocations: 35.14 kB / 475 MB, free: 57.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005785/0.5801, allocations: 8.259 MB / 483.3 MB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.5801, allocations: 3.656 kB / 483.3 MB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004842/0.585, allocations: 3.606 MB / 486.9 MB, free: 48.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.5861, allocations: 470.3 kB / 487.3 MB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002514/0.5864, allocations: 28 kB / 487.3 MB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.5874, allocations: 95.89 kB / 487.4 MB, free: 47.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/0.5877, allocations: 109 kB / 487.5 MB, free: 47.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.077e-05/0.5878, allocations: 43.98 kB / 487.6 MB, free: 47.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001802/0.5896, allocations: 1.369 MB / 489 MB, free: 45.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5896, allocations: 0 / 489 MB, free: 45.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002143/0.5917, allocations: 0.5312 MB / 489.5 MB, free: 45.35 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (129): * Single equations (assignments): 125 * 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 {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004228/0.5922, allocations: 201.9 kB / 489.7 MB, free: 45.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003306/0.5955, allocations: 2.494 MB / 492.2 MB, free: 42.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.5955, allocations: 4 kB / 492.2 MB, free: 42.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001583/0.5971, allocations: 1.486 MB / 493.7 MB, free: 41.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00262/0.5997, allocations: 0.5389 MB / 494.2 MB, free: 40.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008553/0.6083, allocations: 5.656 MB / 499.9 MB, free: 34.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001579/0.6099, allocations: 2.201 MB / 0.4903 GB, free: 32.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001743/0.6117, allocations: 0.494 MB / 0.4908 GB, free: 32.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004115/0.6121, allocations: 155.3 kB / 0.4909 GB, free: 31.97 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.6121, allocations: 0 / 0.4909 GB, free: 31.97 MB / 382.1 MB Notification: Performance of Templates: time 0.04915/0.6613, allocations: 30.6 MB / 0.5208 GB, free: 1.352 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)