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.01043/0.01043, allocations: 102.1 kB / 15.73 MB, free: 6.008 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.002131/0.002131, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.902/1.902, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001238/0.001238, allocations: 58.48 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.122, allocations: 46.62 MB / 373.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01367/0.1358, allocations: 9.579 MB / 382.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00942/0.1453, allocations: 3.155 MB / 385.9 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003291/0.1486, allocations: 51.75 kB / 386 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003168/0.1519, allocations: 0.7065 MB / 386.7 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005567/0.1575, allocations: 0.7922 MB / 387.5 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002055/0.1596, allocations: 395.4 kB / 387.9 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005448/0.165, allocations: 2.564 MB / 390.4 MB, free: 104 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004441/0.1695, allocations: 2.282 MB / 392.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003058/0.1726, allocations: 1.18 MB / 393.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003774/0.1764, allocations: 1.502 MB / 395.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00147/0.1779, allocations: 323.9 kB / 395.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002384/0.1803, allocations: 423.8 kB / 396.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001989/0.1824, allocations: 0.8922 MB / 397 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003934/0.1863, allocations: 1.419 MB / 398.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007341/0.1937, allocations: 4.151 MB / 402.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.1937, allocations: 0 / 402.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1937, allocations: 0 / 402.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001896/0.1939, allocations: 0 / 402.6 MB, free: 3.848 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.009473/0.2034, allocations: 2.904 MB / 405.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.2035, allocations: 11.89 kB / 405.5 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.2049, allocations: 289.7 kB / 405.8 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003966/0.2089, allocations: 1.445 MB / 407.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002027/0.2091, allocations: 160.3 kB / 407.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007747/0.2099, allocations: 223.8 kB / 407.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007296/0.2172, allocations: 2.788 MB / 410.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001076/0.2174, allocations: 3.984 kB / 410.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004438/0.2179, allocations: 92 kB / 410.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000165/0.218, allocations: 104.2 kB / 410.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005793/0.2238, allocations: 2.343 MB / 412.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01942/0.2433, allocations: 8.499 MB / 421.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003039/0.2464, allocations: 1.699 MB / 423.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00199/0.2484, allocations: 0.9604 MB / 424.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003757/0.2488, allocations: 211.2 kB / 424.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.2489, allocations: 47.5 kB / 424.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 5.6e-06/0.2489, allocations: 3.984 kB / 424.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01518/0.2641, allocations: 6.11 MB / 430.4 MB, free: 7.176 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.2642, allocations: 64.41 kB / 430.5 MB, free: 7.102 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00291/0.2672, allocations: 1.437 MB / 431.9 MB, free: 5.652 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001552/0.2674, allocations: 41.7 kB / 432 MB, free: 5.605 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009576/0.2683, allocations: 1.041 MB / 433 MB, free: 4.551 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005463/0.2689, allocations: 410.1 kB / 433.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005542/0.2695, allocations: 251.4 kB / 433.7 MB, free: 3.891 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.2696, allocations: 369.8 kB / 434 MB, free: 3.523 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/0.271, allocations: 0.6832 MB / 434.7 MB, free: 2.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.2726, allocations: 1.074 MB / 435.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003246/0.2758, allocations: 1.856 MB / 437.6 MB, free: 15.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.958e-05/0.2759, allocations: 4 kB / 437.6 MB, free: 15.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004604/0.2805, allocations: 2.402 MB / 440.1 MB, free: 13.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.2805, allocations: 15.94 kB / 440.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.531e-05/0.2806, allocations: 12 kB / 440.1 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/0.2819, allocations: 419.2 kB / 440.5 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.2833, allocations: 331.5 kB / 440.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009811/0.2931, allocations: 7.041 MB / 447.9 MB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.2951, allocations: 95.94 kB / 447.9 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002995/0.2954, allocations: 63.98 kB / 448 MB, free: 4.746 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.002049/0.2975, allocations: 0.6895 MB / 448.7 MB, free: 4.047 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007214/0.2982, allocations: 162 kB / 448.9 MB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004989/0.3032, allocations: 2.115 MB / 451 MB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-05/0.3033, allocations: 12 kB / 451 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/0.3033, allocations: 8 kB / 451 MB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.3033, allocations: 3.984 kB / 451 MB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3071/0.6104, allocations: 4.546 MB / 455.5 MB, free: 69.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.6104, allocations: 7 kB / 455.5 MB, free: 69.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009757/0.6114, allocations: 212 kB / 455.8 MB, free: 69.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/0.6128, allocations: 449.3 kB / 456.2 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.613, allocations: 34.66 kB / 456.2 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008639/0.6216, allocations: 8.613 MB / 464.8 MB, free: 62.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/0.6217, allocations: 7.469 kB / 464.8 MB, free: 62.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005744/0.6274, allocations: 3.106 MB / 468 MB, free: 61.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009799/0.6284, allocations: 380.3 kB / 468.3 MB, free: 60.87 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002104/0.6286, allocations: 36.39 kB / 468.4 MB, free: 60.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008415/0.6295, allocations: 83.66 kB / 468.4 MB, free: 60.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002898/0.6298, allocations: 96.61 kB / 468.5 MB, free: 60.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.196e-05/0.6299, allocations: 38.33 kB / 468.6 MB, free: 60.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001876/0.6318, allocations: 0.9924 MB / 469.6 MB, free: 60.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6318, allocations: 0 / 469.6 MB, free: 60.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002312/0.6341, allocations: 457.9 kB / 470 MB, free: 60.38 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.0004155/0.6345, allocations: 199 kB / 470.2 MB, free: 60.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003747/0.6383, allocations: 2.22 MB / 472.4 MB, free: 59.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.6383, allocations: 3.938 kB / 472.4 MB, free: 59.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002125/0.6404, allocations: 1.447 MB / 473.9 MB, free: 58.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/0.6433, allocations: 414.1 kB / 474.3 MB, free: 58.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008199/0.6515, allocations: 4.456 MB / 478.7 MB, free: 56.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/0.6532, allocations: 1.81 MB / 480.6 MB, free: 55.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001028/0.6542, allocations: 361 kB / 480.9 MB, free: 54.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.6545, allocations: 119.5 kB / 481 MB, free: 54.94 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6545, allocations: 0 / 481 MB, free: 54.94 MB / 382.1 MB Notification: Performance of Templates: time 0.04244/0.697, allocations: 24.78 MB / 0.4939 GB, free: 30.31 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)