Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001249/0.001249, allocations: 92.19 kB / 16.65 MB, free: 6.172 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.001138/0.001138, allocations: 179.3 kB / 17.56 MB, free: 5.855 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.728/1.728, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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.0005019/0.0005019, allocations: 12 kB / 280.7 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1075, allocations: 47.58 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.009545/0.1171, allocations: 8.987 MB / 337.3 MB, free: 10.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006652/0.1238, allocations: 3.094 MB / 340.4 MB, free: 7.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001448/0.1253, allocations: 39.81 kB / 340.4 MB, free: 7.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.127, allocations: 0.5904 MB / 341 MB, free: 6.984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002536/0.1295, allocations: 0.6877 MB / 341.7 MB, free: 6.293 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008655/0.1304, allocations: 339.7 kB / 342.1 MB, free: 5.961 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003389/0.1338, allocations: 2.872 MB / 344.9 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002488/0.1363, allocations: 1.914 MB / 346.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001985/0.1383, allocations: 0.8906 MB / 347.7 MB, free: 212 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002135/0.1405, allocations: 1.264 MB / 349 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002698/0.1408, allocations: 136 kB / 349.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006373/0.1414, allocations: 243.8 kB / 349.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006573/0.1421, allocations: 0.6813 MB / 350.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001186/0.1433, allocations: 1.202 MB / 351.3 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004122/0.1474, allocations: 3.873 MB / 355.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1474, allocations: 0 / 355.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.1474, allocations: 4 kB / 355.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.025e-05/0.1475, allocations: 0 / 355.1 MB, free: 8.777 MB / 302.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.005406/0.1529, allocations: 2.464 MB / 357.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.586e-05/0.153, allocations: 8.031 kB / 357.6 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009721/0.154, allocations: 289.7 kB / 357.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002662/0.1567, allocations: 1.433 MB / 359.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002131/0.1569, allocations: 176.5 kB / 359.5 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003801/0.1573, allocations: 215.9 kB / 359.7 MB, free: 4.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005032/0.1623, allocations: 2.807 MB / 362.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.339e-05/0.1624, allocations: 11.91 kB / 362.5 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.1626, allocations: 87.92 kB / 362.6 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001465/0.1628, allocations: 100.2 kB / 362.7 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00461/0.1674, allocations: 2.37 MB / 365.1 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01454/0.182, allocations: 8.636 MB / 373.7 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002849/0.1849, allocations: 1.726 MB / 375.4 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.1868, allocations: 0.9724 MB / 376.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003131/0.1871, allocations: 207.2 kB / 376.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.925e-05/0.1871, allocations: 47.5 kB / 376.7 MB, free: 2.598 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.116e-06/0.1871, allocations: 0 / 376.7 MB, free: 2.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.2623/0.4495, allocations: 6.211 MB / 382.9 MB, free: 50.22 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.4495, allocations: 63.75 kB / 382.9 MB, free: 50.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002263/0.4518, allocations: 1.441 MB / 384.4 MB, free: 49.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.848e-05/0.4519, allocations: 45.8 kB / 384.4 MB, free: 49.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006885/0.4526, allocations: 1.039 MB / 385.5 MB, free: 48.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003165/0.4529, allocations: 406.3 kB / 385.9 MB, free: 48.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001706/0.4531, allocations: 114.4 kB / 386 MB, free: 48.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.4532, allocations: 365.2 kB / 386.3 MB, free: 48.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.4545, allocations: 0.6891 MB / 387 MB, free: 47.83 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001442/0.4559, allocations: 1.09 MB / 388.1 MB, free: 47.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00267/0.4586, allocations: 1.881 MB / 390 MB, free: 46.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.4586, allocations: 3.406 kB / 390 MB, free: 46.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004301/0.4629, allocations: 2.438 MB / 392.4 MB, free: 45.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.463, allocations: 7.906 kB / 392.4 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.463, allocations: 11.78 kB / 392.4 MB, free: 45.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000949/0.4639, allocations: 411 kB / 392.8 MB, free: 44.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.4652, allocations: 336.4 kB / 393.2 MB, free: 44.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005275/0.4704, allocations: 6.476 MB / 399.6 MB, free: 39.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/0.4722, allocations: 105.3 kB / 399.7 MB, free: 39.83 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.4723, allocations: 59.14 kB / 399.8 MB, free: 39.82 MB / 318.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.001497/0.4738, allocations: 0.6867 MB / 400.5 MB, free: 39.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003387/0.4741, allocations: 168.5 kB / 400.7 MB, free: 39.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.4774, allocations: 2.141 MB / 402.8 MB, free: 38.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.4775, allocations: 12.36 kB / 402.8 MB, free: 38.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.4775, allocations: 3.531 kB / 402.8 MB, free: 38.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.4775, allocations: 7.969 kB / 402.8 MB, free: 38.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006236/0.4837, allocations: 4.598 MB / 407.4 MB, free: 34.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.4838, allocations: 4 kB / 407.4 MB, free: 34.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007856/0.4846, allocations: 220.1 kB / 407.6 MB, free: 34.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009622/0.4855, allocations: 456.3 kB / 408.1 MB, free: 33.97 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-05/0.4856, allocations: 31.98 kB / 408.1 MB, free: 33.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005573/0.4912, allocations: 7.915 MB / 416 MB, free: 25.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.4912, allocations: 11.88 kB / 416 MB, free: 25.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004464/0.4957, allocations: 3.139 MB / 419.2 MB, free: 22.28 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007913/0.4965, allocations: 383 kB / 419.6 MB, free: 21.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.4967, allocations: 42.73 kB / 419.6 MB, free: 21.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007912/0.4975, allocations: 83.91 kB / 419.7 MB, free: 21.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.4977, allocations: 100.8 kB / 419.8 MB, free: 21.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.281e-05/0.4978, allocations: 35.98 kB / 419.8 MB, free: 21.63 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001218/0.499, allocations: 0.9886 MB / 420.8 MB, free: 20.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.499, allocations: 0 / 420.8 MB, free: 20.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001766/0.5008, allocations: 458.8 kB / 421.2 MB, free: 20.2 MB / 318.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.0004097/0.5012, allocations: 196.2 kB / 421.4 MB, free: 20 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003064/0.5043, allocations: 2.24 MB / 423.7 MB, free: 17.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.5043, allocations: 0 / 423.7 MB, free: 17.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001817/0.5061, allocations: 1.452 MB / 425.1 MB, free: 16.21 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/0.5086, allocations: 400.4 kB / 425.5 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006212/0.5148, allocations: 5.572 MB / 431.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00107/0.5159, allocations: 1.807 MB / 432.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.5169, allocations: 361.6 kB / 433.3 MB, free: 7.973 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002873/0.5172, allocations: 115.4 kB / 433.4 MB, free: 7.859 MB / 318.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5172, allocations: 3.5 kB / 433.4 MB, free: 7.859 MB / 318.1 MB Notification: Performance of Templates: time 0.0387/0.5559, allocations: 23.03 MB / 456.4 MB, free: 0.8086 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)