Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001448/0.001448, allocations: 117.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001774/0.001774, allocations: 203.8 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2682, allocations: 50.55 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01033/0.2786, allocations: 8.218 MB / 417.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004898/0.2835, allocations: 2.738 MB / 420.2 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000857/0.2844, allocations: 35.88 kB / 420.2 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001655/0.2861, allocations: 0.6486 MB / 420.9 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001827/0.288, allocations: 0.6601 MB / 421.6 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006465/0.2886, allocations: 283.6 kB / 421.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002317/0.291, allocations: 2.039 MB / 423.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001603/0.2926, allocations: 1.424 MB / 425.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.2938, allocations: 0.8954 MB / 426.2 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001342/0.2951, allocations: 1.074 MB / 427.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003243/0.2955, allocations: 224 kB / 427.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006335/0.2961, allocations: 315.8 kB / 427.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006462/0.2968, allocations: 0.635 MB / 428.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001094/0.2979, allocations: 1.038 MB / 429.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00291/0.3008, allocations: 2.996 MB / 432.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3008, allocations: 0 / 432.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3008, allocations: 3.938 kB / 432.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.498e-05/0.3009, allocations: 0 / 432.5 MB, free: 10.25 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003884/0.3048, allocations: 2.143 MB / 434.6 MB, free: 8.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.3048, allocations: 12.03 kB / 434.6 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006052/0.3054, allocations: 210.7 kB / 434.8 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/0.3074, allocations: 1.138 MB / 436 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.404e-05/0.3075, allocations: 111.4 kB / 436.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002361/0.3078, allocations: 167.8 kB / 436.2 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0032/0.311, allocations: 1.955 MB / 438.2 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.512e-05/0.311, allocations: 3.906 kB / 438.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001541/0.3112, allocations: 64 kB / 438.3 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-05/0.3113, allocations: 74.92 kB / 438.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002607/0.3139, allocations: 1.592 MB / 439.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009856/0.3238, allocations: 6.26 MB / 446.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.3252, allocations: 0.8419 MB / 447 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009614/0.3262, allocations: 0.5691 MB / 447.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002061/0.3264, allocations: 117.6 kB / 447.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.3265, allocations: 43.12 kB / 447.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 5.32e-06/0.3265, allocations: 0 / 447.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01395/0.3404, allocations: 5.842 MB / 453.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.956e-05/0.3405, allocations: 60.41 kB / 453.7 MB, free: 4.477 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001691/0.3422, allocations: 1.148 MB / 454.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.242e-05/0.3423, allocations: 41.7 kB / 454.8 MB, free: 3.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005567/0.3429, allocations: 0.7748 MB / 455.6 MB, free: 2.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002244/0.3431, allocations: 307.6 kB / 455.9 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003253/0.3435, allocations: 206.8 kB / 456.1 MB, free: 1.965 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.3436, allocations: 349.9 kB / 456.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008152/0.3444, allocations: 0.5413 MB / 457 MB, free: 1.078 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/0.3455, allocations: 0.8796 MB / 457.9 MB, free: 48 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/0.3474, allocations: 1.527 MB / 459.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.3474, allocations: 8 kB / 459.4 MB, free: 14.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003311/0.3507, allocations: 2.043 MB / 461.5 MB, free: 12.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.3507, allocations: 10.81 kB / 461.5 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.3508, allocations: 20.17 kB / 461.5 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.3522, allocations: 0.5514 MB / 462 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008225/0.353, allocations: 239.7 kB / 462.3 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008167/0.3612, allocations: 8.655 MB / 470.9 MB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009489/0.3622, allocations: 71.86 kB / 471 MB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.168e-05/0.3623, allocations: 48 kB / 471 MB, free: 2.129 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (123): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 4 systems {(1,1,100.0%), (4,8,87.5%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008413/0.3631, allocations: 0.521 MB / 471.6 MB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000204/0.3633, allocations: 126.5 kB / 471.7 MB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002925/0.3662, allocations: 1.767 MB / 473.5 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.3663, allocations: 8 kB / 473.5 MB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3663, allocations: 8 kB / 473.5 MB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.3663, allocations: 7.969 kB / 473.5 MB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005718/0.372, allocations: 3.745 MB / 477.2 MB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.372, allocations: 0 / 477.2 MB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005131/0.3726, allocations: 123.9 kB / 477.3 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001581/0.3741, allocations: 0.6032 MB / 478 MB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.169e-05/0.3742, allocations: 23.98 kB / 478 MB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008005/0.3822, allocations: 7.69 MB / 485.7 MB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.3823, allocations: 4 kB / 485.7 MB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003665/0.3859, allocations: 2.488 MB / 488.2 MB, free: 432 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005129/0.3865, allocations: 311.6 kB / 488.5 MB, free: 100 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.3866, allocations: 27.92 kB / 488.5 MB, free: 72 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006658/0.3873, allocations: 55.94 kB / 488.5 MB, free: 16 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/0.3875, allocations: 68.58 kB / 488.6 MB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.843e-05/0.3876, allocations: 24.25 kB / 488.6 MB, free: 15.92 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001132/0.3887, allocations: 0.7895 MB / 489.4 MB, free: 15.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3887, allocations: 0 / 489.4 MB, free: 15.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00134/0.39, allocations: 380 kB / 489.8 MB, free: 14.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (imc.inertiaRotor.w,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],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 (63): * Single equations (assignments): 59 * 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 {(6,14,69.4%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003563/0.3904, allocations: 179 kB / 490 MB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003203/0.3936, allocations: 2.137 MB / 492.1 MB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3936, allocations: 0 / 492.1 MB, free: 12.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00199/0.3956, allocations: 1.304 MB / 493.4 MB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.3973, allocations: 371.2 kB / 493.8 MB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004893/0.4022, allocations: 3.278 MB / 497.1 MB, free: 7.289 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.4033, allocations: 1.468 MB / 498.5 MB, free: 5.789 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007361/0.404, allocations: 267 kB / 498.8 MB, free: 5.523 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.4043, allocations: 83.42 kB / 498.9 MB, free: 5.441 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4043, allocations: 0 / 498.9 MB, free: 5.441 MB / 414.1 MB Notification: Performance of Templates: time 0.0331/0.4374, allocations: 22 MB / 0.5087 GB, free: 15.64 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)