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.001668/0.001668, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001987/0.001987, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.475/1.475, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.00151/0.00151, allocations: 47.92 kB / 370.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2402, allocations: 52.19 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.0103/0.2505, allocations: 8.252 MB / 430.9 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00562/0.2562, allocations: 2.707 MB / 433.6 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008709/0.257, allocations: 51.62 kB / 433.7 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001766/0.2588, allocations: 0.652 MB / 434.3 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001895/0.2607, allocations: 0.664 MB / 435 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00065/0.2613, allocations: 291.5 kB / 435.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002412/0.2637, allocations: 2.031 MB / 437.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.2649, allocations: 0.8315 MB / 438.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.2661, allocations: 0.907 MB / 439 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001448/0.2675, allocations: 1.086 MB / 440.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002927/0.2678, allocations: 231.9 kB / 440.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005521/0.2684, allocations: 331.8 kB / 440.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006188/0.269, allocations: 0.6427 MB / 441.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000972/0.27, allocations: 1.023 MB / 442.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003351/0.2733, allocations: 3.001 MB / 445.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2733, allocations: 3.938 kB / 445.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2733, allocations: 4 kB / 445.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.014e-05/0.2734, allocations: 0 / 445.3 MB, free: 7.801 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.003992/0.2774, allocations: 2.099 MB / 447.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.2774, allocations: 12.03 kB / 447.4 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002813/0.2777, allocations: 224.1 kB / 447.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005806/0.2783, allocations: 227.7 kB / 447.9 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001984/0.2803, allocations: 1.074 MB / 449 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.747e-05/0.2803, allocations: 111.4 kB / 449.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002266/0.2806, allocations: 159.9 kB / 449.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.2836, allocations: 1.959 MB / 451.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.168e-05/0.2836, allocations: 11.89 kB / 451.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001419/0.2838, allocations: 60 kB / 451.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.944e-05/0.2839, allocations: 78.91 kB / 451.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002514/0.2864, allocations: 1.581 MB / 452.9 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009352/0.2957, allocations: 6.175 MB / 459.1 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.2972, allocations: 0.7289 MB / 459.8 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009736/0.2981, allocations: 0.5414 MB / 460.4 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001924/0.2983, allocations: 40.61 kB / 460.4 MB, free: 8.371 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.2984, allocations: 47.22 kB / 460.4 MB, free: 8.316 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.234e-06/0.2984, allocations: 0 / 460.4 MB, free: 8.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01363/0.312, allocations: 5.482 MB / 465.9 MB, free: 2.801 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.312, allocations: 60.41 kB / 466 MB, free: 2.727 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001728/0.3138, allocations: 1.14 MB / 467.1 MB, free: 1.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.268e-05/0.3139, allocations: 41.7 kB / 467.2 MB, free: 1.523 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006149/0.3145, allocations: 0.7924 MB / 468 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002796/0.3147, allocations: 317.3 kB / 468.3 MB, free: 420 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003206/0.3151, allocations: 210.8 kB / 468.5 MB, free: 200 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.3152, allocations: 345.9 kB / 468.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008166/0.3161, allocations: 0.5491 MB / 469.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/0.3172, allocations: 0.8796 MB / 470.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/0.3192, allocations: 1.52 MB / 471.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.3192, allocations: 4 kB / 471.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003524/0.3228, allocations: 2.048 MB / 473.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.3228, allocations: 12 kB / 473.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.3228, allocations: 11.94 kB / 473.8 MB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.3243, allocations: 0.5555 MB / 474.4 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000835/0.3251, allocations: 239.6 kB / 474.6 MB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008863/0.334, allocations: 8.253 MB / 482.9 MB, free: 0.9883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009447/0.3349, allocations: 72.06 kB / 482.9 MB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.453e-05/0.335, allocations: 59.92 kB / 483 MB, free: 0.8594 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.0008899/0.3359, allocations: 0.5083 MB / 483.5 MB, free: 352 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/0.3361, allocations: 143.2 kB / 483.7 MB, free: 208 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003039/0.3391, allocations: 1.751 MB / 485.4 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.475e-06/0.3391, allocations: 8 kB / 485.4 MB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.3391, allocations: 4 kB / 485.4 MB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.3392, allocations: 3.984 kB / 485.4 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006222/0.3454, allocations: 3.705 MB / 489.1 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.3454, allocations: 0 / 489.1 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005508/0.3459, allocations: 127.8 kB / 489.2 MB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001567/0.3475, allocations: 0.5966 MB / 489.8 MB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.569e-05/0.3476, allocations: 23.98 kB / 489.9 MB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008602/0.3562, allocations: 7.387 MB / 497.3 MB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.3562, allocations: 7.938 kB / 497.3 MB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003974/0.3602, allocations: 2.477 MB / 499.7 MB, free: 15.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000621/0.3608, allocations: 247.1 kB / 500 MB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001642/0.3609, allocations: 23.94 kB / 0.4883 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006293/0.3616, allocations: 55.94 kB / 0.4883 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.3617, allocations: 72.52 kB / 0.4884 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-05/0.3618, allocations: 23.98 kB / 0.4884 GB, free: 15.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001238/0.3631, allocations: 0.7854 MB / 0.4892 GB, free: 14.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3631, allocations: 4 kB / 0.4892 GB, free: 14.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00129/0.3643, allocations: 371.9 kB / 0.4896 GB, free: 14.02 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.004403/0.3688, allocations: 3.101 MB / 0.4926 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003442/0.3722, allocations: 1.941 MB / 0.4945 GB, free: 8.867 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.3722, allocations: 4 kB / 0.4945 GB, free: 8.863 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002076/0.3743, allocations: 1.177 MB / 0.4956 GB, free: 7.648 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.376, allocations: 373.7 kB / 0.496 GB, free: 7.293 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02024/0.3963, allocations: 13.67 MB / 0.5093 GB, free: 9.062 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/0.3975, allocations: 1.46 MB / 0.5108 GB, free: 7.57 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000758/0.3982, allocations: 263 kB / 0.511 GB, free: 7.309 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007687/0.399, allocations: 0.5657 MB / 0.5116 GB, free: 6.742 MB / 430.1 MB Notification: Performance of SimCode: time 7.21e-07/0.399, allocations: 0 / 0.5116 GB, free: 6.742 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2997/0.6987, allocations: 36.18 MB / 0.5469 GB, free: 107.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.05/19.75, allocations: 0 / 0.5469 GB, free: 107.7 MB / 446.1 MB " [Timeout remaining time 640] (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: 22.39906283199889] 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'] 19.882337299000937 19.904171571 19.626561166 Calling exit ...