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.001075/0.001075, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.00105/0.00105, allocations: 191 kB / 18.63 MB, free: 4.367 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.319/1.319, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009889/0.000989, allocations: 41.69 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0903/0.09131, allocations: 49.45 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009286/0.1006, allocations: 8.165 MB / 359.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004791/0.1055, allocations: 2.715 MB / 362.4 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008171/0.1063, allocations: 47.81 kB / 362.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001521/0.1079, allocations: 0.594 MB / 363 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.1095, allocations: 0.6289 MB / 363.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000637/0.1102, allocations: 287.5 kB / 363.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002188/0.1124, allocations: 2.035 MB / 366 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001622/0.114, allocations: 1.417 MB / 367.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001171/0.1152, allocations: 0.8799 MB / 368.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.1166, allocations: 1.059 MB / 369.3 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003893/0.117, allocations: 232 kB / 369.6 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005706/0.1176, allocations: 319.8 kB / 369.9 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005532/0.1181, allocations: 0.6272 MB / 370.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1501/0.2682, allocations: 1.026 MB / 371.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003094/0.2713, allocations: 2.986 MB / 374.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2714, allocations: 3 kB / 374.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.2714, allocations: 0 / 374.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.848e-05/0.2715, allocations: 0 / 374.5 MB, free: 14.35 MB / 302.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.004159/0.2756, allocations: 2.132 MB / 376.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.2757, allocations: 12.62 kB / 376.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006218/0.2763, allocations: 213.9 kB / 376.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.2783, allocations: 1.13 MB / 378 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.906e-05/0.2784, allocations: 116.4 kB / 378.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002451/0.2786, allocations: 160.4 kB / 378.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003202/0.2818, allocations: 1.956 MB / 380.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.732e-05/0.2819, allocations: 11.75 kB / 380.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001441/0.282, allocations: 61.5 kB / 380.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.495e-05/0.2821, allocations: 79.5 kB / 380.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002388/0.2845, allocations: 1.584 MB / 382 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008492/0.293, allocations: 6.272 MB / 388.2 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.2943, allocations: 0.8355 MB / 389.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008548/0.2951, allocations: 0.5778 MB / 389.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001963/0.2953, allocations: 113.7 kB / 389.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.2954, allocations: 44.84 kB / 389.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 3.877e-06/0.2954, allocations: 2.031 kB / 389.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01177/0.3072, allocations: 5.826 MB / 395.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.3072, allocations: 65.88 kB / 395.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001367/0.3086, allocations: 1.141 MB / 396.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.106e-05/0.3087, allocations: 41.3 kB / 396.9 MB, free: 3.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/0.309, allocations: 0.7754 MB / 397.6 MB, free: 2.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.3091, allocations: 300.2 kB / 397.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002627/0.3094, allocations: 206.3 kB / 398.1 MB, free: 2.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.875e-05/0.3095, allocations: 352.5 kB / 398.5 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005982/0.3101, allocations: 0.5468 MB / 399 MB, free: 1.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007254/0.3108, allocations: 0.8822 MB / 399.9 MB, free: 1.145 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/0.3122, allocations: 1.521 MB / 401.4 MB, free: 132 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3122, allocations: 2.75 kB / 401.4 MB, free: 132 kB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00318/0.3154, allocations: 2.049 MB / 403.5 MB, free: 14.13 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.3155, allocations: 8 kB / 403.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.3155, allocations: 12.69 kB / 403.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.3169, allocations: 0.5596 MB / 404.1 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008191/0.3177, allocations: 242.2 kB / 404.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008043/0.3257, allocations: 8.657 MB / 413 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009011/0.3267, allocations: 63.94 kB / 413 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.845e-05/0.3268, allocations: 47.98 kB / 413.1 MB, free: 4.055 MB / 318.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.0007861/0.3275, allocations: 0.5294 MB / 413.6 MB, free: 3.535 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.3278, allocations: 122.5 kB / 413.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002947/0.3307, allocations: 1.769 MB / 415.5 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.3307, allocations: 8 kB / 415.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.3307, allocations: 4 kB / 415.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.3308, allocations: 6.797 kB / 415.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006154/0.3369, allocations: 3.739 MB / 419.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3369, allocations: 4 kB / 419.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005314/0.3375, allocations: 130.5 kB / 419.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001489/0.339, allocations: 0.5875 MB / 420 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.479e-05/0.3391, allocations: 30.8 kB / 420 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007787/0.3469, allocations: 7.7 MB / 427.7 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3469, allocations: 4 kB / 427.7 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003702/0.3506, allocations: 2.477 MB / 430.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006794/0.3513, allocations: 311.5 kB / 430.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.3515, allocations: 23.98 kB / 430.5 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006604/0.3521, allocations: 59.86 kB / 430.6 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.3523, allocations: 71.19 kB / 430.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.267e-05/0.3523, allocations: 27.98 kB / 430.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001076/0.3534, allocations: 0.7854 MB / 431.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3534, allocations: 0 / 431.4 MB, free: 1.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001301/0.3547, allocations: 376 kB / 431.8 MB, free: 0.832 MB / 334.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.0003085/0.3551, allocations: 176.4 kB / 432 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003058/0.3581, allocations: 2.143 MB / 434.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3581, allocations: 0 / 434.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.3601, allocations: 1.303 MB / 435.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.3616, allocations: 378 kB / 435.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00457/0.3662, allocations: 3.259 MB / 439.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.3673, allocations: 1.46 MB / 440.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006509/0.3679, allocations: 263 kB / 440.8 MB, free: 7.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.3682, allocations: 83.44 kB / 440.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3682, allocations: 0 / 440.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of Templates: time 0.03284/0.401, allocations: 21.59 MB / 462.4 MB, free: 2.32 MB / 366.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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)