Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.001711/0.001711, allocations: 109 kB / 21.23 MB, free: 0.6641 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.002352/0.002352, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.546/1.546, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",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.001961/0.001961, allocations: 68.77 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3321, allocations: 53.37 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009454/0.3415, allocations: 7.217 MB / 439.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004757/0.3463, allocations: 2.391 MB / 441.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008789/0.3471, allocations: 23.88 kB / 441.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.3486, allocations: 0.5165 MB / 442.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001127/0.3498, allocations: 417 kB / 442.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004566/0.3502, allocations: 203.7 kB / 442.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.3516, allocations: 1.202 MB / 443.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005805/0.3522, allocations: 341.6 kB / 444.2 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007023/0.3529, allocations: 482.2 kB / 444.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006262/0.3536, allocations: 0.4899 MB / 445.2 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000141/0.3537, allocations: 116 kB / 445.3 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000309/0.354, allocations: 156 kB / 445.5 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.3542, allocations: 227.2 kB / 445.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005317/0.3547, allocations: 0.5482 MB / 446.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001686/0.3564, allocations: 1.436 MB / 447.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3564, allocations: 0 / 447.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3564, allocations: 0 / 447.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.3564, allocations: 0 / 447.7 MB, free: 7.047 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002058/0.3585, allocations: 1.202 MB / 448.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.3585, allocations: 8.031 kB / 448.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001766/0.3587, allocations: 131 kB / 449 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005556/0.3593, allocations: 148.2 kB / 449.1 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.3604, allocations: 0.5765 MB / 449.7 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.653e-05/0.3605, allocations: 70.31 kB / 449.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.3606, allocations: 84.08 kB / 449.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.362, allocations: 0.7716 MB / 450.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.319e-05/0.362, allocations: 11.94 kB / 450.6 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.97e-05/0.3621, allocations: 32 kB / 450.7 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.3621, allocations: 16 kB / 450.7 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.3632, allocations: 0.5192 MB / 451.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004601/0.3678, allocations: 3.278 MB / 454.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00055/0.3684, allocations: 214.5 kB / 454.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002357/0.3686, allocations: 104.8 kB / 454.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.02e-05/0.3686, allocations: 7.984 kB / 454.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.3687, allocations: 38.55 kB / 454.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=25): time 1.723e-06/0.3687, allocations: 0 / 454.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002092/0.3708, allocations: 0.9036 MB / 455.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.3708, allocations: 81.34 kB / 455.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.3719, allocations: 0.7389 MB / 456.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.3719, allocations: 29.7 kB / 456.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003988/0.3723, allocations: 0.5033 MB / 457.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.277e-05/0.3724, allocations: 111.1 kB / 457.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.3725, allocations: 114.2 kB / 457.3 MB, free: 12.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001942/0.3727, allocations: 374.8 kB / 457.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002732/0.373, allocations: 129.2 kB / 457.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/0.3735, allocations: 426.1 kB / 458.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008376/0.3744, allocations: 0.5714 MB / 458.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3744, allocations: 4 kB / 458.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001119/0.3755, allocations: 0.6233 MB / 459.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.3755, allocations: 11.98 kB / 459.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.3755, allocations: 12 kB / 459.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/0.3757, allocations: 28.86 kB / 459.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004361/0.3761, allocations: 143.7 kB / 459.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.3774, allocations: 1.287 MB / 460.9 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004406/0.3778, allocations: 44.08 kB / 461 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/0.3778, allocations: 28 kB / 461 MB, free: 8.906 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003588/0.3782, allocations: 233.6 kB / 461.2 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.3783, allocations: 75.53 kB / 461.3 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000683/0.379, allocations: 321.4 kB / 461.6 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.379, allocations: 8 kB / 461.6 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.379, allocations: 0 / 461.6 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.379, allocations: 0 / 461.6 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.3808, allocations: 1.068 MB / 462.7 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3808, allocations: 4.047 kB / 462.7 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00026/0.381, allocations: 59.89 kB / 462.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.258e-05/0.3811, allocations: 24.84 kB / 462.8 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.3811, allocations: 8 kB / 462.8 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001158/0.3823, allocations: 1.279 MB / 464 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3823, allocations: 0 / 464 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009302/0.3832, allocations: 0.5492 MB / 464.6 MB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.3834, allocations: 99.53 kB / 464.7 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.55e-05/0.3835, allocations: 11.98 kB / 464.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003037/0.3838, allocations: 19.98 kB / 464.7 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.3839, allocations: 31.84 kB / 464.8 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.3839, allocations: 8 kB / 464.8 MB, free: 4.863 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007398/0.3846, allocations: 0.5069 MB / 465.3 MB, free: 4.359 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3846, allocations: 0 / 465.3 MB, free: 4.359 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006923/0.3853, allocations: 159.9 kB / 465.4 MB, free: 4.203 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001384/0.3867, allocations: 1.121 MB / 466.5 MB, free: 3.031 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009748/0.3877, allocations: 450.4 kB / 467 MB, free: 2.582 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3877, allocations: 3.938 kB / 467 MB, free: 2.578 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003836/0.3881, allocations: 238.4 kB / 467.2 MB, free: 2.332 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008995/0.389, allocations: 191 kB / 467.4 MB, free: 2.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009437/0.3984, allocations: 6.284 MB / 473.7 MB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006661/0.3991, allocations: 0.9411 MB / 474.6 MB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000365/0.3995, allocations: 86.03 kB / 474.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003953/0.3998, allocations: 303.3 kB / 475 MB, free: 10.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3998, allocations: 0 / 475 MB, free: 10.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05255/0.4524, allocations: 15.92 MB / 490.9 MB, free: 10.4 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.7, allocations: 0 / 490.9 MB, free: 10.4 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --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_DCMachines_DCPM_Start.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.405412587337196] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcpm.la.i', 'loadInertia.phi', 'loadInertia.w'] 11.801682790275663 11.825355329 11.464938972 Calling exit ...