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.001223/0.001223, allocations: 124.1 kB / 17.79 MB, free: 5.25 MB / 14.72 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.001236/0.001236, allocations: 198.8 kB / 20.73 MB, free: 2.309 MB / 14.72 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 1.387/1.387, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001514/0.001514, allocations: 55.92 kB / 365.6 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09973/0.1012, allocations: 52.14 MB / 417.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01031/0.1116, allocations: 8.229 MB / 426 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005289/0.1168, allocations: 2.711 MB / 428.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000933/0.1178, allocations: 47.69 kB / 428.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001774/0.1196, allocations: 0.6409 MB / 429.4 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001828/0.1214, allocations: 0.6601 MB / 430.1 MB, free: 244 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006987/0.1221, allocations: 283.6 kB / 430.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00259/0.1247, allocations: 2.043 MB / 432.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001405/0.1261, allocations: 1.019 MB / 433.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001326/0.1274, allocations: 0.8994 MB / 434.3 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001561/0.129, allocations: 1.094 MB / 435.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003502/0.1293, allocations: 228 kB / 435.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006271/0.1299, allocations: 327.8 kB / 435.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006629/0.1306, allocations: 0.6388 MB / 436.6 MB, free: 9.656 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001131/0.1317, allocations: 1.031 MB / 437.6 MB, free: 8.621 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003199/0.1349, allocations: 3.001 MB / 440.6 MB, free: 5.609 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1349, allocations: 0 / 440.6 MB, free: 5.609 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1349, allocations: 0 / 440.6 MB, free: 5.609 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.972e-05/0.135, allocations: 0 / 440.6 MB, free: 5.609 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.004129/0.1391, allocations: 2.174 MB / 442.8 MB, free: 3.375 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.1392, allocations: 16.03 kB / 442.8 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003055/0.1395, allocations: 228.1 kB / 443 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000596/0.1401, allocations: 223.7 kB / 443.2 MB, free: 2.906 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001942/0.142, allocations: 1.135 MB / 444.4 MB, free: 1.727 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.1421, allocations: 119.4 kB / 444.5 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002486/0.1424, allocations: 163.8 kB / 444.7 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1912/0.3335, allocations: 1.952 MB / 446.6 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.381e-05/0.3336, allocations: 5.594 kB / 446.6 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.3337, allocations: 62 kB / 446.7 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.684e-05/0.3338, allocations: 80.58 kB / 446.8 MB, free: 28.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002434/0.3363, allocations: 1.582 MB / 448.3 MB, free: 28.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009409/0.3457, allocations: 6.287 MB / 454.6 MB, free: 26.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.3472, allocations: 0.81 MB / 455.4 MB, free: 25.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.3482, allocations: 0.5393 MB / 456 MB, free: 25.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002186/0.3484, allocations: 120.4 kB / 456.1 MB, free: 25.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.3485, allocations: 39.97 kB / 456.1 MB, free: 25.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.505e-06/0.3485, allocations: 0 / 456.1 MB, free: 25.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01299/0.3615, allocations: 5.853 MB / 462 MB, free: 23.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.3615, allocations: 60.81 kB / 462 MB, free: 23.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/0.363, allocations: 1.144 MB / 463.2 MB, free: 22.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.71e-05/0.3631, allocations: 41.83 kB / 463.2 MB, free: 22.71 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004153/0.3635, allocations: 0.7915 MB / 464 MB, free: 22.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/0.3637, allocations: 315.2 kB / 464.3 MB, free: 21.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002828/0.3639, allocations: 213.8 kB / 464.5 MB, free: 21.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.749e-05/0.364, allocations: 348.8 kB / 464.9 MB, free: 21.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006812/0.3647, allocations: 0.5424 MB / 465.4 MB, free: 21.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008296/0.3655, allocations: 0.8833 MB / 466.3 MB, free: 20.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001738/0.3673, allocations: 1.521 MB / 467.8 MB, free: 19.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3673, allocations: 6.781 kB / 467.8 MB, free: 19.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002956/0.3702, allocations: 2.039 MB / 469.9 MB, free: 18.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.3702, allocations: 13.25 kB / 469.9 MB, free: 18.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.3703, allocations: 10.69 kB / 469.9 MB, free: 18.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/0.3716, allocations: 0.5562 MB / 470.5 MB, free: 18.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007631/0.3723, allocations: 240 kB / 470.7 MB, free: 18.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006175/0.3785, allocations: 8.663 MB / 479.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009501/0.3795, allocations: 74.2 kB / 479.4 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.01e-05/0.3795, allocations: 46.38 kB / 479.5 MB, free: 10.66 MB / 366.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.0007238/0.3803, allocations: 0.5198 MB / 480 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001939/0.3805, allocations: 132 kB / 480.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/0.3829, allocations: 1.757 MB / 481.9 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.383, allocations: 11.73 kB / 481.9 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.383, allocations: 3.938 kB / 481.9 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.383, allocations: 7.969 kB / 481.9 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004787/0.3878, allocations: 3.727 MB / 485.6 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.3878, allocations: 3.562 kB / 485.6 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004633/0.3882, allocations: 129 kB / 485.8 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.3895, allocations: 0.5966 MB / 486.3 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.516e-05/0.3896, allocations: 25.73 kB / 486.4 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006255/0.3958, allocations: 7.702 MB / 494.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3958, allocations: 0 / 494.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003935/0.3998, allocations: 2.477 MB / 496.6 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005957/0.4004, allocations: 316.2 kB / 496.9 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/0.4005, allocations: 23.94 kB / 496.9 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006246/0.4012, allocations: 63.66 kB / 496.9 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.4013, allocations: 68.5 kB / 497 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.783e-05/0.4014, allocations: 23.98 kB / 497 MB, free: 11.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001142/0.4025, allocations: 0.7854 MB / 497.8 MB, free: 10.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4025, allocations: 1.125 kB / 497.8 MB, free: 10.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001489/0.404, allocations: 372 kB / 498.2 MB, free: 10.59 MB / 382.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.004375/0.4084, allocations: 3.104 MB / 0.4895 GB, free: 7.426 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003552/0.4119, allocations: 2.079 MB / 0.4916 GB, free: 5.246 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.4119, allocations: 7.938 kB / 0.4916 GB, free: 5.238 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002131/0.4141, allocations: 1.261 MB / 0.4928 GB, free: 3.922 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.4159, allocations: 370.8 kB / 0.4932 GB, free: 3.574 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0212/0.437, allocations: 13.66 MB / 0.5065 GB, free: 5.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.4383, allocations: 1.464 MB / 0.5079 GB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007778/0.4391, allocations: 263 kB / 0.5082 GB, free: 3.637 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007552/0.4398, allocations: 0.5618 MB / 0.5087 GB, free: 3.074 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4398, allocations: 4 kB / 0.5087 GB, free: 3.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0824/0.5222, allocations: 35.25 MB / 0.5432 GB, free: 208 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.05/17.57, allocations: 11.12 kB / 0.5432 GB, free: 200 kB / 430.1 MB " [Timeout remaining time 642] (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: 20.095930824056268] 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'] 17.680507850833237 17.701981806 17.562796675 Calling exit ...