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.01276/0.01276, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001937/0.001937, allocations: 188 kB / 16.67 MB, free: 5.977 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.896/1.896, 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.001439/0.001439, allocations: 51.84 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1128, allocations: 46.61 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01414/0.127, allocations: 9.583 MB / 382.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007979/0.135, allocations: 3.163 MB / 385.9 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00213/0.1372, allocations: 51.75 kB / 386 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002508/0.1397, allocations: 0.7065 MB / 386.7 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003893/0.1436, allocations: 0.7922 MB / 387.5 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001778/0.1454, allocations: 399.4 kB / 387.9 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00461/0.1501, allocations: 2.553 MB / 390.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00386/0.154, allocations: 2.286 MB / 392.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002237/0.1562, allocations: 1.184 MB / 393.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00289/0.1591, allocations: 1.498 MB / 395.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.1601, allocations: 324 kB / 395.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001589/0.1618, allocations: 419.8 kB / 396.1 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001519/0.1633, allocations: 0.8922 MB / 397 MB, free: 9.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002895/0.1662, allocations: 1.423 MB / 398.4 MB, free: 7.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004811/0.171, allocations: 4.155 MB / 402.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1711, allocations: 0 / 402.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1711, allocations: 0 / 402.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001088/0.1712, allocations: 0 / 402.6 MB, free: 3.73 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.006598/0.1778, allocations: 2.896 MB / 405.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.1779, allocations: 15.89 kB / 405.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007844/0.1787, allocations: 293.7 kB / 405.8 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002407/0.1811, allocations: 1.433 MB / 407.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001448/0.1812, allocations: 168.3 kB / 407.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003159/0.1816, allocations: 211.9 kB / 407.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005132/0.1867, allocations: 2.796 MB / 410.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.342e-05/0.1868, allocations: 8 kB / 410.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001917/0.187, allocations: 84 kB / 410.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.1871, allocations: 108.2 kB / 410.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004348/0.1915, allocations: 2.347 MB / 412.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01444/0.2059, allocations: 8.495 MB / 421.4 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/0.2086, allocations: 1.71 MB / 423.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001852/0.2105, allocations: 0.9517 MB / 424.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003671/0.2109, allocations: 212.2 kB / 424.3 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.908e-05/0.211, allocations: 43.5 kB / 424.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 4.328e-06/0.211, allocations: 0 / 424.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01357/0.2246, allocations: 6.106 MB / 430.4 MB, free: 7.074 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.316e-05/0.2247, allocations: 64.41 kB / 430.5 MB, free: 7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00236/0.227, allocations: 1.433 MB / 431.9 MB, free: 5.555 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.2272, allocations: 45.7 kB / 432 MB, free: 5.504 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008799/0.228, allocations: 1.049 MB / 433 MB, free: 4.441 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003544/0.2284, allocations: 406.1 kB / 433.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004226/0.2288, allocations: 263.3 kB / 433.7 MB, free: 3.773 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000171/0.229, allocations: 357.9 kB / 434 MB, free: 3.418 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/0.2302, allocations: 0.6793 MB / 434.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.2317, allocations: 1.078 MB / 435.8 MB, free: 1.496 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/0.2344, allocations: 1.863 MB / 437.6 MB, free: 15.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.2344, allocations: 4 kB / 437.6 MB, free: 15.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004551/0.239, allocations: 2.402 MB / 440.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.239, allocations: 8 kB / 440.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.939e-05/0.239, allocations: 12 kB / 440.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.2401, allocations: 427.3 kB / 440.5 MB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.2414, allocations: 323.5 kB / 440.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008012/0.2494, allocations: 7.033 MB / 447.8 MB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.251, allocations: 107.9 kB / 447.9 MB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002025/0.2513, allocations: 56 kB / 448 MB, free: 4.645 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.00159/0.2529, allocations: 0.6895 MB / 448.7 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005741/0.2534, allocations: 162 kB / 448.8 MB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004529/0.258, allocations: 2.119 MB / 451 MB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.258, allocations: 12 kB / 451 MB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.046e-05/0.2581, allocations: 11.94 kB / 451 MB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/0.2581, allocations: 7.969 kB / 451 MB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2957/0.5538, allocations: 4.544 MB / 455.5 MB, free: 68.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.5e-05/0.5538, allocations: 7.469 kB / 455.5 MB, free: 68.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009912/0.5548, allocations: 213 kB / 455.8 MB, free: 68.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001347/0.5562, allocations: 450.6 kB / 456.2 MB, free: 68.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.5563, allocations: 35.31 kB / 456.2 MB, free: 68.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008499/0.5648, allocations: 8.611 MB / 464.8 MB, free: 62.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/0.5649, allocations: 9.469 kB / 464.8 MB, free: 62.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006854/0.5717, allocations: 3.104 MB / 468 MB, free: 60.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/0.5733, allocations: 390.6 kB / 468.3 MB, free: 60.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004124/0.5738, allocations: 35.44 kB / 468.4 MB, free: 60.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009961/0.5748, allocations: 83.95 kB / 468.4 MB, free: 60.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003526/0.5752, allocations: 92.38 kB / 468.5 MB, free: 60.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.233e-05/0.5753, allocations: 38.92 kB / 468.6 MB, free: 60.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001942/0.5772, allocations: 0.9881 MB / 469.6 MB, free: 60.36 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.32e-07/0.5772, allocations: 0 / 469.6 MB, free: 60.36 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00327/0.5805, allocations: 466 kB / 470 MB, free: 60.31 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.0005542/0.5811, allocations: 185.5 kB / 470.2 MB, free: 60.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004927/0.586, allocations: 2.23 MB / 472.4 MB, free: 59.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.339e-05/0.5861, allocations: 0 / 472.4 MB, free: 59.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002503/0.5886, allocations: 1.447 MB / 473.9 MB, free: 58.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002527/0.5912, allocations: 421.1 kB / 474.3 MB, free: 58.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008601/0.5998, allocations: 4.452 MB / 478.7 MB, free: 56.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/0.6012, allocations: 1.804 MB / 480.5 MB, free: 55.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00131/0.6026, allocations: 365.6 kB / 480.9 MB, free: 54.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000465/0.6031, allocations: 114 kB / 481 MB, free: 54.89 MB / 382.1 MB Notification: Performance of SimCode: time 2.284e-06/0.6031, allocations: 0 / 481 MB, free: 54.89 MB / 382.1 MB Notification: Performance of Templates: time 0.04599/0.6491, allocations: 24.78 MB / 0.4939 GB, free: 30.2 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)