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.001656/0.001656, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002523/0.002523, allocations: 196.8 kB / 16.14 MB, free: 6.707 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.718/1.718, allocations: 205.1 MB / 222 MB, free: 4.75 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.001506/0.001506, allocations: 51.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3058, allocations: 46.62 MB / 324.7 MB, free: 1.902 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01195/0.3178, allocations: 9.522 MB / 334.2 MB, free: 10.41 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006576/0.3244, allocations: 3.107 MB / 337.3 MB, free: 7.488 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.326, allocations: 47.75 kB / 337.4 MB, free: 7.441 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001729/0.3278, allocations: 0.5904 MB / 338 MB, free: 6.848 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00255/0.3304, allocations: 0.6877 MB / 338.6 MB, free: 6.156 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009347/0.3313, allocations: 351.7 kB / 339 MB, free: 5.812 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003632/0.335, allocations: 2.884 MB / 341.9 MB, free: 2.918 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002237/0.3372, allocations: 1.93 MB / 343.8 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001496/0.3387, allocations: 1.027 MB / 344.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001858/0.3406, allocations: 1.436 MB / 346.3 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003654/0.341, allocations: 196 kB / 346.5 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008186/0.3418, allocations: 311.8 kB / 346.8 MB, free: 13.96 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008089/0.3426, allocations: 0.7749 MB / 347.5 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.3441, allocations: 1.294 MB / 348.8 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003525/0.3476, allocations: 3.995 MB / 352.8 MB, free: 7.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3476, allocations: 0 / 352.8 MB, free: 7.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3477, allocations: 8 kB / 352.8 MB, free: 7.863 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.229e-05/0.3477, allocations: 0 / 352.8 MB, free: 7.863 MB / 286.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.006241/0.354, allocations: 2.9 MB / 355.7 MB, free: 4.898 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.354, allocations: 8.031 kB / 355.7 MB, free: 4.891 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007478/0.3548, allocations: 285.7 kB / 356 MB, free: 4.609 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0023/0.3571, allocations: 1.433 MB / 357.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.3573, allocations: 168.5 kB / 357.6 MB, free: 2.949 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002994/0.3576, allocations: 211.9 kB / 357.8 MB, free: 2.742 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004562/0.3621, allocations: 2.803 MB / 360.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.983e-05/0.3622, allocations: 3.906 kB / 360.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001864/0.3624, allocations: 88 kB / 360.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.3625, allocations: 104.2 kB / 360.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003887/0.3664, allocations: 2.343 MB / 363.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01325/0.3797, allocations: 8.6 MB / 371.8 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/0.3822, allocations: 1.71 MB / 373.5 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001657/0.3838, allocations: 0.9684 MB / 374.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003486/0.3842, allocations: 203.2 kB / 374.6 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.451e-05/0.3843, allocations: 47.5 kB / 374.7 MB, free: 1.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 4.007e-06/0.3843, allocations: 0 / 374.7 MB, free: 1.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.01381/0.3981, allocations: 6.11 MB / 380.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.3982, allocations: 68.41 kB / 380.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002594/0.4008, allocations: 1.437 MB / 382.3 MB, free: 9.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.4009, allocations: 45.7 kB / 382.3 MB, free: 9.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/0.4026, allocations: 1.037 MB / 383.4 MB, free: 8.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005776/0.4032, allocations: 410 kB / 383.8 MB, free: 8.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006276/0.4038, allocations: 255.4 kB / 384 MB, free: 7.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002415/0.4041, allocations: 357.9 kB / 384.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.4056, allocations: 0.6871 MB / 385.1 MB, free: 6.766 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001983/0.4076, allocations: 1.078 MB / 386.1 MB, free: 5.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003289/0.4109, allocations: 1.86 MB / 388 MB, free: 3.504 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-05/0.4109, allocations: 0 / 388 MB, free: 3.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004959/0.4159, allocations: 2.406 MB / 390.4 MB, free: 1.059 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.409e-05/0.4159, allocations: 8 kB / 390.4 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.525e-05/0.416, allocations: 12 kB / 390.4 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.4171, allocations: 419.3 kB / 390.8 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/0.4183, allocations: 327.5 kB / 391.2 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007751/0.4261, allocations: 6.467 MB / 397.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00158/0.4277, allocations: 99.8 kB / 397.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002001/0.4279, allocations: 63.94 kB / 397.8 MB, free: 9.262 MB / 334.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.001577/0.4295, allocations: 0.6858 MB / 398.5 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005902/0.4301, allocations: 158 kB / 398.6 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004122/0.4342, allocations: 2.119 MB / 400.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.4343, allocations: 12 kB / 400.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-05/0.4343, allocations: 4 kB / 400.8 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.4343, allocations: 15.91 kB / 400.8 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009682/0.444, allocations: 4.562 MB / 405.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.4441, allocations: 7.938 kB / 405.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009242/0.445, allocations: 216.2 kB / 405.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001255/0.4463, allocations: 454.8 kB / 406 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001201/0.4464, allocations: 31.98 kB / 406 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008764/0.4552, allocations: 7.916 MB / 413.9 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/0.4552, allocations: 7.938 kB / 414 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005931/0.4612, allocations: 3.101 MB / 417.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.4622, allocations: 383 kB / 417.4 MB, free: 4.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004477/0.4627, allocations: 35.98 kB / 417.5 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.4638, allocations: 79.91 kB / 417.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002797/0.4641, allocations: 96.75 kB / 417.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.414e-05/0.4642, allocations: 43.92 kB / 417.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001877/0.4661, allocations: 0.9847 MB / 418.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4661, allocations: 0 / 418.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001982/0.4681, allocations: 460.1 kB / 419.1 MB, free: 3.062 MB / 350.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.0005619/0.4687, allocations: 195.4 kB / 419.3 MB, free: 2.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004246/0.4729, allocations: 2.207 MB / 421.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.193e-06/0.473, allocations: 4.812 kB / 421.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/0.4753, allocations: 1.454 MB / 423 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002723/0.4781, allocations: 393.3 kB / 423.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009741/0.4878, allocations: 5.423 MB / 428.8 MB, free: 9.219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00279/0.4907, allocations: 1.807 MB / 430.6 MB, free: 7.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001615/0.4923, allocations: 365.6 kB / 430.9 MB, free: 7.008 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004883/0.4928, allocations: 111.4 kB / 431 MB, free: 6.898 MB / 366.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4928, allocations: 0 / 431 MB, free: 6.898 MB / 366.1 MB Notification: Performance of Templates: time 0.2419/0.7347, allocations: 23.38 MB / 454.4 MB, free: 112.7 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)