Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007977/0.0007977, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008069/0.0008069, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8868/0.8868, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.709e-05/1.854e-05, allocations: 2.281 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.005834/0.005853, allocations: 7.306 MB / 331.8 MB, free: 8.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003936/0.009789, allocations: 2.578 MB / 334.4 MB, free: 5.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006171/0.01041, allocations: 51.69 kB / 334.5 MB, free: 5.879 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.01164, allocations: 0.6017 MB / 335.1 MB, free: 5.273 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.0128, allocations: 0.6868 MB / 335.8 MB, free: 4.582 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004338/0.01323, allocations: 295.5 kB / 336 MB, free: 4.293 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001612/0.01484, allocations: 2.128 MB / 338.2 MB, free: 2.152 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008006/0.01565, allocations: 0.8002 MB / 339 MB, free: 1.305 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001329/0.01697, allocations: 1.321 MB / 340.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009571/0.01793, allocations: 0.9077 MB / 341.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000476/0.01841, allocations: 228 kB / 341.4 MB, free: 14.85 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004002/0.01881, allocations: 319.8 kB / 341.7 MB, free: 14.54 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003913/0.0192, allocations: 0.6583 MB / 342.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004837/0.01968, allocations: 0.7133 MB / 343.1 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001911/0.02159, allocations: 3.034 MB / 346.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.0216, allocations: 0 / 346.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.0216, allocations: 0 / 346.1 MB, free: 10.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.365e-05/0.02162, allocations: 4 kB / 346.1 MB, free: 10.11 MB / 314.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.002486/0.02411, allocations: 2.083 MB / 348.2 MB, free: 7.988 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.02416, allocations: 15.98 kB / 348.2 MB, free: 7.973 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/0.02435, allocations: 232 kB / 348.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006594/0.02501, allocations: 227.7 kB / 348.7 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.02621, allocations: 1.073 MB / 349.8 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.76e-05/0.02626, allocations: 115.3 kB / 349.9 MB, free: 6.297 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.02641, allocations: 156.3 kB / 350 MB, free: 6.145 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002009/0.02842, allocations: 2.059 MB / 352.1 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.65e-05/0.02846, allocations: 15.89 kB / 352.1 MB, free: 4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.665e-05/0.02854, allocations: 56 kB / 352.2 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.938e-05/0.0286, allocations: 86.84 kB / 352.2 MB, free: 3.859 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001613/0.03022, allocations: 1.577 MB / 353.8 MB, free: 2.277 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006359/0.03657, allocations: 5.688 MB / 359.5 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.03766, allocations: 0.7248 MB / 360.2 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006039/0.03827, allocations: 0.5421 MB / 360.8 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.0384, allocations: 40.56 kB / 360.8 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.03843, allocations: 43.22 kB / 360.9 MB, free: 11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=65): time 2.545e-06/0.03844, allocations: 0 / 360.9 MB, free: 11 MB / 330.7 MB Notification: Performance of matching and sorting (n=85): time 0.00777/0.04621, allocations: 5.474 MB / 366.3 MB, free: 5.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.04624, allocations: 60.41 kB / 366.4 MB, free: 5.406 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.04736, allocations: 1.172 MB / 367.6 MB, free: 4.219 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.04741, allocations: 41.7 kB / 367.6 MB, free: 4.172 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00041/0.04782, allocations: 0.7925 MB / 368.4 MB, free: 3.371 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/0.04798, allocations: 313.3 kB / 368.7 MB, free: 3.062 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/0.04818, allocations: 210.9 kB / 368.9 MB, free: 2.852 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.072e-05/0.04828, allocations: 349.9 kB / 369.3 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005336/0.04881, allocations: 0.5413 MB / 369.8 MB, free: 1.961 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006557/0.04946, allocations: 0.8876 MB / 370.7 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.0507, allocations: 1.52 MB / 372.2 MB, free: 15.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.05071, allocations: 4 kB / 372.2 MB, free: 15.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.002001/0.05271, allocations: 2.036 MB / 374.2 MB, free: 13.19 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.05273, allocations: 16.03 kB / 374.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.05274, allocations: 12 kB / 374.3 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007825/0.05353, allocations: 0.5553 MB / 374.8 MB, free: 12.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/0.05397, allocations: 243.6 kB / 375.1 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005046/0.05901, allocations: 8.176 MB / 383.2 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004723/0.05949, allocations: 75.88 kB / 383.3 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.877e-05/0.05955, allocations: 44 kB / 383.4 MB, free: 3.609 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.0005315/0.06008, allocations: 0.5287 MB / 383.9 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.0602, allocations: 127.2 kB / 384 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.06196, allocations: 1.763 MB / 385.8 MB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.06197, allocations: 8 kB / 385.8 MB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.06197, allocations: 4 kB / 385.8 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.06198, allocations: 8.062 kB / 385.8 MB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.06558, allocations: 3.526 MB / 389.3 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.06559, allocations: 4 kB / 389.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002686/0.06586, allocations: 128.1 kB / 389.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008512/0.06671, allocations: 0.5915 MB / 390 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.144e-05/0.06676, allocations: 27.98 kB / 390.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004939/0.0717, allocations: 7.334 MB / 397.4 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.0717, allocations: 4 kB / 397.4 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.07411, allocations: 2.473 MB / 399.9 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003353/0.07445, allocations: 247 kB / 400.1 MB, free: 2.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.808e-05/0.07454, allocations: 24 kB / 400.1 MB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003229/0.07486, allocations: 56.19 kB / 400.2 MB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.07497, allocations: 72.45 kB / 400.3 MB, free: 2.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.643e-05/0.07501, allocations: 31.98 kB / 400.3 MB, free: 2.145 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006997/0.07571, allocations: 0.7895 MB / 401.1 MB, free: 1.348 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07571, allocations: 0 / 401.1 MB, free: 1.348 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000813/0.07652, allocations: 375.9 kB / 401.5 MB, free: 0.9805 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.002789/0.07931, allocations: 3.097 MB / 404.6 MB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001889/0.0812, allocations: 1.917 MB / 406.5 MB, free: 11.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.0812, allocations: 4.688 kB / 406.5 MB, free: 11.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.08226, allocations: 1.184 MB / 407.7 MB, free: 10.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009378/0.0832, allocations: 380.9 kB / 408 MB, free: 10.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.09721, allocations: 13.61 MB / 421.6 MB, free: 12.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006863/0.0979, allocations: 0.8788 MB / 422.5 MB, free: 11.18 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005153/0.09841, allocations: 263 kB / 422.8 MB, free: 10.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004747/0.09889, allocations: 0.5667 MB / 423.3 MB, free: 10.35 MB / 394.7 MB Notification: Performance of SimCode: time 6.91e-07/0.09889, allocations: 7.938 kB / 423.4 MB, free: 10.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1784/0.2773, allocations: 38.01 MB / 461.4 MB, free: 112.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.992/8.269, allocations: 0 / 461.4 MB, free: 112.2 MB / 410.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.126830512657762] 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.373981831595302 8.380366974 8.357384958 Calling exit ...