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.001036/0.001036, allocations: 117.2 kB / 17.78 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 200.6 kB / 18.72 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 63.89 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2636, allocations: 50.54 MB / 409.2 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009023/0.2727, allocations: 8.214 MB / 417.5 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004445/0.2772, allocations: 2.738 MB / 420.2 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005274/0.2777, allocations: 39.81 kB / 420.2 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.2791, allocations: 0.6133 MB / 420.9 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001262/0.2804, allocations: 0.6405 MB / 421.5 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005412/0.281, allocations: 283.6 kB / 421.8 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002049/0.283, allocations: 2.035 MB / 423.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001594/0.2846, allocations: 1.424 MB / 425.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.2857, allocations: 0.8876 MB / 426.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001269/0.287, allocations: 1.07 MB / 427.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002695/0.2873, allocations: 232 kB / 427.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005268/0.2878, allocations: 315.8 kB / 427.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005637/0.2884, allocations: 0.6272 MB / 428.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008991/0.2893, allocations: 1.031 MB / 429.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002598/0.2919, allocations: 3.013 MB / 432.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.292, allocations: 8 kB / 432.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.292, allocations: 0 / 432.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.43e-05/0.292, allocations: 0 / 432.4 MB, free: 10.29 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.003493/0.2955, allocations: 2.18 MB / 434.6 MB, free: 8.047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.2955, allocations: 11.97 kB / 434.6 MB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005626/0.2961, allocations: 227.7 kB / 434.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001709/0.2978, allocations: 1.146 MB / 436 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.233e-05/0.2979, allocations: 115.4 kB / 436.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002207/0.2982, allocations: 155.9 kB / 436.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003116/0.3013, allocations: 1.963 MB / 438.2 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.884e-05/0.3013, allocations: 7.953 kB / 438.2 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000142/0.3015, allocations: 60 kB / 438.3 MB, free: 4.281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-05/0.3016, allocations: 74.92 kB / 438.3 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002703/0.3043, allocations: 1.585 MB / 439.9 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009611/0.3139, allocations: 6.286 MB / 446.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001476/0.3154, allocations: 0.8374 MB / 447 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001006/0.3165, allocations: 0.5698 MB / 447.6 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002328/0.3167, allocations: 117.6 kB / 447.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.282e-05/0.3168, allocations: 47.06 kB / 447.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.585e-06/0.3168, allocations: 0 / 447.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01368/0.3305, allocations: 5.865 MB / 453.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.3306, allocations: 68.28 kB / 453.7 MB, free: 4.402 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.3324, allocations: 1.145 MB / 454.8 MB, free: 3.242 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.213e-05/0.3325, allocations: 41.7 kB / 454.9 MB, free: 3.195 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007279/0.3332, allocations: 0.8002 MB / 455.7 MB, free: 2.387 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003389/0.3336, allocations: 317.3 kB / 456 MB, free: 2.074 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003731/0.334, allocations: 206.9 kB / 456.2 MB, free: 1.863 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.3341, allocations: 353.9 kB / 456.5 MB, free: 1.512 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009571/0.3351, allocations: 0.5452 MB / 457.1 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001157/0.3363, allocations: 0.8757 MB / 458 MB, free: 15.94 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/0.3382, allocations: 1.524 MB / 459.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.209e-05/0.3382, allocations: 8 kB / 459.5 MB, free: 14.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003607/0.3419, allocations: 2.052 MB / 461.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3419, allocations: 12 kB / 461.6 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.3419, allocations: 12 kB / 461.6 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/0.3434, allocations: 0.5516 MB / 462.1 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008343/0.3442, allocations: 243.6 kB / 462.4 MB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008503/0.3528, allocations: 8.655 MB / 471 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009149/0.3537, allocations: 75.86 kB / 471.1 MB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.3538, allocations: 48 kB / 471.1 MB, free: 2.016 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.0007935/0.3546, allocations: 0.5169 MB / 471.6 MB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.3549, allocations: 131.3 kB / 471.8 MB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.3579, allocations: 1.77 MB / 473.5 MB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.3579, allocations: 8 kB / 473.6 MB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.3579, allocations: 4 kB / 473.6 MB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3579, allocations: 3.984 kB / 473.6 MB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006011/0.364, allocations: 3.753 MB / 477.3 MB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.364, allocations: 4 kB / 477.3 MB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005101/0.3645, allocations: 123.8 kB / 477.4 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001538/0.3661, allocations: 0.5955 MB / 478 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.038e-05/0.3661, allocations: 24 kB / 478.1 MB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007754/0.3739, allocations: 7.711 MB / 485.8 MB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3739, allocations: 0 / 485.8 MB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003794/0.3777, allocations: 2.496 MB / 488.3 MB, free: 296 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006605/0.3784, allocations: 312.3 kB / 488.6 MB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002587/0.3787, allocations: 27.92 kB / 488.6 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006692/0.3794, allocations: 55.94 kB / 488.7 MB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.3795, allocations: 68.5 kB / 488.7 MB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-05/0.3796, allocations: 24 kB / 488.7 MB, free: 15.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001104/0.3807, allocations: 0.7934 MB / 489.5 MB, free: 14.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3807, allocations: 0 / 489.5 MB, free: 14.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001297/0.382, allocations: 375.9 kB / 489.9 MB, free: 14.62 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.0003687/0.3824, allocations: 175 kB / 490.1 MB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003391/0.3858, allocations: 2.149 MB / 492.2 MB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.3858, allocations: 0 / 492.2 MB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001945/0.3878, allocations: 1.299 MB / 493.5 MB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.3894, allocations: 375.2 kB / 493.9 MB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005047/0.3944, allocations: 3.324 MB / 497.2 MB, free: 7.102 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001219/0.3957, allocations: 1.468 MB / 498.7 MB, free: 5.602 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006905/0.3964, allocations: 259.1 kB / 498.9 MB, free: 5.344 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002277/0.3966, allocations: 91.36 kB / 499 MB, free: 5.254 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3966, allocations: 0 / 499 MB, free: 5.254 MB / 414.1 MB Notification: Performance of Templates: time 0.03392/0.4305, allocations: 22 MB / 0.5088 GB, free: 15.45 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)