Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.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.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01027/0.01027, allocations: 101.1 kB / 15.73 MB, free: 6.035 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.002024/0.002025, allocations: 186.8 kB / 16.67 MB, free: 5.973 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.779/1.779, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001402/0.001402, allocations: 51.83 kB / 326.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1418, allocations: 46.63 MB / 373.2 MB, free: 1.418 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01327/0.1551, allocations: 9.571 MB / 382.8 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007363/0.1625, allocations: 3.159 MB / 385.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002364/0.1649, allocations: 47.75 kB / 386 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.1676, allocations: 0.6792 MB / 386.6 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003439/0.171, allocations: 0.757 MB / 387.4 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00169/0.1727, allocations: 383.5 kB / 387.8 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004448/0.1772, allocations: 2.561 MB / 390.3 MB, free: 196 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003122/0.1803, allocations: 2.294 MB / 392.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001993/0.1824, allocations: 1.172 MB / 393.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002098/0.1845, allocations: 1.498 MB / 395.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005709/0.1851, allocations: 316 kB / 395.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000811/0.1859, allocations: 427.8 kB / 396 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009606/0.1869, allocations: 0.8922 MB / 396.9 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001739/0.1886, allocations: 1.419 MB / 398.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005354/0.194, allocations: 4.147 MB / 402.5 MB, free: 3.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.194, allocations: 0 / 402.5 MB, free: 3.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.194, allocations: 4 kB / 402.5 MB, free: 3.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001224/0.1942, allocations: 0 / 402.5 MB, free: 3.941 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.007429/0.2016, allocations: 2.904 MB / 405.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.114e-05/0.2017, allocations: 11.89 kB / 405.4 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00092/0.2026, allocations: 289.7 kB / 405.7 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002927/0.2056, allocations: 1.441 MB / 407.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001306/0.2057, allocations: 160.3 kB / 407.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003419/0.206, allocations: 215.9 kB / 407.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005686/0.2117, allocations: 2.799 MB / 410.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.146e-05/0.2118, allocations: 0 / 410.3 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002325/0.2121, allocations: 91.98 kB / 410.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001483/0.2122, allocations: 104.2 kB / 410.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00515/0.2174, allocations: 2.355 MB / 412.8 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01835/0.2358, allocations: 8.487 MB / 421.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002919/0.2387, allocations: 1.715 MB / 423 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001836/0.2406, allocations: 0.9518 MB / 424 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000331/0.241, allocations: 203.2 kB / 424.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.241, allocations: 51.5 kB / 424.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 3.186e-06/0.241, allocations: 0 / 424.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01405/0.2551, allocations: 6.098 MB / 430.3 MB, free: 7.285 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.2552, allocations: 60.41 kB / 430.4 MB, free: 7.215 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002723/0.2579, allocations: 1.441 MB / 431.8 MB, free: 5.762 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001059/0.258, allocations: 45.7 kB / 431.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007986/0.2588, allocations: 1.045 MB / 432.9 MB, free: 4.652 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004855/0.2593, allocations: 410.1 kB / 433.3 MB, free: 4.246 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000433/0.2598, allocations: 263.3 kB / 433.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002258/0.26, allocations: 353.9 kB / 433.9 MB, free: 3.629 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/0.2614, allocations: 0.6871 MB / 434.6 MB, free: 2.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.2628, allocations: 1.074 MB / 435.7 MB, free: 1.703 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002689/0.2655, allocations: 1.856 MB / 437.6 MB, free: 15.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.228e-05/0.2655, allocations: 4 kB / 437.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004673/0.2702, allocations: 2.402 MB / 440 MB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.2703, allocations: 16.06 kB / 440 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/0.2703, allocations: 15.98 kB / 440 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.2714, allocations: 419.1 kB / 440.4 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.2725, allocations: 323.5 kB / 440.7 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00759/0.2801, allocations: 7.045 MB / 447.8 MB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.2815, allocations: 99.89 kB / 447.9 MB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001912/0.2817, allocations: 60 kB / 447.9 MB, free: 4.848 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (157): * Single equations (assignments): 153 * 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 {(3,11,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.001753/0.2835, allocations: 0.6895 MB / 448.6 MB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004696/0.284, allocations: 158 kB / 448.8 MB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.2885, allocations: 2.119 MB / 450.9 MB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/0.2886, allocations: 12 kB / 450.9 MB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.098e-05/0.2886, allocations: 4 kB / 450.9 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/0.2887, allocations: 7.969 kB / 450.9 MB, free: 1.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2387/0.5274, allocations: 4.547 MB / 455.5 MB, free: 68.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/0.5274, allocations: 4.062 kB / 455.5 MB, free: 68.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009525/0.5284, allocations: 217.5 kB / 455.7 MB, free: 68.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/0.5297, allocations: 443.5 kB / 456.1 MB, free: 68.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.5298, allocations: 36.08 kB / 456.1 MB, free: 68.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00795/0.5377, allocations: 8.623 MB / 464.8 MB, free: 62.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.206e-06/0.5378, allocations: 9.641 kB / 464.8 MB, free: 62.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005366/0.5432, allocations: 3.105 MB / 467.9 MB, free: 60.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009607/0.5441, allocations: 381.9 kB / 468.2 MB, free: 60.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002147/0.5444, allocations: 35.02 kB / 468.3 MB, free: 60.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008826/0.5453, allocations: 82.62 kB / 468.4 MB, free: 60.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002833/0.5456, allocations: 103.5 kB / 468.5 MB, free: 60.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.795e-05/0.5456, allocations: 35.06 kB / 468.5 MB, free: 60.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001532/0.5472, allocations: 0.9869 MB / 469.5 MB, free: 60.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5472, allocations: 1.031 kB / 469.5 MB, free: 60.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00189/0.5491, allocations: 461.4 kB / 469.9 MB, free: 60.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * 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 (103): * Single equations (assignments): 99 * 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 {(3,11,100.0%), (1,6,100.0%), (1,1,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.0003787/0.5495, allocations: 193.5 kB / 470.1 MB, free: 60.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003658/0.5531, allocations: 2.231 MB / 472.4 MB, free: 59.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.5532, allocations: 0 / 472.4 MB, free: 59.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.5552, allocations: 1.443 MB / 473.8 MB, free: 58.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.5572, allocations: 411.7 kB / 474.2 MB, free: 58.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008762/0.566, allocations: 4.455 MB / 478.7 MB, free: 56.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/0.5673, allocations: 1.807 MB / 480.5 MB, free: 55.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001175/0.5685, allocations: 366.9 kB / 480.8 MB, free: 54.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.5689, allocations: 115.2 kB / 480.9 MB, free: 54.89 MB / 382.1 MB Notification: Performance of SimCode: time 2.175e-06/0.5689, allocations: 0 / 480.9 MB, free: 54.89 MB / 382.1 MB Notification: Performance of Templates: time 0.03864/0.6076, allocations: 24.79 MB / 0.4939 GB, free: 30.4 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)