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.001118/0.001118, allocations: 116.3 kB / 17.07 MB, free: 5.973 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.001133/0.001133, allocations: 198.8 kB / 18.01 MB, free: 5.055 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009877/0.0009877, allocations: 55.91 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2581, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008998/0.2672, allocations: 8.184 MB / 408.9 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00464/0.2718, allocations: 2.689 MB / 411.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009048/0.2728, allocations: 43.81 kB / 411.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001717/0.2745, allocations: 0.6369 MB / 412.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001749/0.2763, allocations: 0.664 MB / 413 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006958/0.277, allocations: 299.5 kB / 413.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002245/0.2793, allocations: 2.027 MB / 415.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001697/0.281, allocations: 1.417 MB / 416.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001199/0.2822, allocations: 0.8916 MB / 417.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001425/0.2836, allocations: 1.062 MB / 418.6 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004109/0.284, allocations: 224 kB / 418.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007202/0.2848, allocations: 319.8 kB / 419.2 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007228/0.2855, allocations: 0.6389 MB / 419.8 MB, free: 5.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001427/0.2869, allocations: 1.027 MB / 420.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00262/0.2896, allocations: 2.991 MB / 423.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2896, allocations: 0 / 423.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2896, allocations: 0 / 423.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.155e-05/0.2896, allocations: 0 / 423.8 MB, free: 1.633 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.003575/0.2932, allocations: 2.125 MB / 426 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.2933, allocations: 12.03 kB / 426 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005435/0.2938, allocations: 214.7 kB / 426.2 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.2955, allocations: 1.134 MB / 427.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.902e-05/0.2956, allocations: 115.4 kB / 427.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000232/0.2959, allocations: 160 kB / 427.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002976/0.2988, allocations: 1.959 MB / 429.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.027e-05/0.2989, allocations: 7.906 kB / 429.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001436/0.2991, allocations: 63.98 kB / 429.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.617e-05/0.2992, allocations: 78.92 kB / 429.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002457/0.3016, allocations: 1.589 MB / 431.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008715/0.3103, allocations: 6.268 MB / 437.5 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.3117, allocations: 0.8321 MB / 438.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009822/0.3127, allocations: 0.573 MB / 438.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002242/0.3129, allocations: 129.6 kB / 439.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.3129, allocations: 39.12 kB / 439.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=65): time 2.956e-06/0.3129, allocations: 0 / 439.1 MB, free: 1.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.0125/0.3254, allocations: 5.831 MB / 444.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.3255, allocations: 68.33 kB / 445 MB, free: 11.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/0.327, allocations: 1.148 MB / 446.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.379e-05/0.3271, allocations: 37.7 kB / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005028/0.3276, allocations: 0.7709 MB / 447 MB, free: 9.883 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.3278, allocations: 307.6 kB / 447.3 MB, free: 9.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003238/0.3282, allocations: 206.8 kB / 447.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.3283, allocations: 349.9 kB / 447.8 MB, free: 9.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007466/0.3291, allocations: 0.5452 MB / 448.4 MB, free: 8.477 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009448/0.33, allocations: 0.8757 MB / 449.2 MB, free: 7.449 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00179/0.3318, allocations: 1.528 MB / 450.8 MB, free: 5.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.742e-06/0.3318, allocations: 4 kB / 450.8 MB, free: 5.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003257/0.3351, allocations: 2.039 MB / 452.8 MB, free: 3.703 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.3351, allocations: 12 kB / 452.8 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.3352, allocations: 24.22 kB / 452.8 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.3366, allocations: 0.5474 MB / 453.4 MB, free: 3.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008159/0.3374, allocations: 239.6 kB / 453.6 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00815/0.3456, allocations: 8.65 MB / 462.3 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009375/0.3465, allocations: 71.86 kB / 462.3 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.023e-05/0.3466, allocations: 52 kB / 462.4 MB, free: 9.535 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.0008492/0.3475, allocations: 0.5208 MB / 462.9 MB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002089/0.3477, allocations: 118.5 kB / 463 MB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002949/0.3507, allocations: 1.77 MB / 464.8 MB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.896e-06/0.3507, allocations: 12 kB / 464.8 MB, free: 7.086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.3507, allocations: 4 kB / 464.8 MB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.3507, allocations: 3.984 kB / 464.8 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005992/0.3567, allocations: 3.741 MB / 468.6 MB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.3568, allocations: 0 / 468.6 MB, free: 3.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005223/0.3573, allocations: 131.8 kB / 468.7 MB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001656/0.3589, allocations: 0.5889 MB / 469.3 MB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.3591, allocations: 27.92 kB / 469.3 MB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008099/0.3672, allocations: 7.7 MB / 477 MB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3672, allocations: 4 kB / 477 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004032/0.3713, allocations: 2.484 MB / 479.5 MB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009715/0.3723, allocations: 311.7 kB / 479.8 MB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.3724, allocations: 28.12 kB / 479.8 MB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006467/0.3731, allocations: 59.94 kB / 479.9 MB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.3733, allocations: 72.48 kB / 480 MB, free: 7.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.487e-05/0.3734, allocations: 20 kB / 480 MB, free: 7.328 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001196/0.3746, allocations: 0.7893 MB / 480.8 MB, free: 6.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.3746, allocations: 4 kB / 480.8 MB, free: 6.527 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00134/0.3759, allocations: 376 kB / 481.1 MB, free: 6.16 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.0004688/0.3764, allocations: 179 kB / 481.3 MB, free: 5.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003204/0.3796, allocations: 2.133 MB / 483.4 MB, free: 3.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.3797, allocations: 1.875 kB / 483.4 MB, free: 3.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001953/0.3816, allocations: 1.298 MB / 484.7 MB, free: 2.391 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.3833, allocations: 368.6 kB / 485.1 MB, free: 2.035 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004867/0.3882, allocations: 3.276 MB / 488.4 MB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/0.3893, allocations: 1.456 MB / 489.8 MB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006839/0.39, allocations: 259.1 kB / 490.1 MB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.3902, allocations: 91.42 kB / 490.2 MB, free: 12.88 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3902, allocations: 0 / 490.2 MB, free: 12.88 MB / 414.1 MB Notification: Performance of Templates: time 0.03524/0.4255, allocations: 21.92 MB / 0.5001 GB, free: 7.176 MB / 430.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)