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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 115 kB / 16.63 MB, free: 6.812 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.001407/0.001408, allocations: 186 kB / 17.55 MB, free: 5.934 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.491/1.491, allocations: 222.9 MB / 241.2 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009926/0.0009926, allocations: 43.34 kB / 300.2 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08868/0.0897, allocations: 49.46 MB / 349.7 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.008695/0.09843, allocations: 8.136 MB / 357.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004272/0.1027, allocations: 2.668 MB / 360.5 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009026/0.1037, allocations: 39.81 kB / 360.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001881/0.1056, allocations: 0.548 MB / 361.1 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001709/0.1073, allocations: 0.5634 MB / 361.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005392/0.1079, allocations: 255.7 kB / 361.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002029/0.1099, allocations: 2.023 MB / 363.9 MB, free: 6.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.1115, allocations: 1.424 MB / 365.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001094/0.1126, allocations: 0.8875 MB / 366.2 MB, free: 3.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001204/0.1138, allocations: 1.086 MB / 367.3 MB, free: 2.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002668/0.1141, allocations: 224 kB / 367.5 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005306/0.1146, allocations: 319.8 kB / 367.9 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005843/0.1152, allocations: 0.6311 MB / 368.5 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009721/0.1162, allocations: 1.027 MB / 369.5 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1591/0.2754, allocations: 2.966 MB / 372.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.2754, allocations: 0 / 372.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2754, allocations: 0 / 372.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.525e-05/0.2755, allocations: 0.6562 kB / 372.5 MB, free: 15.33 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.004158/0.2797, allocations: 2.125 MB / 374.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.2797, allocations: 12.78 kB / 374.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003417/0.2801, allocations: 235.1 kB / 374.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007032/0.2808, allocations: 213.8 kB / 375.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001965/0.2828, allocations: 1.104 MB / 376.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.693e-05/0.2829, allocations: 114.4 kB / 376.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002408/0.2831, allocations: 153.5 kB / 376.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003419/0.2865, allocations: 1.956 MB / 378.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.434e-05/0.2866, allocations: 18.31 kB / 378.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001579/0.2868, allocations: 58.66 kB / 378.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001028/0.2869, allocations: 76.7 kB / 378.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002507/0.2894, allocations: 1.586 MB / 380.1 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008291/0.2977, allocations: 6.328 MB / 386.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.2989, allocations: 0.8374 MB / 387.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008828/0.2998, allocations: 0.5742 MB / 387.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000201/0.3, allocations: 123.9 kB / 388 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.3001, allocations: 44.67 kB / 388 MB, free: 8.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=65): time 2.765e-06/0.3001, allocations: 0 / 388 MB, free: 8.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01315/0.3132, allocations: 5.825 MB / 393.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.3133, allocations: 70.2 kB / 393.9 MB, free: 5.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/0.3149, allocations: 1.14 MB / 395 MB, free: 5.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.657e-05/0.315, allocations: 38.23 kB / 395.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000407/0.3154, allocations: 0.7735 MB / 395.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/0.3156, allocations: 309.2 kB / 396.2 MB, free: 4.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.3159, allocations: 204.3 kB / 396.4 MB, free: 3.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.949e-05/0.316, allocations: 345.2 kB / 396.7 MB, free: 3.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006047/0.3167, allocations: 0.5521 MB / 397.2 MB, free: 3.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007257/0.3174, allocations: 0.8737 MB / 398.1 MB, free: 2.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.3189, allocations: 1.529 MB / 399.7 MB, free: 1.617 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.3189, allocations: 2.906 kB / 399.7 MB, free: 1.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002987/0.3219, allocations: 2.047 MB / 401.7 MB, free: 15.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.3219, allocations: 10.66 kB / 401.7 MB, free: 15.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.3219, allocations: 15.98 kB / 401.7 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/0.3233, allocations: 0.5493 MB / 402.3 MB, free: 15.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008074/0.3242, allocations: 245.7 kB / 402.5 MB, free: 14.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008651/0.3328, allocations: 8.658 MB / 411.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.3343, allocations: 67.92 kB / 411.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/0.3345, allocations: 60.06 kB / 411.3 MB, free: 5.656 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.001157/0.3357, allocations: 0.5179 MB / 411.8 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004111/0.3361, allocations: 121.1 kB / 411.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/0.3392, allocations: 1.772 MB / 413.7 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.3393, allocations: 13.19 kB / 413.7 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.3393, allocations: 8 kB / 413.7 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.3393, allocations: 3.984 kB / 413.7 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007301/0.3466, allocations: 3.735 MB / 417.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.3466, allocations: 7.984 kB / 417.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005604/0.3472, allocations: 126.6 kB / 417.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001661/0.3489, allocations: 0.5927 MB / 418.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-05/0.349, allocations: 27.48 kB / 418.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008324/0.3573, allocations: 7.694 MB / 425.9 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3573, allocations: 8 kB / 425.9 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004175/0.3615, allocations: 2.484 MB / 428.4 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009017/0.3624, allocations: 315.5 kB / 428.7 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004052/0.3629, allocations: 20 kB / 428.7 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009175/0.3638, allocations: 55.88 kB / 428.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/0.364, allocations: 71.83 kB / 428.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-05/0.3641, allocations: 27.25 kB / 428.9 MB, free: 3.605 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001496/0.3656, allocations: 0.7893 MB / 429.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3656, allocations: 0 / 429.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001704/0.3673, allocations: 376 kB / 430 MB, free: 2.441 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.004411/0.3718, allocations: 3.105 MB / 433.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003959/0.3757, allocations: 2.351 MB / 435.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.3758, allocations: 0 / 435.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002163/0.3779, allocations: 1.305 MB / 436.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002111/0.38, allocations: 378.1 kB / 437.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02496/0.405, allocations: 15.25 MB / 452.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/0.4064, allocations: 1.456 MB / 453.9 MB, free: 9.723 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008454/0.4072, allocations: 267 kB / 454.1 MB, free: 9.457 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007613/0.408, allocations: 0.5657 MB / 454.7 MB, free: 8.891 MB / 366.1 MB Notification: Performance of SimCode: time 1.242e-06/0.408, allocations: 1.031 kB / 454.7 MB, free: 8.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06243/0.4705, allocations: 34.41 MB / 489.1 MB, free: 6.973 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/0.4707, allocations: 249 kB / 489.4 MB, free: 6.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.921/3.391, allocations: 2.625 kB / 489.4 MB, free: 6.723 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)