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.002813/0.002813, allocations: 105.2 kB / 16.51 MB, free: 6.715 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.003263/0.003264, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.669/1.669, allocations: 205.1 MB / 223.3 MB, free: 12.49 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.001593/0.001593, allocations: 43.92 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1345, allocations: 46.62 MB / 326 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01296/0.1475, allocations: 9.52 MB / 335.5 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008289/0.1558, allocations: 3.125 MB / 338.6 MB, free: 8.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002556/0.1584, allocations: 39.81 kB / 338.6 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002747/0.1613, allocations: 0.5943 MB / 339.2 MB, free: 7.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003991/0.1653, allocations: 0.6916 MB / 339.9 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001482/0.1668, allocations: 343.7 kB / 340.3 MB, free: 6.512 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004921/0.1717, allocations: 2.869 MB / 343.1 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002898/0.1747, allocations: 1.93 MB / 345.1 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002187/0.1769, allocations: 1.035 MB / 346.1 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002618/0.1795, allocations: 1.444 MB / 347.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004885/0.18, allocations: 196 kB / 347.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001025/0.1811, allocations: 307.8 kB / 348 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008512/0.1819, allocations: 0.7749 MB / 348.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001702/0.1836, allocations: 1.29 MB / 350.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004002/0.1877, allocations: 4.003 MB / 354.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.1877, allocations: 0 / 354.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1877, allocations: 0 / 354.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001008/0.1878, allocations: 3.938 kB / 354.1 MB, free: 8.566 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.007076/0.1949, allocations: 2.897 MB / 357 MB, free: 5.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.195, allocations: 12.03 kB / 357 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007888/0.1958, allocations: 289.6 kB / 357.3 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00244/0.1982, allocations: 1.437 MB / 358.7 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/0.1984, allocations: 168.5 kB / 358.9 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003377/0.1987, allocations: 204 kB / 359.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005145/0.2039, allocations: 2.799 MB / 361.9 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.554e-05/0.204, allocations: 11.84 kB / 361.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002014/0.2042, allocations: 84 kB / 362 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001207/0.2043, allocations: 104.2 kB / 362.1 MB, free: 368 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004217/0.2085, allocations: 2.351 MB / 364.4 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01508/0.2236, allocations: 8.596 MB / 373 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002811/0.2265, allocations: 1.707 MB / 374.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.2284, allocations: 0.9723 MB / 375.7 MB, free: 2.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003636/0.2288, allocations: 199.2 kB / 375.9 MB, free: 2.117 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.772e-05/0.2289, allocations: 51.5 kB / 376 MB, free: 2.059 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.166e-06/0.2289, allocations: 0 / 376 MB, free: 2.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.2617/0.4906, allocations: 6.101 MB / 382.1 MB, free: 50.9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.803e-05/0.4907, allocations: 67.39 kB / 382.1 MB, free: 50.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/0.4931, allocations: 1.438 MB / 383.6 MB, free: 50.28 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001416/0.4933, allocations: 50.41 kB / 383.6 MB, free: 50.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007213/0.494, allocations: 1.036 MB / 384.7 MB, free: 49.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003463/0.4944, allocations: 403.7 kB / 385 MB, free: 49.12 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004465/0.4948, allocations: 257.5 kB / 385.3 MB, free: 49 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.4949, allocations: 364.6 kB / 385.7 MB, free: 48.67 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.4962, allocations: 0.6828 MB / 386.3 MB, free: 48.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.4975, allocations: 1.069 MB / 387.4 MB, free: 47.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002557/0.5, allocations: 1.864 MB / 389.3 MB, free: 46.67 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-05/0.5001, allocations: 4.078 kB / 389.3 MB, free: 46.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004134/0.5042, allocations: 2.397 MB / 391.7 MB, free: 45.67 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.5043, allocations: 7.906 kB / 391.7 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.634e-05/0.5043, allocations: 16.47 kB / 391.7 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.5053, allocations: 415.1 kB / 392.1 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.5066, allocations: 330.2 kB / 392.4 MB, free: 45.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005452/0.5121, allocations: 6.469 MB / 398.9 MB, free: 40.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001512/0.5136, allocations: 101.3 kB / 399 MB, free: 40.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/0.5138, allocations: 61.16 kB / 399.1 MB, free: 40.43 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.001299/0.5151, allocations: 0.6962 MB / 399.7 MB, free: 40.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003697/0.5154, allocations: 157 kB / 399.9 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003317/0.5188, allocations: 2.115 MB / 402 MB, free: 38.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.5188, allocations: 11.62 kB / 402 MB, free: 38.88 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.5188, allocations: 3.938 kB / 402 MB, free: 38.88 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.5188, allocations: 15.81 kB / 402 MB, free: 38.87 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006465/0.5253, allocations: 4.564 MB / 406.6 MB, free: 34.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.5254, allocations: 4 kB / 406.6 MB, free: 34.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008282/0.5262, allocations: 215.7 kB / 406.8 MB, free: 34.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001062/0.5273, allocations: 454.7 kB / 407.3 MB, free: 34.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.999e-05/0.5274, allocations: 35.98 kB / 407.3 MB, free: 34.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00589/0.5333, allocations: 7.917 MB / 415.2 MB, free: 25.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.5333, allocations: 4 kB / 415.2 MB, free: 25.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004798/0.5381, allocations: 3.106 MB / 418.3 MB, free: 22.65 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009545/0.5391, allocations: 383 kB / 418.7 MB, free: 22.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004201/0.5395, allocations: 31.98 kB / 418.7 MB, free: 22.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.5406, allocations: 79.91 kB / 418.8 MB, free: 22.14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002618/0.5408, allocations: 96.75 kB / 418.9 MB, free: 22.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.457e-05/0.5409, allocations: 43.98 kB / 419 MB, free: 22.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001488/0.5424, allocations: 0.9847 MB / 419.9 MB, free: 21.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5424, allocations: 3.938 kB / 419.9 MB, free: 21.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001878/0.5443, allocations: 466.6 kB / 420.4 MB, free: 20.57 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.000408/0.5447, allocations: 197.2 kB / 420.6 MB, free: 20.38 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003299/0.5481, allocations: 2.213 MB / 422.8 MB, free: 18.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5481, allocations: 0 / 422.8 MB, free: 18.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001974/0.5501, allocations: 1.447 MB / 424.2 MB, free: 16.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002464/0.5525, allocations: 395.4 kB / 424.6 MB, free: 16.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007417/0.56, allocations: 5.427 MB / 430.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/0.5615, allocations: 1.796 MB / 431.9 MB, free: 8.918 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001324/0.5628, allocations: 369.5 kB / 432.2 MB, free: 8.551 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004391/0.5633, allocations: 115.4 kB / 432.3 MB, free: 8.438 MB / 318.1 MB Notification: Performance of SimCode: time 8.31e-07/0.5633, allocations: 0 / 432.3 MB, free: 8.438 MB / 318.1 MB Notification: Performance of Templates: time 0.04373/0.607, allocations: 23.39 MB / 455.7 MB, free: 1.031 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)