Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 128.5 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,fileNamePrefix="Modelica_4_1_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_1_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.001487/0.001487, allocations: 59.92 kB / 373 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.113, allocations: 53.32 MB / 426.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking): time 0.2232/0.3362, allocations: 8.248 MB / 434.6 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004491/0.3407, allocations: 2.756 MB / 437.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009357/0.3417, allocations: 49.66 kB / 437.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00176/0.3434, allocations: 0.6396 MB / 438 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001841/0.3453, allocations: 0.6737 MB / 438.7 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006978/0.346, allocations: 284.7 kB / 439 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002492/0.3484, allocations: 2.043 MB / 441 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001348/0.3498, allocations: 1.026 MB / 442 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00176/0.3516, allocations: 0.9206 MB / 443 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001904/0.3535, allocations: 1.1 MB / 444.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004543/0.3539, allocations: 227.2 kB / 444.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009076/0.3548, allocations: 318.8 kB / 444.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006726/0.3555, allocations: 0.6297 MB / 445.2 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.3568, allocations: 1.038 MB / 446.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00408/0.3608, allocations: 3.006 MB / 449.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3609, allocations: 1.031 kB / 449.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3609, allocations: 0 / 449.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001097/0.361, allocations: 1.375 kB / 449.3 MB, free: 0.6016 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.00573/0.3667, allocations: 2.187 MB / 451.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.3667, allocations: 10.25 kB / 451.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003796/0.3671, allocations: 225.2 kB / 451.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007647/0.3679, allocations: 226.6 kB / 451.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002168/0.3701, allocations: 1.147 MB / 453.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.814e-05/0.3702, allocations: 111.9 kB / 453.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002668/0.3704, allocations: 161.8 kB / 453.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003718/0.3741, allocations: 1.957 MB / 455.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.958e-05/0.3742, allocations: 7.422 kB / 455.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001604/0.3743, allocations: 65.45 kB / 455.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000101/0.3744, allocations: 78.59 kB / 455.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002864/0.3773, allocations: 1.584 MB / 457 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01118/0.3885, allocations: 6.293 MB / 463.3 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.39, allocations: 0.7909 MB / 464.1 MB, free: 7.164 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.391, allocations: 0.5439 MB / 464.6 MB, free: 6.895 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002519/0.3913, allocations: 121.5 kB / 464.8 MB, free: 6.785 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.3913, allocations: 39 kB / 464.8 MB, free: 6.742 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 3.016e-06/0.3913, allocations: 0 / 464.8 MB, free: 6.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01478/0.4061, allocations: 5.852 MB / 470.6 MB, free: 3.438 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.88e-05/0.4061, allocations: 69.02 kB / 470.7 MB, free: 3.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/0.408, allocations: 1.144 MB / 471.9 MB, free: 2.734 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.4082, allocations: 42.58 kB / 471.9 MB, free: 2.691 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006832/0.4088, allocations: 0.7956 MB / 472.7 MB, free: 1.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003268/0.4092, allocations: 319.6 kB / 473 MB, free: 1.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003934/0.4096, allocations: 206.9 kB / 473.2 MB, free: 1.469 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.4097, allocations: 353.9 kB / 473.6 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008487/0.4106, allocations: 0.5413 MB / 474.1 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/0.4117, allocations: 0.8854 MB / 475 MB, free: 15.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002137/0.4139, allocations: 1.527 MB / 476.5 MB, free: 13.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.4139, allocations: 4 kB / 476.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=142) (initialization): time 0.003872/0.4177, allocations: 2.044 MB / 478.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.4178, allocations: 12 kB / 478.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.4178, allocations: 11.94 kB / 478.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/0.4194, allocations: 0.5527 MB / 479.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009126/0.4203, allocations: 239.6 kB / 479.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009575/0.4299, allocations: 8.648 MB / 488 MB, free: 1.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.4312, allocations: 71.83 kB / 488.1 MB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/0.4313, allocations: 52 kB / 488.1 MB, free: 1.645 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.001051/0.4324, allocations: 0.517 MB / 488.7 MB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002936/0.4327, allocations: 127.2 kB / 488.8 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003344/0.436, allocations: 1.767 MB / 490.5 MB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.436, allocations: 8 kB / 490.6 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.436, allocations: 4 kB / 490.6 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.436, allocations: 3.984 kB / 490.6 MB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007533/0.4436, allocations: 3.73 MB / 494.3 MB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.4436, allocations: 7.984 kB / 494.3 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005636/0.4441, allocations: 128.1 kB / 494.4 MB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001703/0.4458, allocations: 0.5862 MB / 495 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-05/0.4459, allocations: 23.98 kB / 495 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009322/0.4552, allocations: 7.715 MB / 0.491 GB, free: 2.496 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.4552, allocations: 4 kB / 0.491 GB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004269/0.4595, allocations: 2.477 MB / 0.4934 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008622/0.4604, allocations: 328.1 kB / 0.4937 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000189/0.4606, allocations: 23.94 kB / 0.4937 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007061/0.4613, allocations: 52.81 kB / 0.4938 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/0.4615, allocations: 68.56 kB / 0.4938 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.92e-05/0.4615, allocations: 27.98 kB / 0.4939 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001327/0.4629, allocations: 0.7856 MB / 0.4946 GB, free: 14.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4629, allocations: 0 / 0.4946 GB, free: 14.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001575/0.4645, allocations: 380 kB / 0.495 GB, free: 14.3 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.004706/0.4692, allocations: 3.113 MB / 0.498 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003799/0.473, allocations: 2.078 MB / 0.5001 GB, free: 8.953 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.473, allocations: 0 / 0.5001 GB, free: 8.953 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002275/0.4752, allocations: 1.264 MB / 0.5013 GB, free: 7.629 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002162/0.4774, allocations: 383.7 kB / 0.5017 GB, free: 7.273 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02359/0.501, allocations: 13.66 MB / 0.515 GB, free: 9.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.5023, allocations: 1.471 MB / 0.5164 GB, free: 7.57 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009001/0.5032, allocations: 259.1 kB / 0.5167 GB, free: 7.312 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009081/0.5041, allocations: 0.5657 MB / 0.5172 GB, free: 6.746 MB / 430.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5041, allocations: 0 / 0.5172 GB, free: 6.746 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08881/0.5929, allocations: 35.4 MB / 0.5518 GB, free: 3.746 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.84/17.43, allocations: 4 kB / 0.5518 GB, free: 3.742 MB / 462.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DCBraking.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.087884164997377] 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.533712339994963 17.558363194 17.192846848 Calling exit ...