Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 114.9 kB / 17.74 MB, free: 5.324 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.00113/0.00113, allocations: 188.4 kB / 18.67 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 47.94 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2422, allocations: 49.44 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009207/0.2515, allocations: 8.186 MB / 409.6 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004954/0.2565, allocations: 2.692 MB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.2577, allocations: 35.88 kB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001875/0.2596, allocations: 0.6134 MB / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001949/0.2615, allocations: 0.625 MB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007362/0.2623, allocations: 287.6 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002524/0.2648, allocations: 2.023 MB / 415.9 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001584/0.2664, allocations: 1.432 MB / 417.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.2678, allocations: 0.8838 MB / 418.2 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001402/0.2693, allocations: 1.062 MB / 419.3 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002995/0.2696, allocations: 228 kB / 419.5 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006316/0.2702, allocations: 319.8 kB / 419.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005752/0.2708, allocations: 0.635 MB / 420.4 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001033/0.2718, allocations: 1.031 MB / 421.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002969/0.2748, allocations: 2.991 MB / 424.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.2748, allocations: 0 / 424.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.2748, allocations: 0 / 424.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.856e-05/0.2749, allocations: 0 / 424.4 MB, free: 1.711 MB / 334.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.004081/0.279, allocations: 2.125 MB / 426.6 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.279, allocations: 12.03 kB / 426.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006173/0.2797, allocations: 214.7 kB / 426.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.2815, allocations: 1.13 MB / 427.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-05/0.2816, allocations: 119.3 kB / 428 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002172/0.2818, allocations: 160 kB / 428.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003088/0.2849, allocations: 1.955 MB / 430.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.696e-05/0.285, allocations: 11.84 kB / 430.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/0.2851, allocations: 63.98 kB / 430.2 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.685e-05/0.2853, allocations: 78.91 kB / 430.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002527/0.2878, allocations: 1.581 MB / 431.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009033/0.2968, allocations: 6.272 MB / 438.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.2982, allocations: 0.8358 MB / 439 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009198/0.2991, allocations: 0.5652 MB / 439.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002132/0.2993, allocations: 129.6 kB / 439.7 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.2994, allocations: 39.12 kB / 439.7 MB, free: 2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.485e-06/0.2994, allocations: 0 / 439.7 MB, free: 2 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01304/0.3124, allocations: 5.835 MB / 445.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.3125, allocations: 64.34 kB / 445.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001586/0.3141, allocations: 1.14 MB / 446.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.698e-05/0.3142, allocations: 41.7 kB / 446.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005143/0.3148, allocations: 0.7748 MB / 447.6 MB, free: 9.969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002381/0.315, allocations: 303.6 kB / 447.9 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003032/0.3153, allocations: 206.8 kB / 448.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3154, allocations: 349.9 kB / 448.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000712/0.3162, allocations: 0.5413 MB / 449 MB, free: 8.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009119/0.3171, allocations: 0.8834 MB / 449.8 MB, free: 7.535 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.3188, allocations: 1.524 MB / 451.4 MB, free: 5.859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.3188, allocations: 8 kB / 451.4 MB, free: 5.852 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003253/0.3221, allocations: 2.047 MB / 453.4 MB, free: 3.781 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.3221, allocations: 8 kB / 453.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/0.3222, allocations: 12.25 kB / 453.4 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.3235, allocations: 0.5629 MB / 454 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008076/0.3244, allocations: 243.6 kB / 454.2 MB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007749/0.3321, allocations: 8.639 MB / 462.9 MB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.3332, allocations: 67.88 kB / 462.9 MB, free: 9.672 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.021e-05/0.3333, allocations: 52 kB / 463 MB, free: 9.621 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.0008252/0.3341, allocations: 0.5247 MB / 463.5 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.3343, allocations: 122.5 kB / 463.6 MB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002803/0.3372, allocations: 1.77 MB / 465.4 MB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.3372, allocations: 11.98 kB / 465.4 MB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.3372, allocations: 4 kB / 465.4 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3372, allocations: 3.984 kB / 465.4 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005819/0.343, allocations: 3.749 MB / 469.2 MB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.3431, allocations: 0 / 469.2 MB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005203/0.3436, allocations: 127.8 kB / 469.3 MB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0015/0.3451, allocations: 0.5915 MB / 469.9 MB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.159e-05/0.3452, allocations: 27.98 kB / 469.9 MB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007631/0.3528, allocations: 7.702 MB / 477.6 MB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3529, allocations: 128 / 477.6 MB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003582/0.3565, allocations: 2.484 MB / 480.1 MB, free: 7.906 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005592/0.357, allocations: 311.6 kB / 480.4 MB, free: 7.582 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.3572, allocations: 27.92 kB / 480.4 MB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006487/0.3579, allocations: 55.94 kB / 480.5 MB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.3581, allocations: 64.56 kB / 480.6 MB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.557e-05/0.3581, allocations: 23.98 kB / 480.6 MB, free: 7.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001043/0.3592, allocations: 0.7893 MB / 481.4 MB, free: 6.613 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3592, allocations: 0 / 481.4 MB, free: 6.613 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001227/0.3604, allocations: 376 kB / 481.7 MB, free: 6.246 MB / 398.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.0003263/0.3608, allocations: 179 kB / 481.9 MB, free: 6.062 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003127/0.3639, allocations: 2.145 MB / 484.1 MB, free: 3.824 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3639, allocations: 96 / 484.1 MB, free: 3.824 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001957/0.3659, allocations: 1.296 MB / 485.4 MB, free: 2.469 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/0.3676, allocations: 377.5 kB / 485.7 MB, free: 2.109 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004944/0.3726, allocations: 3.317 MB / 489 MB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.3737, allocations: 1.452 MB / 490.5 MB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003194/0.374, allocations: 87.42 kB / 490.6 MB, free: 13.17 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.374, allocations: 0 / 490.6 MB, free: 13.17 MB / 414.1 MB Notification: Performance of Templates: time 0.05801/0.432, allocations: 59.23 MB / 0.5369 GB, free: 1.98 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)