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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008628/0.0008628, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000944/0.000944, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9272/0.9272, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.075e-05/2.282e-05, allocations: 2.281 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.007673/0.007696, allocations: 7.261 MB / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003331/0.01103, allocations: 2.543 MB / 328.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00042/0.01145, allocations: 47.69 kB / 328.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.01252, allocations: 0.6017 MB / 328.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008944/0.01342, allocations: 0.6907 MB / 329.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003629/0.01378, allocations: 295.5 kB / 329.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.01518, allocations: 2.103 MB / 332 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007476/0.01593, allocations: 0.8001 MB / 332.8 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.01702, allocations: 1.317 MB / 334.1 MB, free: 6.574 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009033/0.01793, allocations: 0.9039 MB / 335 MB, free: 5.668 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001976/0.01812, allocations: 228 kB / 335.2 MB, free: 5.445 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003679/0.01849, allocations: 315.8 kB / 335.5 MB, free: 5.137 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004285/0.01892, allocations: 0.6583 MB / 336.2 MB, free: 4.477 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005182/0.01944, allocations: 0.7055 MB / 336.9 MB, free: 3.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002128/0.02157, allocations: 3.03 MB / 339.9 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.02157, allocations: 0 / 339.9 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.02157, allocations: 8 kB / 339.9 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.161e-05/0.02161, allocations: 3.938 kB / 339.9 MB, free: 0.7148 MB / 298.7 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.002597/0.0242, allocations: 2.079 MB / 342 MB, free: 14.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.02425, allocations: 12.92 kB / 342 MB, free: 14.58 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002007/0.02445, allocations: 228 kB / 342.3 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003596/0.02481, allocations: 227.7 kB / 342.5 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001192/0.02601, allocations: 1.066 MB / 343.5 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.02607, allocations: 115.4 kB / 343.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001634/0.02623, allocations: 156.3 kB / 343.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.02842, allocations: 2.056 MB / 345.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.02845, allocations: 15.89 kB / 345.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.109e-05/0.02854, allocations: 60 kB / 345.9 MB, free: 10.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.824e-05/0.0286, allocations: 78.91 kB / 346 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00163/0.03023, allocations: 1.577 MB / 347.6 MB, free: 8.902 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005386/0.03562, allocations: 5.696 MB / 353.3 MB, free: 2.996 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009886/0.03661, allocations: 0.72 MB / 354 MB, free: 2.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006493/0.03725, allocations: 0.546 MB / 354.6 MB, free: 1.719 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.0374, allocations: 36.62 kB / 354.6 MB, free: 1.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.03743, allocations: 43.22 kB / 354.6 MB, free: 1.629 MB / 314.7 MB Notification: Performance of pre-optimization done (n=65): time 1.803e-06/0.03744, allocations: 0 / 354.6 MB, free: 1.629 MB / 314.7 MB Notification: Performance of matching and sorting (n=85): time 0.007591/0.04503, allocations: 5.479 MB / 360.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.04507, allocations: 64.39 kB / 360.2 MB, free: 12.04 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.04623, allocations: 1.168 MB / 361.3 MB, free: 10.85 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.986e-05/0.04628, allocations: 37.7 kB / 361.4 MB, free: 10.81 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004611/0.04674, allocations: 0.7925 MB / 362.2 MB, free: 10.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000223/0.04696, allocations: 313.3 kB / 362.5 MB, free: 9.699 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/0.0472, allocations: 202.9 kB / 362.7 MB, free: 9.492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.04733, allocations: 353.9 kB / 363 MB, free: 9.141 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005872/0.04791, allocations: 0.5452 MB / 363.6 MB, free: 8.598 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007762/0.04869, allocations: 0.8837 MB / 364.4 MB, free: 7.562 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.05004, allocations: 1.524 MB / 366 MB, free: 5.895 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.05005, allocations: 4 kB / 366 MB, free: 5.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.0021/0.05215, allocations: 2.04 MB / 368 MB, free: 3.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.05217, allocations: 12 kB / 368 MB, free: 3.809 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.05218, allocations: 8 kB / 368 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007843/0.05297, allocations: 0.5514 MB / 368.6 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000429/0.0534, allocations: 247.6 kB / 368.8 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005034/0.05843, allocations: 8.194 MB / 377 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000494/0.05893, allocations: 75.88 kB / 377.1 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.665e-05/0.05898, allocations: 48 kB / 377.1 MB, free: 10.22 MB / 346.7 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.0006355/0.05962, allocations: 0.5209 MB / 377.7 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.05975, allocations: 127.2 kB / 377.8 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/0.06153, allocations: 1.759 MB / 379.5 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.06153, allocations: 8 kB / 379.6 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.06154, allocations: 11.94 kB / 379.6 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.06154, allocations: 3.984 kB / 379.6 MB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003641/0.06518, allocations: 3.507 MB / 383.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.06519, allocations: 0 / 383.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002733/0.06546, allocations: 128.1 kB / 383.2 MB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.06647, allocations: 0.5964 MB / 383.8 MB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.167e-05/0.06652, allocations: 23.98 kB / 383.8 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005276/0.0718, allocations: 7.333 MB / 391.2 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.0718, allocations: 8 kB / 391.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002423/0.07422, allocations: 2.465 MB / 393.6 MB, free: 9.215 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003441/0.07457, allocations: 239.2 kB / 393.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.668e-05/0.07467, allocations: 27.98 kB / 393.9 MB, free: 8.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000336/0.075, allocations: 51.94 kB / 393.9 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.07516, allocations: 80.39 kB / 394 MB, free: 8.824 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.661e-05/0.07519, allocations: 20 kB / 394 MB, free: 8.805 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008446/0.07604, allocations: 0.7893 MB / 394.8 MB, free: 8.008 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.07604, allocations: 96 / 394.8 MB, free: 8.008 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001011/0.07705, allocations: 379.9 kB / 395.2 MB, free: 7.637 MB / 362.7 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.002845/0.07989, allocations: 3.101 MB / 398.3 MB, free: 4.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00199/0.08188, allocations: 1.933 MB / 400.2 MB, free: 2.484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.08189, allocations: 0.8125 kB / 400.2 MB, free: 2.484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.083, allocations: 1.184 MB / 401.4 MB, free: 1.262 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009416/0.08394, allocations: 367.3 kB / 401.8 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.0991, allocations: 13.6 MB / 415.4 MB, free: 2.742 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007369/0.09984, allocations: 0.8827 MB / 416.3 MB, free: 1.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005564/0.1004, allocations: 263 kB / 416.5 MB, free: 1.559 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005093/0.1009, allocations: 0.5589 MB / 417.1 MB, free: 1 MB / 378.7 MB Notification: Performance of SimCode: time 1.402e-06/0.1009, allocations: 0 / 417.1 MB, free: 1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2026/0.3035, allocations: 37.88 MB / 454.9 MB, free: 121 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.2, allocations: 13.61 kB / 455 MB, free: 121 MB / 410.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.137835901230574] 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'] 8.305626748129725 8.311159536 8.288251309 Calling exit ...