Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002372/0.002372, allocations: 213.7 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.509/1.509, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 51.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2861, allocations: 53.37 MB / 431.2 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01126/0.2974, allocations: 8.288 MB / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005948/0.3033, allocations: 2.766 MB / 442.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001019/0.3043, allocations: 51.69 kB / 442.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002014/0.3063, allocations: 0.6441 MB / 442.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002181/0.3085, allocations: 0.6679 MB / 443.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006946/0.3092, allocations: 299.5 kB / 443.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002564/0.3118, allocations: 2.039 MB / 445.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001209/0.313, allocations: 0.8393 MB / 446.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.3145, allocations: 0.9111 MB / 447.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001808/0.3163, allocations: 1.094 MB / 448.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003531/0.3166, allocations: 224 kB / 449 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000675/0.3173, allocations: 327.8 kB / 449.3 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007067/0.318, allocations: 0.6426 MB / 449.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001211/0.3192, allocations: 1.035 MB / 451 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003592/0.3228, allocations: 3.009 MB / 454 MB, free: 15.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3228, allocations: 7.938 kB / 454 MB, free: 15.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3228, allocations: 0 / 454 MB, free: 15.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.967e-05/0.3229, allocations: 0 / 454 MB, free: 15.91 MB / 366.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.004242/0.3271, allocations: 2.099 MB / 456.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.3272, allocations: 8.031 kB / 456.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002999/0.3275, allocations: 232 kB / 456.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006014/0.3281, allocations: 231.6 kB / 456.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002086/0.3302, allocations: 1.066 MB / 457.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.3303, allocations: 119.1 kB / 457.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002342/0.3305, allocations: 155.9 kB / 457.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003208/0.3337, allocations: 1.955 MB / 459.8 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.379e-05/0.3338, allocations: 19.86 kB / 459.8 MB, free: 9.906 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001504/0.3339, allocations: 60 kB / 459.9 MB, free: 9.848 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-05/0.334, allocations: 74.92 kB / 460 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002693/0.3367, allocations: 1.585 MB / 461.6 MB, free: 8.184 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.3471, allocations: 6.172 MB / 467.7 MB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.3485, allocations: 0.7281 MB / 468.5 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001005/0.3495, allocations: 0.542 MB / 469 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002165/0.3497, allocations: 44.61 kB / 469 MB, free: 480 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.482e-05/0.3497, allocations: 43.22 kB / 469.1 MB, free: 428 kB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.816e-06/0.3497, allocations: 0 / 469.1 MB, free: 428 kB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01366/0.3634, allocations: 5.48 MB / 474.6 MB, free: 10.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.3635, allocations: 60.41 kB / 474.6 MB, free: 10.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001919/0.3654, allocations: 1.152 MB / 475.8 MB, free: 9.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.3655, allocations: 41.7 kB / 475.8 MB, free: 9.613 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007328/0.3662, allocations: 0.7925 MB / 476.6 MB, free: 8.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003141/0.3665, allocations: 325.3 kB / 476.9 MB, free: 8.492 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003451/0.3669, allocations: 206.8 kB / 477.1 MB, free: 8.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.3671, allocations: 353.9 kB / 477.5 MB, free: 7.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008331/0.3679, allocations: 0.5491 MB / 478 MB, free: 7.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/0.369, allocations: 0.8757 MB / 478.9 MB, free: 6.355 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002048/0.3711, allocations: 1.524 MB / 480.4 MB, free: 4.688 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.535e-06/0.3711, allocations: 4 kB / 480.4 MB, free: 4.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003637/0.3747, allocations: 2.044 MB / 482.5 MB, free: 2.613 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.63e-05/0.3748, allocations: 15.94 kB / 482.5 MB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.3748, allocations: 8 kB / 482.5 MB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.3763, allocations: 0.5555 MB / 483.1 MB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008452/0.3771, allocations: 239.6 kB / 483.3 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009549/0.3866, allocations: 8.251 MB / 491.5 MB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.3879, allocations: 75.83 kB / 491.6 MB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.388, allocations: 51.98 kB / 491.7 MB, free: 8.953 MB / 398.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.001082/0.3891, allocations: 0.5208 MB / 492.2 MB, free: 8.422 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002726/0.3893, allocations: 123.2 kB / 492.3 MB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00322/0.3926, allocations: 1.759 MB / 494.1 MB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.3926, allocations: 8 kB / 494.1 MB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3926, allocations: 4 kB / 494.1 MB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.3926, allocations: 3.984 kB / 494.1 MB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006756/0.3993, allocations: 3.698 MB / 497.8 MB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.196e-06/0.3994, allocations: 4.094 kB / 497.8 MB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00055/0.3999, allocations: 123.8 kB / 497.9 MB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001594/0.4015, allocations: 0.5968 MB / 498.5 MB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.082e-05/0.4016, allocations: 27.92 kB / 498.5 MB, free: 1.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009027/0.4106, allocations: 7.396 MB / 0.4941 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.4106, allocations: 3.938 kB / 0.4941 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004189/0.4148, allocations: 2.477 MB / 0.4965 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.4158, allocations: 243.1 kB / 0.4967 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/0.416, allocations: 27.92 kB / 0.4967 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007132/0.4168, allocations: 59.94 kB / 0.4968 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002304/0.417, allocations: 64.52 kB / 0.4969 GB, free: 7.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.866e-05/0.4171, allocations: 28 kB / 0.4969 GB, free: 7.277 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001758/0.4188, allocations: 0.7857 MB / 0.4977 GB, free: 6.484 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4188, allocations: 3.938 kB / 0.4977 GB, free: 6.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001826/0.4207, allocations: 387.9 kB / 0.498 GB, free: 6.102 MB / 414.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.005374/0.426, allocations: 3.089 MB / 0.501 GB, free: 2.953 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004437/0.4305, allocations: 1.929 MB / 0.5029 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.303e-06/0.4305, allocations: 0 / 0.5029 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002437/0.4329, allocations: 1.197 MB / 0.5041 GB, free: 15.73 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/0.4351, allocations: 377.4 kB / 0.5045 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02297/0.458, allocations: 13.69 MB / 0.5178 GB, free: 1.133 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/0.4595, allocations: 1.456 MB / 0.5193 GB, free: 15.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000901/0.4604, allocations: 271 kB / 0.5195 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007955/0.4612, allocations: 0.5657 MB / 0.5201 GB, free: 14.81 MB / 446.1 MB Notification: Performance of SimCode: time 1.723e-06/0.4612, allocations: 0 / 0.5201 GB, free: 14.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3216/0.7828, allocations: 36.31 MB / 0.5555 GB, free: 90.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.86/19.64, allocations: 7.656 kB / 0.5555 GB, free: 90.92 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking_res.csv --start-time 0 --stop-time 25 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 22.403934196998307] Failed to read output from testmodel.py, exit status != 0: ['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'] 19.772801553001045 19.788346401 19.462107575 Calling exit ...