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.00146/0.00146, allocations: 113.2 kB / 17.69 MB, free: 5.098 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.00164/0.00164, allocations: 192 kB / 18.63 MB, free: 4.242 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.441/1.441, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009519/0.000952, allocations: 48.2 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1032, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009801/0.113, allocations: 8.169 MB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004824/0.1178, allocations: 2.707 MB / 362.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007889/0.1187, allocations: 39.81 kB / 362.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001566/0.1203, allocations: 0.594 MB / 363 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001437/0.1217, allocations: 0.6445 MB / 363.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.1223, allocations: 279.6 kB / 363.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00204/0.1243, allocations: 2.027 MB / 366 MB, free: 5.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001531/0.1259, allocations: 1.428 MB / 367.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001087/0.127, allocations: 0.8876 MB / 368.3 MB, free: 2.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001242/0.1282, allocations: 1.059 MB / 369.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002844/0.1285, allocations: 228 kB / 369.6 MB, free: 1.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005506/0.1291, allocations: 311.8 kB / 369.9 MB, free: 1.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005742/0.1297, allocations: 0.635 MB / 370.5 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1628/0.2925, allocations: 1.024 MB / 371.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004407/0.2969, allocations: 2.993 MB / 374.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.297, allocations: 0 / 374.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.506e-06/0.297, allocations: 1.156 kB / 374.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.135e-05/0.2971, allocations: 4.875 kB / 374.5 MB, free: 13.71 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.007209/0.3043, allocations: 2.125 MB / 376.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.3044, allocations: 9.062 kB / 376.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.3054, allocations: 217.9 kB / 376.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003595/0.309, allocations: 1.133 MB / 378 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.3092, allocations: 112.9 kB / 378.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005284/0.3098, allocations: 157.1 kB / 378.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005514/0.3153, allocations: 1.966 MB / 380.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.174e-05/0.3154, allocations: 6.375 kB / 380.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000254/0.3157, allocations: 61.66 kB / 380.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/0.3158, allocations: 76.25 kB / 380.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004214/0.32, allocations: 1.587 MB / 382 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01367/0.3338, allocations: 6.268 MB / 388.2 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.3356, allocations: 0.8358 MB / 389.1 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.3368, allocations: 0.5748 MB / 389.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000245/0.3371, allocations: 116.8 kB / 389.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.3372, allocations: 44.62 kB / 389.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 5.37e-06/0.3372, allocations: 0 / 389.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01471/0.3519, allocations: 5.828 MB / 395.6 MB, free: 4.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.476e-05/0.3519, allocations: 59.66 kB / 395.7 MB, free: 3.973 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/0.3534, allocations: 1.146 MB / 396.8 MB, free: 3.336 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.73e-05/0.3535, allocations: 45.56 kB / 396.9 MB, free: 3.289 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003587/0.3538, allocations: 0.7699 MB / 397.7 MB, free: 2.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.354, allocations: 302.9 kB / 397.9 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/0.3543, allocations: 206.4 kB / 398.1 MB, free: 2.23 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.383e-05/0.3544, allocations: 349.8 kB / 398.5 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006562/0.355, allocations: 0.5443 MB / 399 MB, free: 1.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007323/0.3558, allocations: 0.8809 MB / 399.9 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.3572, allocations: 1.531 MB / 401.4 MB, free: 15.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.3573, allocations: 2.969 kB / 401.4 MB, free: 15.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.00321/0.3605, allocations: 2.044 MB / 403.5 MB, free: 13.95 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3605, allocations: 10.3 kB / 403.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.3605, allocations: 12 kB / 403.5 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.3619, allocations: 0.5505 MB / 404.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007982/0.3627, allocations: 248.5 kB / 404.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007846/0.3705, allocations: 8.651 MB / 413 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009746/0.3715, allocations: 71.92 kB / 413 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.77e-05/0.3716, allocations: 48 kB / 413.1 MB, free: 3.871 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.0008095/0.3725, allocations: 0.5279 MB / 413.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/0.3727, allocations: 122.5 kB / 413.7 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002807/0.3755, allocations: 1.771 MB / 415.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/0.3755, allocations: 8 kB / 415.5 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/0.3755, allocations: 4 kB / 415.5 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.3755, allocations: 3.984 kB / 415.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006085/0.3816, allocations: 3.741 MB / 419.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3816, allocations: 0 / 419.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005085/0.3822, allocations: 124 kB / 419.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.3836, allocations: 0.5989 MB / 420 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-05/0.3837, allocations: 23.98 kB / 420 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007561/0.3913, allocations: 7.706 MB / 427.7 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3913, allocations: 0 / 427.7 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003601/0.3949, allocations: 2.476 MB / 430.2 MB, free: 2.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007066/0.3956, allocations: 311.6 kB / 430.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.3958, allocations: 27.98 kB / 430.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006179/0.3964, allocations: 51.88 kB / 430.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.3966, allocations: 66.81 kB / 430.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.105e-05/0.3967, allocations: 28.73 kB / 430.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001093/0.3978, allocations: 0.7932 MB / 431.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3978, allocations: 0 / 431.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001506/0.3993, allocations: 376 kB / 431.8 MB, free: 0.6523 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.0003594/0.3997, allocations: 174.2 kB / 432 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00316/0.4028, allocations: 2.142 MB / 434.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4028, allocations: 1.969 kB / 434.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001944/0.4048, allocations: 1.301 MB / 435.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.4063, allocations: 375.9 kB / 435.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004827/0.4112, allocations: 3.265 MB / 439.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.4123, allocations: 1.46 MB / 440.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007412/0.413, allocations: 267 kB / 440.8 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.4132, allocations: 81.95 kB / 440.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4133, allocations: 0 / 440.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of Templates: time 0.03592/0.4492, allocations: 21.59 MB / 462.5 MB, free: 2.129 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 cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)