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.001431/0.001431, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001914/0.001914, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.598/1.598, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001199/0.0012, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2789, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.0109/0.2898, allocations: 9.585 MB / 334.9 MB, free: 10.29 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006423/0.2963, allocations: 3.148 MB / 338 MB, free: 7.156 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001423/0.2977, allocations: 47.75 kB / 338.1 MB, free: 7.109 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001682/0.2995, allocations: 0.6752 MB / 338.8 MB, free: 6.43 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00239/0.3019, allocations: 0.7531 MB / 339.5 MB, free: 5.672 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009873/0.3029, allocations: 395.4 kB / 339.9 MB, free: 5.285 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003007/0.3059, allocations: 2.545 MB / 342.5 MB, free: 2.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002846/0.3087, allocations: 2.286 MB / 344.7 MB, free: 392 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001767/0.3105, allocations: 1.172 MB / 345.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002265/0.3128, allocations: 1.499 MB / 347.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005284/0.3134, allocations: 320 kB / 347.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009008/0.3143, allocations: 423.7 kB / 348.1 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008556/0.3151, allocations: 0.896 MB / 349 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001557/0.3167, allocations: 1.412 MB / 350.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004174/0.3209, allocations: 4.101 MB / 354.5 MB, free: 6.547 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3209, allocations: 0 / 354.5 MB, free: 6.547 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3209, allocations: 0 / 354.5 MB, free: 6.547 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.914e-05/0.321, allocations: 0 / 354.5 MB, free: 6.547 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.006533/0.3276, allocations: 2.897 MB / 357.4 MB, free: 3.586 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.3276, allocations: 15.89 kB / 357.5 MB, free: 3.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007961/0.3284, allocations: 293.7 kB / 357.7 MB, free: 3.281 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00253/0.331, allocations: 1.429 MB / 359.2 MB, free: 1.793 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.3311, allocations: 164.5 kB / 359.3 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003176/0.3315, allocations: 215.9 kB / 359.5 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005814/0.3373, allocations: 2.796 MB / 362.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.181e-05/0.3375, allocations: 11.91 kB / 362.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002603/0.3377, allocations: 83.98 kB / 362.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001727/0.3379, allocations: 116.1 kB / 362.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004846/0.3428, allocations: 2.347 MB / 364.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01503/0.3578, allocations: 8.593 MB / 373.5 MB, free: 3.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/0.3605, allocations: 1.719 MB / 375.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001784/0.3623, allocations: 0.9635 MB / 376.2 MB, free: 324 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003103/0.3626, allocations: 207.2 kB / 376.4 MB, free: 76 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.3627, allocations: 55.42 kB / 376.4 MB, free: 8 kB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 3.016e-06/0.3627, allocations: 0 / 376.4 MB, free: 8 kB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.01365/0.3763, allocations: 6.091 MB / 382.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.3764, allocations: 72.33 kB / 382.6 MB, free: 9.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002186/0.3786, allocations: 1.433 MB / 384 MB, free: 8.242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.3787, allocations: 49.7 kB / 384.1 MB, free: 8.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007685/0.3795, allocations: 1.041 MB / 385.1 MB, free: 7.133 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003344/0.3799, allocations: 418 kB / 385.5 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003993/0.3803, allocations: 247.5 kB / 385.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3804, allocations: 361.9 kB / 386.1 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.3817, allocations: 0.6871 MB / 386.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.3831, allocations: 1.066 MB / 387.9 MB, free: 4.195 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002676/0.3858, allocations: 1.863 MB / 389.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.3858, allocations: 4 kB / 389.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004321/0.3902, allocations: 2.402 MB / 392.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.143e-05/0.3902, allocations: 12 kB / 392.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.3902, allocations: 12 kB / 392.2 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009973/0.3913, allocations: 423.3 kB / 392.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001225/0.3925, allocations: 327.5 kB / 392.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00719/0.3997, allocations: 7.045 MB / 399.9 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/0.4013, allocations: 103.8 kB / 400 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/0.4014, allocations: 63.98 kB / 400.1 MB, free: 7.32 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.001343/0.4028, allocations: 0.6895 MB / 400.8 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003542/0.4031, allocations: 154.1 kB / 400.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004084/0.4072, allocations: 2.115 MB / 403.1 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.4073, allocations: 12 kB / 403.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/0.4073, allocations: 7.984 kB / 403.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.4073, allocations: 3.984 kB / 403.1 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009268/0.4166, allocations: 4.577 MB / 407.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.4166, allocations: 4 kB / 407.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009479/0.4176, allocations: 216.1 kB / 407.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/0.4189, allocations: 455 kB / 408.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.419, allocations: 35.98 kB / 408.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008156/0.4272, allocations: 8.624 MB / 417 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.4272, allocations: 11.94 kB / 417 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005022/0.4323, allocations: 3.097 MB / 420.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008905/0.4332, allocations: 383 kB / 420.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/0.4334, allocations: 28 kB / 420.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008741/0.4343, allocations: 87.84 kB / 420.6 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002526/0.4346, allocations: 92.81 kB / 420.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.425e-05/0.4346, allocations: 35.98 kB / 420.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001419/0.4361, allocations: 0.9926 MB / 421.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4361, allocations: 0 / 421.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001618/0.4377, allocations: 472 kB / 422.1 MB, free: 396 kB / 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.0004012/0.4381, allocations: 191 kB / 422.3 MB, free: 196 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004694/0.4428, allocations: 2.68 MB / 425 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4428, allocations: 0 / 425 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002318/0.4452, allocations: 1.446 MB / 426.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/0.4473, allocations: 413.2 kB / 426.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007175/0.4545, allocations: 4.511 MB / 431.4 MB, free: 6.973 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001426/0.4559, allocations: 1.807 MB / 433.2 MB, free: 5.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00118/0.4571, allocations: 357.6 kB / 433.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003167/0.4575, allocations: 115.4 kB / 433.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4575, allocations: 4 kB / 433.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of Templates: time 0.2434/0.7009, allocations: 24.33 MB / 458 MB, free: 112.6 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)