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.001557/0.001558, allocations: 118.8 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.002171/0.002171, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 55.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2396, allocations: 50.55 MB / 409.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009933/0.2495, allocations: 8.215 MB / 417.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004328/0.2539, allocations: 2.732 MB / 420.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005557/0.2545, allocations: 47.75 kB / 420.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.2558, allocations: 0.6486 MB / 420.9 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001189/0.257, allocations: 0.6718 MB / 421.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004993/0.2575, allocations: 283.6 kB / 421.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001838/0.2594, allocations: 2.035 MB / 423.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/0.261, allocations: 1.413 MB / 425.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009802/0.262, allocations: 0.8993 MB / 426.2 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001155/0.2631, allocations: 1.066 MB / 427.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002609/0.2634, allocations: 228 kB / 427.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004863/0.2639, allocations: 315.8 kB / 427.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006438/0.2646, allocations: 0.6389 MB / 428.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009134/0.2655, allocations: 1.031 MB / 429.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002618/0.2681, allocations: 2.995 MB / 432.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2681, allocations: 0 / 432.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2681, allocations: 0 / 432.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.419e-05/0.2682, allocations: 0 / 432.5 MB, free: 10.4 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.003378/0.2715, allocations: 2.141 MB / 434.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.2716, allocations: 11.97 kB / 434.6 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005385/0.2721, allocations: 214.7 kB / 434.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001665/0.2738, allocations: 1.149 MB / 436 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.351e-05/0.2739, allocations: 111.4 kB / 436.1 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002393/0.2741, allocations: 159.8 kB / 436.2 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00282/0.277, allocations: 1.963 MB / 438.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.771e-05/0.277, allocations: 15.91 kB / 438.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/0.2772, allocations: 59.98 kB / 438.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.728e-05/0.2772, allocations: 78.91 kB / 438.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002426/0.2797, allocations: 1.585 MB / 439.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008341/0.288, allocations: 6.257 MB / 446.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.2894, allocations: 0.8343 MB / 447 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009815/0.2904, allocations: 0.5769 MB / 447.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000213/0.2906, allocations: 113.6 kB / 447.7 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.2906, allocations: 43.06 kB / 447.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.234e-06/0.2906, allocations: 0 / 447.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01273/0.3034, allocations: 5.84 MB / 453.6 MB, free: 4.688 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.3034, allocations: 68.34 kB / 453.7 MB, free: 4.609 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.305, allocations: 1.148 MB / 454.8 MB, free: 3.445 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.001e-05/0.305, allocations: 41.7 kB / 454.8 MB, free: 3.398 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005266/0.3056, allocations: 0.767 MB / 455.6 MB, free: 2.621 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002263/0.3058, allocations: 315.6 kB / 455.9 MB, free: 2.309 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003347/0.3061, allocations: 206.8 kB / 456.1 MB, free: 2.098 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.3063, allocations: 353.9 kB / 456.5 MB, free: 1.746 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007595/0.307, allocations: 0.5413 MB / 457 MB, free: 1.207 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009656/0.308, allocations: 0.8757 MB / 457.9 MB, free: 184 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.3099, allocations: 1.527 MB / 459.4 MB, free: 14.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.3099, allocations: 0 / 459.4 MB, free: 14.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003283/0.3132, allocations: 2.047 MB / 461.5 MB, free: 12.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.3132, allocations: 12 kB / 461.5 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.587e-05/0.3132, allocations: 11.94 kB / 461.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/0.3147, allocations: 0.5516 MB / 462 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008292/0.3155, allocations: 239.6 kB / 462.3 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008246/0.3238, allocations: 8.651 MB / 470.9 MB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008226/0.3246, allocations: 79.95 kB / 471 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.457e-05/0.3247, allocations: 52 kB / 471.1 MB, free: 2.262 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.00076/0.3255, allocations: 0.513 MB / 471.6 MB, free: 1.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.3257, allocations: 122.5 kB / 471.7 MB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002964/0.3287, allocations: 1.77 MB / 473.5 MB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/0.3287, allocations: 12 kB / 473.5 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.3287, allocations: 12 kB / 473.5 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.3287, allocations: 3.984 kB / 473.5 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005838/0.3346, allocations: 3.745 MB / 477.2 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.3346, allocations: 0 / 477.2 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000527/0.3351, allocations: 127.8 kB / 477.4 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001535/0.3367, allocations: 0.5926 MB / 477.9 MB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.208e-05/0.3368, allocations: 23.98 kB / 478 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007833/0.3446, allocations: 7.717 MB / 485.7 MB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3446, allocations: 0 / 485.7 MB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003576/0.3482, allocations: 2.476 MB / 488.2 MB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004822/0.3487, allocations: 311.6 kB / 488.5 MB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.3489, allocations: 27.92 kB / 488.5 MB, free: 208 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006283/0.3495, allocations: 55.94 kB / 488.5 MB, free: 152 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.3497, allocations: 68.5 kB / 488.6 MB, free: 80 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.371e-05/0.3497, allocations: 27.98 kB / 488.6 MB, free: 52 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001081/0.3508, allocations: 0.7895 MB / 489.4 MB, free: 15.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3508, allocations: 0 / 489.4 MB, free: 15.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001202/0.352, allocations: 372 kB / 489.8 MB, free: 14.89 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.000317/0.3524, allocations: 175.1 kB / 490 MB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003149/0.3555, allocations: 2.154 MB / 492.1 MB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3555, allocations: 0 / 492.1 MB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002/0.3575, allocations: 1.299 MB / 493.4 MB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.3591, allocations: 375 kB / 493.8 MB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00491/0.364, allocations: 3.267 MB / 497 MB, free: 7.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001217/0.3653, allocations: 1.464 MB / 498.5 MB, free: 5.934 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007053/0.366, allocations: 271 kB / 498.8 MB, free: 5.664 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.3662, allocations: 91.36 kB / 498.9 MB, free: 5.574 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3662, allocations: 0 / 498.9 MB, free: 5.574 MB / 414.1 MB Notification: Performance of Templates: time 0.0356/0.4018, allocations: 21.99 MB / 0.5086 GB, free: 15.79 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)