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.001285/0.001285, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001994/0.001995, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.855/1.855, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001794/0.001794, allocations: 51.92 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4499/0.4517, allocations: 46.62 MB / 324.9 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01956/0.4713, allocations: 9.523 MB / 334.4 MB, free: 10.45 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01141/0.4828, allocations: 3.105 MB / 337.5 MB, free: 7.453 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003605/0.4865, allocations: 47.75 kB / 337.5 MB, free: 7.406 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003786/0.4903, allocations: 0.5943 MB / 338.1 MB, free: 6.809 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005254/0.4956, allocations: 0.6916 MB / 338.8 MB, free: 6.113 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.4973, allocations: 347.7 kB / 339.1 MB, free: 5.773 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004721/0.5021, allocations: 2.549 MB / 341.7 MB, free: 3.215 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003073/0.5052, allocations: 2.286 MB / 344 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002035/0.5073, allocations: 1.18 MB / 345.2 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002361/0.5096, allocations: 1.526 MB / 346.7 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006317/0.5103, allocations: 320 kB / 347 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001217/0.5115, allocations: 415.8 kB / 347.4 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000958/0.5125, allocations: 0.8999 MB / 348.3 MB, free: 12.53 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001801/0.5143, allocations: 1.416 MB / 349.7 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005114/0.5194, allocations: 4.101 MB / 353.8 MB, free: 6.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.5195, allocations: 0 / 353.8 MB, free: 6.996 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.5195, allocations: 0 / 353.8 MB, free: 6.996 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001719/0.5197, allocations: 0 / 353.8 MB, free: 6.996 MB / 286.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.009955/0.5297, allocations: 2.897 MB / 356.7 MB, free: 4.035 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.01e-05/0.5298, allocations: 15.89 kB / 356.7 MB, free: 4.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001161/0.5309, allocations: 293.7 kB / 357 MB, free: 3.73 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002945/0.5339, allocations: 1.429 MB / 358.5 MB, free: 2.242 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.5341, allocations: 164.5 kB / 358.6 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003516/0.5345, allocations: 215.9 kB / 358.8 MB, free: 1.867 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007241/0.5417, allocations: 2.792 MB / 361.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.498e-05/0.5419, allocations: 7.906 kB / 361.6 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002531/0.5421, allocations: 84 kB / 361.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000156/0.5423, allocations: 108.2 kB / 361.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004773/0.5471, allocations: 2.351 MB / 364.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01731/0.5644, allocations: 8.601 MB / 372.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002758/0.5672, allocations: 1.711 MB / 374.5 MB, free: 1.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002003/0.5693, allocations: 0.9674 MB / 375.4 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004035/0.5697, allocations: 203.2 kB / 375.6 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.049e-05/0.5698, allocations: 59.42 kB / 375.7 MB, free: 484 kB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 3.116e-06/0.5698, allocations: 0 / 375.7 MB, free: 484 kB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.01343/0.5832, allocations: 6.094 MB / 381.8 MB, free: 10.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.5833, allocations: 68.39 kB / 381.9 MB, free: 10.15 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002363/0.5857, allocations: 1.437 MB / 383.3 MB, free: 8.699 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.5858, allocations: 45.7 kB / 383.3 MB, free: 8.648 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007848/0.5866, allocations: 1.041 MB / 384.4 MB, free: 7.594 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003276/0.587, allocations: 418 kB / 384.8 MB, free: 7.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000434/0.5874, allocations: 251.5 kB / 385 MB, free: 6.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.5876, allocations: 357.9 kB / 385.4 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.5887, allocations: 0.6871 MB / 386.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.5901, allocations: 1.07 MB / 387.1 MB, free: 4.652 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002712/0.5928, allocations: 1.86 MB / 389 MB, free: 2.633 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.5928, allocations: 4 kB / 389 MB, free: 2.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004088/0.5969, allocations: 2.402 MB / 391.4 MB, free: 192 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.597, allocations: 16 kB / 391.4 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.292e-05/0.597, allocations: 12 kB / 391.4 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.598, allocations: 419.1 kB / 391.8 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.5992, allocations: 327.5 kB / 392.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007353/0.6066, allocations: 7.045 MB / 399.2 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.6082, allocations: 99.8 kB / 399.3 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.6083, allocations: 63.98 kB / 399.4 MB, free: 7.789 MB / 334.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.001434/0.6097, allocations: 0.6895 MB / 400.1 MB, free: 7.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000288/0.61, allocations: 154.1 kB / 400.2 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003763/0.6138, allocations: 2.115 MB / 402.3 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.6138, allocations: 12 kB / 402.3 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.6138, allocations: 7.984 kB / 402.3 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.6138, allocations: 3.984 kB / 402.3 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007885/0.6217, allocations: 4.578 MB / 406.9 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.6218, allocations: 8.094 kB / 406.9 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008839/0.6227, allocations: 211.7 kB / 407.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001101/0.6238, allocations: 450.9 kB / 407.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.6239, allocations: 35.98 kB / 407.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0084/0.6323, allocations: 8.62 MB / 416.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/0.6324, allocations: 11.88 kB / 416.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004931/0.6373, allocations: 3.097 MB / 419.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009185/0.6382, allocations: 383 kB / 419.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002148/0.6385, allocations: 32 kB / 419.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008488/0.6393, allocations: 83.84 kB / 419.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002563/0.6396, allocations: 100.8 kB / 419.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-05/0.6397, allocations: 36.03 kB / 420 MB, free: 2.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001484/0.6412, allocations: 0.9886 MB / 421 MB, free: 1.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6412, allocations: 0 / 421 MB, free: 1.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001634/0.6428, allocations: 467.9 kB / 421.4 MB, free: 0.8555 MB / 350.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.0003812/0.6432, allocations: 203.1 kB / 421.6 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004777/0.648, allocations: 2.684 MB / 424.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.648, allocations: 0 / 424.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002476/0.6505, allocations: 1.446 MB / 425.7 MB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.6526, allocations: 416.9 kB / 426.1 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008211/0.6609, allocations: 5.433 MB / 431.6 MB, free: 6.504 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/0.6624, allocations: 1.803 MB / 433.4 MB, free: 4.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001243/0.6637, allocations: 369.6 kB / 433.7 MB, free: 4.293 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003322/0.664, allocations: 115.4 kB / 433.9 MB, free: 4.18 MB / 366.1 MB Notification: Performance of SimCode: time 1.283e-06/0.6641, allocations: 0 / 433.9 MB, free: 4.18 MB / 366.1 MB Notification: Performance of Templates: time 0.2379/0.9019, allocations: 24.29 MB / 458.1 MB, free: 111.1 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)