Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.001335/0.001335, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 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.001733/0.001733, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 258.3 MB, free: 8.062 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-beta.om/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_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003148/0.003148, allocations: 68.77 kB / 378.6 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3478, allocations: 53.36 MB / 432 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01264/0.3605, allocations: 9.816 MB / 441.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007337/0.3678, allocations: 3.794 MB / 445.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001483/0.3693, allocations: 59.62 kB / 445.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002006/0.3713, allocations: 0.7105 MB / 446.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002915/0.3742, allocations: 0.9323 MB / 447.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.3754, allocations: 471.1 kB / 447.7 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003844/0.3793, allocations: 2.677 MB / 450.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001703/0.381, allocations: 1.109 MB / 451.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002178/0.3832, allocations: 1.238 MB / 452.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002761/0.3859, allocations: 1.541 MB / 454.3 MB, free: 400 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005813/0.3865, allocations: 315.9 kB / 454.6 MB, free: 84 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001492/0.388, allocations: 0.6283 MB / 455.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001104/0.3891, allocations: 1.032 MB / 456.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0018/0.3909, allocations: 1.493 MB / 457.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006221/0.3971, allocations: 4.32 MB / 462.1 MB, free: 8.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3971, allocations: 0 / 462.1 MB, free: 8.582 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3971, allocations: 0 / 462.1 MB, free: 8.582 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001379/0.3973, allocations: 0 / 462.1 MB, free: 8.582 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007639/0.4049, allocations: 3.193 MB / 465.3 MB, free: 5.336 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.405, allocations: 8.031 kB / 465.3 MB, free: 5.328 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005588/0.4055, allocations: 355.4 kB / 465.6 MB, free: 4.965 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001234/0.4067, allocations: 374.9 kB / 466 MB, free: 4.598 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003394/0.4101, allocations: 1.673 MB / 467.7 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.4103, allocations: 156.1 kB / 467.8 MB, free: 2.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000368/0.4106, allocations: 208 kB / 468 MB, free: 2.527 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004939/0.4156, allocations: 2.731 MB / 470.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.525e-05/0.4156, allocations: 7.953 kB / 470.8 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001934/0.4158, allocations: 87.98 kB / 470.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.416, allocations: 96.03 kB / 470.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004409/0.4204, allocations: 2.299 MB / 473.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01484/0.4352, allocations: 8.078 MB / 481.3 MB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003055/0.4383, allocations: 1.322 MB / 482.6 MB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002118/0.4404, allocations: 1.026 MB / 483.7 MB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002264/0.4406, allocations: 48.95 kB / 483.7 MB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/0.4407, allocations: 51.5 kB / 483.8 MB, free: 2.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.747e-06/0.4407, allocations: 0 / 483.8 MB, free: 2.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01417/0.4548, allocations: 6.116 MB / 489.9 MB, free: 12.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.4549, allocations: 64.72 kB / 489.9 MB, free: 12.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003471/0.4584, allocations: 2.177 MB / 492.1 MB, free: 9.992 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001908/0.4586, allocations: 53.64 kB / 492.2 MB, free: 9.934 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009885/0.4595, allocations: 1.157 MB / 493.3 MB, free: 8.766 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005154/0.4601, allocations: 483.8 kB / 493.8 MB, free: 8.289 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004498/0.4605, allocations: 239.6 kB / 494 MB, free: 8.051 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.4607, allocations: 357.9 kB / 494.4 MB, free: 7.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/0.4623, allocations: 0.7613 MB / 495.1 MB, free: 6.934 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001611/0.4639, allocations: 1.017 MB / 496.2 MB, free: 5.828 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003185/0.4671, allocations: 1.861 MB / 498 MB, free: 3.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.4671, allocations: 0 / 498 MB, free: 3.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00572/0.4728, allocations: 2.75 MB / 0.489 GB, free: 1.105 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.4728, allocations: 8 kB / 0.489 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.4729, allocations: 8.25 kB / 0.4891 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002182/0.475, allocations: 0.785 MB / 0.4898 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.4762, allocations: 267.6 kB / 0.4901 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01325/0.4895, allocations: 9.406 MB / 0.4993 GB, free: 6.398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.491, allocations: 91.89 kB / 0.4993 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/0.4912, allocations: 52.06 kB / 0.4994 GB, free: 6.258 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001411/0.4926, allocations: 0.7512 MB / 0.5001 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004591/0.4931, allocations: 210.6 kB / 0.5003 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0048/0.4979, allocations: 2.481 MB / 0.5028 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.41e-05/0.4979, allocations: 16 kB / 0.5028 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-05/0.4979, allocations: 7.984 kB / 0.5028 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.4979, allocations: 7.969 kB / 0.5028 GB, free: 2.758 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00952/0.5074, allocations: 4.914 MB / 0.5076 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.5074, allocations: 4.156 kB / 0.5076 GB, free: 13.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.5085, allocations: 215.7 kB / 0.5078 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001904/0.5104, allocations: 0.655 MB / 0.5084 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.5105, allocations: 27.98 kB / 0.5085 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/0.5208, allocations: 8.417 MB / 0.5167 GB, free: 4.098 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.5208, allocations: 4.031 kB / 0.5167 GB, free: 4.094 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006672/0.5275, allocations: 3.53 MB / 0.5201 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.5286, allocations: 378.5 kB / 0.5205 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/0.5289, allocations: 31.94 kB / 0.5205 GB, free: 116 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009509/0.5298, allocations: 83.91 kB / 0.5206 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003408/0.5302, allocations: 108.7 kB / 0.5207 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.5303, allocations: 39.97 kB / 0.5207 GB, free: 15.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002378/0.5326, allocations: 1.536 MB / 0.5222 GB, free: 14.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5326, allocations: 4 kB / 0.5222 GB, free: 14.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002035/0.5347, allocations: 0.5235 MB / 0.5228 GB, free: 13.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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 {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008669/0.5433, allocations: 4.459 MB / 0.5271 GB, free: 9.418 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004793/0.5481, allocations: 2.303 MB / 0.5294 GB, free: 7.094 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.5481, allocations: 4.125 kB / 0.5294 GB, free: 7.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002923/0.5511, allocations: 1.47 MB / 0.5308 GB, free: 5.574 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002598/0.5537, allocations: 454 kB / 0.5312 GB, free: 5.133 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2397/0.7934, allocations: 21.16 MB / 0.5519 GB, free: 96.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001298/0.7947, allocations: 1.971 MB / 0.5538 GB, free: 94.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001052/0.7957, allocations: 389.9 kB / 0.5542 GB, free: 94.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009255/0.7966, allocations: 0.9825 MB / 0.5552 GB, free: 93.54 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.7966, allocations: 1.781 kB / 0.5552 GB, free: 93.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0981/0.8947, allocations: 52.82 MB / 0.6067 GB, free: 41.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.76/24.65, allocations: 0 / 0.6067 GB, free: 41.23 MB / 446.1 MB " [Timeout remaining time 635] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.44984224298969] Failed to read output from testmodel.py, exit status != 0: ['time', 'PI.x', 'aimc.is[1]', 'aimc.is[2]', 'aimc.idq_rr[1]', 'aimc.idq_rr[2]', 'aimc.idq_sr[1]', 'aimc.idq_sr[2]', 'loadInertia.w', 'powerSensor.flange_a.phi'] 24.884166997857392 24.902971977 24.501906574 Calling exit ...