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.001198/0.001198, allocations: 100.1 kB / 16.3 MB, free: 5.574 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.001474/0.001474, allocations: 183.1 kB / 17.2 MB, free: 5.508 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.651/1.651, allocations: 205.4 MB / 223.4 MB, free: 13.17 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.0005161/0.0005164, allocations: 16 kB / 280.1 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1164, allocations: 47.58 MB / 327.7 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.008877/0.1253, allocations: 7.774 MB / 335.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005588/0.1309, allocations: 3.042 MB / 338.5 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00132/0.1323, allocations: 43.75 kB / 338.6 MB, free: 9.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001536/0.1338, allocations: 0.5558 MB / 339.1 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002078/0.1359, allocations: 0.6543 MB / 339.8 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000709/0.1367, allocations: 263.5 kB / 340 MB, free: 7.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002251/0.1389, allocations: 1.665 MB / 341.7 MB, free: 6.055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001711/0.1406, allocations: 1.484 MB / 343.2 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.1418, allocations: 0.8212 MB / 344 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001357/0.1432, allocations: 1.066 MB / 345.1 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002638/0.1434, allocations: 132 kB / 345.2 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005612/0.144, allocations: 207.9 kB / 345.4 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000652/0.1447, allocations: 0.6387 MB / 346 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006555/0.1453, allocations: 496.5 kB / 346.5 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003148/0.1485, allocations: 3.28 MB / 349.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1485, allocations: 0 / 349.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1485, allocations: 0 / 349.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.738e-05/0.1486, allocations: 0 / 349.8 MB, free: 13.89 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.005717/0.1543, allocations: 2.495 MB / 352.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.1544, allocations: 8.031 kB / 352.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00122/0.1556, allocations: 292.8 kB / 352.6 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003412/0.159, allocations: 1.39 MB / 354 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003059/0.1594, allocations: 164.2 kB / 354.1 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005137/0.1599, allocations: 215.9 kB / 354.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005209/0.1651, allocations: 2.776 MB / 357.1 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.136e-05/0.1652, allocations: 4 kB / 357.1 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002063/0.1654, allocations: 91.97 kB / 357.2 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001201/0.1656, allocations: 108.1 kB / 357.3 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004542/0.1701, allocations: 2.355 MB / 359.7 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.014/0.1841, allocations: 8.589 MB / 368.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002348/0.1865, allocations: 1.712 MB / 370 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002848/0.1868, allocations: 207.2 kB / 370.2 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.1869, allocations: 39.56 kB / 370.2 MB, free: 8.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.236e-06/0.1869, allocations: 0 / 370.2 MB, free: 8.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01209/0.199, allocations: 6.089 MB / 376.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.1991, allocations: 64.34 kB / 376.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.2009, allocations: 1.386 MB / 377.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.08e-05/0.201, allocations: 49.7 kB / 377.8 MB, free: 1.078 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006832/0.2017, allocations: 1.037 MB / 378.8 MB, free: 28 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1811/0.3828, allocations: 404.2 kB / 379.2 MB, free: 50.35 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.3829, allocations: 27.88 kB / 379.3 MB, free: 50.35 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3831, allocations: 361.1 kB / 379.6 MB, free: 50.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.3845, allocations: 0.698 MB / 380.3 MB, free: 50.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/0.3862, allocations: 1.08 MB / 381.4 MB, free: 49.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/0.3879, allocations: 0.8685 MB / 382.3 MB, free: 49.59 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.259e-05/0.3879, allocations: 3.562 kB / 382.3 MB, free: 49.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004305/0.3922, allocations: 2.413 MB / 384.7 MB, free: 48.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.3923, allocations: 10.72 kB / 384.7 MB, free: 48.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.748e-05/0.3923, allocations: 11.25 kB / 384.7 MB, free: 48.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009917/0.3933, allocations: 387.7 kB / 385.1 MB, free: 48.58 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.3947, allocations: 342.5 kB / 385.4 MB, free: 48.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005921/0.4006, allocations: 6.374 MB / 391.8 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.4021, allocations: 108.2 kB / 391.9 MB, free: 43.53 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/0.4022, allocations: 58.55 kB / 392 MB, free: 43.52 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (160): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00143/0.4037, allocations: 0.6871 MB / 392.6 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003365/0.404, allocations: 163.2 kB / 392.8 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0035/0.4075, allocations: 2.127 MB / 394.9 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.4076, allocations: 13.88 kB / 394.9 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.4076, allocations: 3.406 kB / 394.9 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.4076, allocations: 7.547 kB / 395 MB, free: 42.14 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007386/0.415, allocations: 4.542 MB / 399.5 MB, free: 40.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.415, allocations: 3.938 kB / 399.5 MB, free: 40.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008361/0.4159, allocations: 225.4 kB / 399.7 MB, free: 40.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009444/0.4168, allocations: 424 kB / 400.1 MB, free: 39.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.365e-05/0.4169, allocations: 34.98 kB / 400.2 MB, free: 39.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005806/0.4227, allocations: 7.879 MB / 408 MB, free: 33.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.4228, allocations: 3.938 kB / 408 MB, free: 33.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004451/0.4272, allocations: 3.312 MB / 411.4 MB, free: 29.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009661/0.4282, allocations: 382.9 kB / 411.7 MB, free: 29.2 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000377/0.4286, allocations: 31.98 kB / 411.8 MB, free: 29.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.4296, allocations: 87.91 kB / 411.9 MB, free: 29.08 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.4298, allocations: 93.91 kB / 411.9 MB, free: 28.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.993e-05/0.4299, allocations: 35.98 kB / 412 MB, free: 28.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001715/0.4317, allocations: 0.9456 MB / 412.9 MB, free: 28.01 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4317, allocations: 0 / 412.9 MB, free: 28.01 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00222/0.4339, allocations: 462.6 kB / 413.4 MB, free: 27.56 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (105): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004028/0.4343, allocations: 159.1 kB / 413.5 MB, free: 27.4 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003365/0.4377, allocations: 2.228 MB / 415.8 MB, free: 25.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.4377, allocations: 0 / 415.8 MB, free: 25.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001974/0.4397, allocations: 1.44 MB / 417.2 MB, free: 23.63 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.4416, allocations: 387.5 kB / 417.6 MB, free: 23.26 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008163/0.4497, allocations: 5.312 MB / 422.9 MB, free: 17.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/0.4514, allocations: 1.846 MB / 424.7 MB, free: 16.02 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001598/0.453, allocations: 373.7 kB / 425.1 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004526/0.4535, allocations: 115.4 kB / 425.2 MB, free: 15.53 MB / 318.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4535, allocations: 0 / 425.2 MB, free: 15.53 MB / 318.1 MB Notification: Performance of Templates: time 0.04008/0.4936, allocations: 22.06 MB / 447.3 MB, free: 9.457 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: