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.001297/0.001297, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001263/0.001263, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.366/1.366, allocations: 225.6 MB / 249.1 MB, free: 3.621 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.001458/0.001458, allocations: 51.92 kB / 365.7 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1037, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.01048/0.1142, allocations: 8.221 MB / 426 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005227/0.1195, allocations: 2.711 MB / 428.7 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006968/0.1201, allocations: 39.88 kB / 428.8 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001617/0.1218, allocations: 0.6331 MB / 429.4 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001531/0.1233, allocations: 0.664 MB / 430.1 MB, free: 312 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005982/0.1239, allocations: 291.6 kB / 430.3 MB, free: 20 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002316/0.1262, allocations: 2.023 MB / 432.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00132/0.1275, allocations: 1.026 MB / 433.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.1287, allocations: 0.8876 MB / 434.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001478/0.1302, allocations: 1.098 MB / 435.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003273/0.1305, allocations: 227.9 kB / 435.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005796/0.1311, allocations: 319.9 kB / 435.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006492/0.1318, allocations: 0.6388 MB / 436.6 MB, free: 9.742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001073/0.1328, allocations: 1.031 MB / 437.6 MB, free: 8.707 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003283/0.1361, allocations: 3.005 MB / 440.6 MB, free: 5.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1361, allocations: 0 / 440.6 MB, free: 5.691 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1361, allocations: 0 / 440.6 MB, free: 5.691 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.758e-05/0.1362, allocations: 0 / 440.6 MB, free: 5.691 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.004089/0.1402, allocations: 2.174 MB / 442.8 MB, free: 3.457 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.1403, allocations: 8.031 kB / 442.8 MB, free: 3.449 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003044/0.1406, allocations: 232 kB / 443 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006069/0.1412, allocations: 219.7 kB / 443.2 MB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002164/0.1434, allocations: 1.15 MB / 444.4 MB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.221e-05/0.1435, allocations: 111.4 kB / 444.5 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002417/0.1437, allocations: 163.9 kB / 444.6 MB, free: 1.531 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1899/0.3336, allocations: 1.946 MB / 446.6 MB, free: 28.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.296e-05/0.3337, allocations: 7.406 kB / 446.6 MB, free: 28.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001317/0.3338, allocations: 64.97 kB / 446.6 MB, free: 28.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-05/0.3339, allocations: 73.34 kB / 446.7 MB, free: 28.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/0.336, allocations: 1.588 MB / 448.3 MB, free: 28.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008309/0.3443, allocations: 6.292 MB / 454.6 MB, free: 26.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.3457, allocations: 0.8084 MB / 455.4 MB, free: 25.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008713/0.3465, allocations: 0.5422 MB / 456 MB, free: 25.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000179/0.3467, allocations: 115.3 kB / 456.1 MB, free: 25.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.3467, allocations: 47.19 kB / 456.1 MB, free: 25.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.414e-06/0.3467, allocations: 3.719 kB / 456.1 MB, free: 25.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01202/0.3588, allocations: 5.845 MB / 462 MB, free: 23.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.605e-05/0.3588, allocations: 61.11 kB / 462 MB, free: 23.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.3603, allocations: 1.144 MB / 463.2 MB, free: 22.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.233e-05/0.3603, allocations: 41.55 kB / 463.2 MB, free: 22.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004212/0.3607, allocations: 0.7949 MB / 464 MB, free: 22.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.3609, allocations: 315.5 kB / 464.3 MB, free: 21.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002781/0.3612, allocations: 209.5 kB / 464.5 MB, free: 21.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.14e-05/0.3613, allocations: 352.2 kB / 464.9 MB, free: 21.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006626/0.3619, allocations: 0.5421 MB / 465.4 MB, free: 21.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007696/0.3627, allocations: 0.8756 MB / 466.3 MB, free: 20.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.3642, allocations: 1.531 MB / 467.8 MB, free: 19.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.3642, allocations: 6.344 kB / 467.8 MB, free: 19.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002906/0.3671, allocations: 2.034 MB / 469.8 MB, free: 18.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.3671, allocations: 13.25 kB / 469.9 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/0.3672, allocations: 15.25 kB / 469.9 MB, free: 18.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/0.3684, allocations: 0.5498 MB / 470.4 MB, free: 18.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007626/0.3691, allocations: 244.6 kB / 470.7 MB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006228/0.3754, allocations: 8.663 MB / 479.3 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.3764, allocations: 71.92 kB / 479.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.624e-05/0.3765, allocations: 46.31 kB / 479.4 MB, free: 10.76 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.000866/0.3774, allocations: 0.5195 MB / 480 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.3777, allocations: 135.4 kB / 480.1 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002425/0.3801, allocations: 1.758 MB / 481.9 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3801, allocations: 7.625 kB / 481.9 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3801, allocations: 3.938 kB / 481.9 MB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-06/0.3801, allocations: 3.984 kB / 481.9 MB, free: 9.297 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005128/0.3853, allocations: 3.733 MB / 485.6 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.3853, allocations: 0 / 485.6 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004778/0.3857, allocations: 123.5 kB / 485.7 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001258/0.387, allocations: 0.5973 MB / 486.3 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.708e-05/0.3871, allocations: 25.7 kB / 486.3 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006084/0.3931, allocations: 7.696 MB / 494 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.3931, allocations: 4 kB / 494 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003965/0.3971, allocations: 2.479 MB / 496.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007614/0.3979, allocations: 320.2 kB / 496.8 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.398, allocations: 27.88 kB / 496.9 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006239/0.3987, allocations: 55.94 kB / 496.9 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.3988, allocations: 64.56 kB / 497 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.593e-05/0.3989, allocations: 23.98 kB / 497 MB, free: 11.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001129/0.4, allocations: 0.7893 MB / 497.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4, allocations: 1.312 kB / 497.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001338/0.4013, allocations: 380 kB / 498.2 MB, free: 10.66 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.004337/0.4057, allocations: 3.094 MB / 0.4895 GB, free: 7.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003464/0.4091, allocations: 2.09 MB / 0.4915 GB, free: 5.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4091, allocations: 0 / 0.4915 GB, free: 5.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002118/0.4113, allocations: 1.265 MB / 0.4928 GB, free: 4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.4129, allocations: 382.6 kB / 0.4932 GB, free: 3.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02072/0.4337, allocations: 13.65 MB / 0.5065 GB, free: 5.461 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001267/0.4349, allocations: 1.464 MB / 0.5079 GB, free: 3.969 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007764/0.4357, allocations: 263 kB / 0.5082 GB, free: 3.707 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007415/0.4364, allocations: 0.5618 MB / 0.5087 GB, free: 3.145 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4364, allocations: 0 / 0.5087 GB, free: 3.145 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08419/0.5206, allocations: 35.27 MB / 0.5432 GB, free: 264 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.54/18.06, allocations: 11.73 kB / 0.5432 GB, free: 252 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 & /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 --stepSize=0.001 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.544838428962976] 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'] 18.16788094677031 18.18252983 18.043431927 Calling exit ...