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.002128/0.002128, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.002358/0.002358, allocations: 187.5 kB / 23.7 MB, free: 4.191 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.46/1.46, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.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.00254/0.00254, allocations: 43.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2494/0.252, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.009402/0.2614, allocations: 7.264 MB / 429.8 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004937/0.2663, allocations: 2.532 MB / 432.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007179/0.267, allocations: 51.69 kB / 432.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.2686, allocations: 0.5941 MB / 433 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001563/0.2701, allocations: 0.664 MB / 433.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005987/0.2707, allocations: 291.5 kB / 434 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002213/0.273, allocations: 2.039 MB / 436 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001112/0.2741, allocations: 0.7924 MB / 436.8 MB, free: 80 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00133/0.2754, allocations: 0.9111 MB / 437.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001447/0.2768, allocations: 1.008 MB / 438.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003257/0.2772, allocations: 232 kB / 438.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005837/0.2778, allocations: 311.8 kB / 439.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006409/0.2784, allocations: 0.635 MB / 439.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008968/0.2793, allocations: 0.8402 MB / 440.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003083/0.2824, allocations: 3.021 MB / 443.7 MB, free: 9.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2824, allocations: 4 kB / 443.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.2824, allocations: 0 / 443.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.631e-05/0.2824, allocations: 0 / 443.8 MB, free: 9.098 MB / 350.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.003829/0.2862, allocations: 2.099 MB / 445.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.2863, allocations: 8.031 kB / 445.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002824/0.2866, allocations: 232 kB / 446.1 MB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005708/0.2871, allocations: 227.6 kB / 446.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002018/0.2892, allocations: 1.07 MB / 447.4 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.364e-05/0.2893, allocations: 115.4 kB / 447.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002367/0.2895, allocations: 159.9 kB / 447.6 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003003/0.2925, allocations: 2.055 MB / 449.7 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.803e-05/0.2926, allocations: 15.95 kB / 449.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.2927, allocations: 56 kB / 449.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.762e-05/0.2928, allocations: 74.92 kB / 449.8 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002481/0.2953, allocations: 1.589 MB / 451.4 MB, free: 1.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009148/0.3044, allocations: 5.688 MB / 457.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001354/0.3058, allocations: 0.7255 MB / 457.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.3068, allocations: 0.5421 MB / 458.4 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001823/0.307, allocations: 40.61 kB / 458.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.307, allocations: 39.22 kB / 458.5 MB, free: 9.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.545e-06/0.307, allocations: 4 kB / 458.5 MB, free: 9.977 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01324/0.3202, allocations: 5.485 MB / 464 MB, free: 4.457 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.3203, allocations: 60.41 kB / 464 MB, free: 4.383 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/0.3221, allocations: 1.171 MB / 465.2 MB, free: 3.195 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.309e-05/0.3222, allocations: 37.7 kB / 465.2 MB, free: 3.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006447/0.3229, allocations: 0.7847 MB / 466 MB, free: 2.359 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002894/0.3232, allocations: 321.3 kB / 466.3 MB, free: 2.043 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003439/0.3235, allocations: 210.9 kB / 466.5 MB, free: 1.828 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.3237, allocations: 349.9 kB / 466.9 MB, free: 1.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008303/0.3245, allocations: 0.5413 MB / 467.4 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/0.3256, allocations: 0.8757 MB / 468.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002064/0.3277, allocations: 1.531 MB / 469.8 MB, free: 14.24 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.3277, allocations: 4 kB / 469.8 MB, free: 14.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003515/0.3312, allocations: 2.04 MB / 471.9 MB, free: 12.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.3312, allocations: 8 kB / 471.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.456e-05/0.3312, allocations: 15.94 kB / 471.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.3327, allocations: 0.5516 MB / 472.4 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008183/0.3335, allocations: 243.6 kB / 472.7 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009167/0.3426, allocations: 8.198 MB / 480.9 MB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009846/0.3436, allocations: 71.83 kB / 480.9 MB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.3438, allocations: 44 kB / 481 MB, free: 2.57 MB / 382.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.0009997/0.3448, allocations: 0.5209 MB / 481.5 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/0.3451, allocations: 127.2 kB / 481.6 MB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00327/0.3483, allocations: 1.766 MB / 483.4 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.3484, allocations: 8 kB / 483.4 MB, free: 116 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.599e-05/0.3484, allocations: 4.094 kB / 483.4 MB, free: 112 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.3484, allocations: 7.922 kB / 483.4 MB, free: 104 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006794/0.3552, allocations: 3.51 MB / 486.9 MB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.3552, allocations: 8.219 kB / 486.9 MB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005161/0.3557, allocations: 119.9 kB / 487.1 MB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001526/0.3572, allocations: 0.5886 MB / 487.6 MB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-05/0.3573, allocations: 27.98 kB / 487.7 MB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008525/0.3658, allocations: 7.337 MB / 495 MB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3658, allocations: 4 kB / 495 MB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003877/0.3697, allocations: 2.484 MB / 497.5 MB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007371/0.3704, allocations: 235.2 kB / 497.7 MB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/0.3707, allocations: 23.94 kB / 497.7 MB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007155/0.3714, allocations: 55.94 kB / 497.8 MB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.3716, allocations: 68.52 kB / 497.9 MB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.068e-05/0.3717, allocations: 31.98 kB / 497.9 MB, free: 1.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001357/0.373, allocations: 0.7854 MB / 498.7 MB, free: 348 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.373, allocations: 0 / 498.7 MB, free: 348 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.001475/0.3745, allocations: 376 kB / 499.1 MB, free: 15.97 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.004609/0.3791, allocations: 3.101 MB / 0.4904 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003464/0.3826, allocations: 1.937 MB / 0.4923 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.3826, allocations: 4.125 kB / 0.4923 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002105/0.3847, allocations: 1.184 MB / 0.4934 GB, free: 9.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001874/0.3866, allocations: 366.4 kB / 0.4938 GB, free: 9.234 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02174/0.4083, allocations: 13.67 MB / 0.5071 GB, free: 11 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001311/0.4096, allocations: 0.8748 MB / 0.508 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008212/0.4104, allocations: 259.1 kB / 0.5082 GB, free: 9.832 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008425/0.4113, allocations: 0.5657 MB / 0.5088 GB, free: 9.266 MB / 430.1 MB Notification: Performance of SimCode: time 1.253e-06/0.4113, allocations: 0 / 0.5088 GB, free: 9.266 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.273/0.6843, allocations: 37.87 MB / 0.5458 GB, free: 108.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.48, allocations: 5.828 kB / 0.5458 GB, free: 108.6 MB / 446.1 MB " [Timeout remaining time 646] (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: 16.103166913148016] 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'] 13.617962626740336 13.635104842 13.349297395 Calling exit ...