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.0007987/0.0007987, allocations: 89.89 kB / 16.65 MB, free: 6.59 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.001067/0.001068, allocations: 182.8 kB / 17.56 MB, free: 6.203 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.347/1.347, allocations: 223.3 MB / 241.6 MB, free: 128 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002438/0.0002438, allocations: 8.688 kB / 301.4 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09352/0.09378, allocations: 50.42 MB / 351.8 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009248/0.1031, allocations: 7.653 MB / 359.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005541/0.1087, allocations: 2.653 MB / 362.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.1098, allocations: 31.88 kB / 362.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.1112, allocations: 0.5323 MB / 362.7 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001505/0.1127, allocations: 0.5828 MB / 363.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006012/0.1134, allocations: 251.7 kB / 363.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002526/0.1159, allocations: 2.343 MB / 365.9 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00147/0.1174, allocations: 1.159 MB / 367 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.1184, allocations: 0.6884 MB / 367.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001159/0.1196, allocations: 0.9258 MB / 368.7 MB, free: 2.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001924/0.1198, allocations: 104 kB / 368.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004351/0.1202, allocations: 199.8 kB / 369 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004675/0.1207, allocations: 0.4983 MB / 369.5 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009586/0.1217, allocations: 0.8878 MB / 370.3 MB, free: 1.055 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1688/0.2905, allocations: 2.807 MB / 373.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.846e-06/0.2905, allocations: 0.6562 kB / 373.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.598e-06/0.2906, allocations: 0 / 373.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001228/0.2907, allocations: 1.188 kB / 373.2 MB, free: 14.07 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.004986/0.2957, allocations: 1.809 MB / 375 MB, free: 13.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.653e-05/0.2958, allocations: 8.969 kB / 375 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009305/0.2967, allocations: 212.3 kB / 375.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001987/0.2987, allocations: 1.102 MB / 376.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.248e-05/0.2988, allocations: 116.6 kB / 376.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002381/0.299, allocations: 153.8 kB / 376.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004226/0.3033, allocations: 1.964 MB / 378.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.14e-05/0.3034, allocations: 8.938 kB / 378.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001638/0.3035, allocations: 60.72 kB / 378.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001344/0.3037, allocations: 76.98 kB / 378.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003264/0.3069, allocations: 1.584 MB / 380.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01079/0.3177, allocations: 6.358 MB / 386.6 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.3191, allocations: 0.8343 MB / 387.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009375/0.32, allocations: 0.5886 MB / 388 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000204/0.3202, allocations: 118.1 kB / 388.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.3203, allocations: 42.34 kB / 388.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.424e-06/0.3203, allocations: 4.266 kB / 388.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01307/0.3333, allocations: 5.896 MB / 394.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.693e-05/0.3334, allocations: 60.72 kB / 394.1 MB, free: 5.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.3351, allocations: 1.148 MB / 395.3 MB, free: 4.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.863e-05/0.3352, allocations: 41.14 kB / 395.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000414/0.3356, allocations: 0.7783 MB / 396.1 MB, free: 4.262 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.3358, allocations: 293.8 kB / 396.4 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.3359, allocations: 101.8 kB / 396.5 MB, free: 3.941 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.79e-05/0.336, allocations: 345.8 kB / 396.8 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006384/0.3367, allocations: 0.5431 MB / 397.4 MB, free: 3.336 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007488/0.3374, allocations: 0.8855 MB / 398.3 MB, free: 2.625 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.3389, allocations: 1.518 MB / 399.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.3389, allocations: 3.312 kB / 399.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002949/0.3419, allocations: 2.042 MB / 401.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.3419, allocations: 12.03 kB / 401.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/0.3419, allocations: 15.98 kB / 401.8 MB, free: 15.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001523/0.3435, allocations: 0.5529 MB / 402.4 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008476/0.3443, allocations: 244.9 kB / 402.6 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008534/0.3529, allocations: 7.913 MB / 410.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.3541, allocations: 71.83 kB / 410.6 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.928e-05/0.3542, allocations: 51.94 kB / 410.7 MB, free: 6.469 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.001158/0.3554, allocations: 0.5226 MB / 411.2 MB, free: 5.957 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002295/0.3556, allocations: 118.6 kB / 411.3 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003349/0.3589, allocations: 1.771 MB / 413.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.359, allocations: 8 kB / 413.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.359, allocations: 8 kB / 413.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.359, allocations: 3.984 kB / 413.1 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007411/0.3664, allocations: 3.74 MB / 416.8 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.3665, allocations: 4 kB / 416.8 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005423/0.367, allocations: 126.2 kB / 417 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001765/0.3688, allocations: 0.5956 MB / 417.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.529e-05/0.3689, allocations: 27.98 kB / 417.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008216/0.3771, allocations: 7.079 MB / 424.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.3771, allocations: 3 kB / 424.7 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004308/0.3815, allocations: 2.483 MB / 427.2 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007739/0.3822, allocations: 315.5 kB / 427.5 MB, free: 5.219 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002961/0.3826, allocations: 20 kB / 427.5 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007847/0.3833, allocations: 55.94 kB / 427.5 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001782/0.3835, allocations: 68.56 kB / 427.6 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.729e-05/0.3836, allocations: 26.61 kB / 427.6 MB, free: 5.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001301/0.3849, allocations: 0.7893 MB / 428.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3849, allocations: 0 / 428.4 MB, free: 4.258 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001518/0.3865, allocations: 376 kB / 428.8 MB, free: 3.891 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.0003553/0.3868, allocations: 182.5 kB / 429 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003286/0.3901, allocations: 2.13 MB / 431.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3901, allocations: 4 kB / 431.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002076/0.3922, allocations: 1.299 MB / 432.4 MB, free: 184 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002432/0.3947, allocations: 345.6 kB / 432.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006337/0.401, allocations: 4.074 MB / 436.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/0.4025, allocations: 1.46 MB / 438.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009857/0.4035, allocations: 259.1 kB / 438.5 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.4038, allocations: 87.42 kB / 438.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4038, allocations: 0 / 438.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of Templates: time 0.03877/0.4426, allocations: 20.53 MB / 459.1 MB, free: 5.625 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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)