Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001274/0.001273, 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.001659/0.001659, allocations: 198.5 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.706/1.706, allocations: 205.1 MB / 222 MB, free: 4.969 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.001213/0.001213, allocations: 47.92 kB / 278.1 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2708, allocations: 46.63 MB / 324.7 MB, free: 1.832 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01213/0.2829, allocations: 9.511 MB / 334.2 MB, free: 10.35 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007598/0.2906, allocations: 3.122 MB / 337.3 MB, free: 7.512 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003771/0.2944, allocations: 43.75 kB / 337.4 MB, free: 7.469 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003169/0.2977, allocations: 0.5982 MB / 338 MB, free: 6.867 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003627/0.3013, allocations: 0.6799 MB / 338.6 MB, free: 6.184 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.3028, allocations: 355.5 kB / 339 MB, free: 5.836 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006127/0.3089, allocations: 2.869 MB / 341.9 MB, free: 2.957 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002884/0.3118, allocations: 1.937 MB / 343.8 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002173/0.314, allocations: 1.035 MB / 344.8 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002838/0.3169, allocations: 1.432 MB / 346.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000396/0.3173, allocations: 196 kB / 346.5 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008288/0.3181, allocations: 303.8 kB / 346.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008112/0.319, allocations: 0.7788 MB / 347.5 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001542/0.3205, allocations: 1.294 MB / 348.8 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00363/0.3241, allocations: 3.999 MB / 352.8 MB, free: 7.898 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3242, allocations: 0 / 352.8 MB, free: 7.898 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3242, allocations: 4 kB / 352.8 MB, free: 7.895 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.42e-05/0.3243, allocations: 0 / 352.8 MB, free: 7.895 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.005683/0.3299, allocations: 2.9 MB / 355.7 MB, free: 4.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.33, allocations: 8.031 kB / 355.7 MB, free: 4.922 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007526/0.3308, allocations: 293.7 kB / 356 MB, free: 4.633 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002331/0.3331, allocations: 1.433 MB / 357.5 MB, free: 3.141 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.3333, allocations: 164.5 kB / 357.6 MB, free: 2.977 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002971/0.3336, allocations: 207.9 kB / 357.8 MB, free: 2.773 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004428/0.338, allocations: 2.803 MB / 360.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.036e-05/0.3381, allocations: 7.906 kB / 360.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001828/0.3383, allocations: 80 kB / 360.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001115/0.3384, allocations: 112.2 kB / 360.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003912/0.3423, allocations: 2.343 MB / 363.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01288/0.3552, allocations: 8.597 MB / 371.8 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/0.3577, allocations: 1.715 MB / 373.5 MB, free: 2.652 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.3594, allocations: 0.9645 MB / 374.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003018/0.3597, allocations: 203.1 kB / 374.6 MB, free: 1.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.3597, allocations: 51.48 kB / 374.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 3.226e-06/0.3598, allocations: 0 / 374.7 MB, free: 1.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.01431/0.3741, allocations: 6.11 MB / 380.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.726e-05/0.3742, allocations: 64.41 kB / 380.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002751/0.377, allocations: 1.445 MB / 382.3 MB, free: 9.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.3771, allocations: 41.7 kB / 382.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008204/0.3779, allocations: 1.041 MB / 383.4 MB, free: 8.488 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003781/0.3783, allocations: 410 kB / 383.8 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004029/0.3787, allocations: 255.4 kB / 384 MB, free: 7.828 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3789, allocations: 361.9 kB / 384.4 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/0.3802, allocations: 0.691 MB / 385.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001699/0.3819, allocations: 1.062 MB / 386.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002804/0.3848, allocations: 1.86 MB / 388 MB, free: 3.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.214e-05/0.3848, allocations: 4 kB / 388 MB, free: 3.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004387/0.3892, allocations: 2.402 MB / 390.4 MB, free: 1.086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.072e-05/0.3893, allocations: 15.98 kB / 390.4 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.618e-05/0.3893, allocations: 12 kB / 390.4 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.3904, allocations: 415.3 kB / 390.8 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.3916, allocations: 327.5 kB / 391.2 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006547/0.3982, allocations: 6.464 MB / 397.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.3998, allocations: 103.8 kB / 397.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.4, allocations: 59.94 kB / 397.8 MB, free: 9.289 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.001351/0.4013, allocations: 0.6893 MB / 398.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003801/0.4017, allocations: 158 kB / 398.6 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003607/0.4053, allocations: 2.118 MB / 400.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.4053, allocations: 12 kB / 400.8 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.4054, allocations: 4 kB / 400.8 MB, free: 6.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.4054, allocations: 15.91 kB / 400.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007674/0.4131, allocations: 4.558 MB / 405.3 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/0.4131, allocations: 7.938 kB / 405.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009058/0.414, allocations: 224.1 kB / 405.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.4152, allocations: 442.9 kB / 406 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.639e-05/0.4153, allocations: 31.98 kB / 406 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007627/0.4229, allocations: 7.924 MB / 413.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.423, allocations: 11.94 kB / 414 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005172/0.4282, allocations: 3.097 MB / 417.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001023/0.4292, allocations: 379 kB / 417.4 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002237/0.4295, allocations: 35.98 kB / 417.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008628/0.4303, allocations: 83.91 kB / 417.5 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/0.4306, allocations: 104.6 kB / 417.6 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.18e-05/0.4307, allocations: 35.98 kB / 417.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001488/0.4322, allocations: 0.9886 MB / 418.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4322, allocations: 0 / 418.7 MB, free: 3.531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001707/0.4339, allocations: 460 kB / 419.1 MB, free: 3.082 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.0004041/0.4344, allocations: 195 kB / 419.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003672/0.438, allocations: 2.203 MB / 421.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/0.4381, allocations: 0.8125 kB / 421.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002278/0.4404, allocations: 1.458 MB / 423 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002178/0.4425, allocations: 389.4 kB / 423.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009252/0.4518, allocations: 5.423 MB / 428.8 MB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001654/0.4535, allocations: 1.803 MB / 430.6 MB, free: 7.402 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001383/0.4549, allocations: 369.5 kB / 430.9 MB, free: 7.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003571/0.4553, allocations: 115.4 kB / 431 MB, free: 6.922 MB / 366.1 MB Notification: Performance of SimCode: time 1.223e-06/0.4553, allocations: 0 / 431 MB, free: 6.922 MB / 366.1 MB Notification: Performance of Templates: time 0.2105/0.6657, allocations: 23.38 MB / 454.4 MB, free: 112.7 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)