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.DCSE_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.001654/0.001654, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.002041/0.002041, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.45/1.45, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.DCSE_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_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.002029/0.002029, allocations: 67.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1061, allocations: 53.32 MB / 427 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.2147/0.3207, allocations: 8.138 MB / 435.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004645/0.3254, allocations: 2.669 MB / 437.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001113/0.3265, allocations: 32 kB / 437.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001856/0.3283, allocations: 0.5693 MB / 438.4 MB, free: 5.664 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00199/0.3303, allocations: 0.4929 MB / 438.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006893/0.331, allocations: 251.3 kB / 439.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002038/0.3331, allocations: 1.481 MB / 440.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006945/0.3337, allocations: 407.1 kB / 441 MB, free: 4.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.3349, allocations: 0.5782 MB / 441.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008981/0.3358, allocations: 0.5935 MB / 442.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000252/0.336, allocations: 138.1 kB / 442.3 MB, free: 3.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004861/0.3365, allocations: 175 kB / 442.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001884/0.3367, allocations: 283.4 kB / 442.8 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007029/0.3374, allocations: 0.6623 MB / 443.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002827/0.3402, allocations: 1.731 MB / 445.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3402, allocations: 0.5625 kB / 445.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3402, allocations: 0 / 445.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.056e-05/0.3403, allocations: 0.5 kB / 445.2 MB, free: 2.527 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003287/0.3436, allocations: 1.474 MB / 446.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.3436, allocations: 14.56 kB / 446.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001866/0.3438, allocations: 152.1 kB / 446.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007379/0.3445, allocations: 194.5 kB / 447 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001465/0.346, allocations: 0.7481 MB / 447.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.142e-05/0.3461, allocations: 73.47 kB / 447.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.3462, allocations: 102.3 kB / 447.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.3479, allocations: 0.9349 MB / 448.9 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/0.3479, allocations: 6.672 kB / 448.9 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.557e-05/0.348, allocations: 44.16 kB / 448.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.348, allocations: 24.44 kB / 448.9 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.3493, allocations: 0.6321 MB / 449.6 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00659/0.3559, allocations: 3.9 MB / 453.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007761/0.3567, allocations: 416.3 kB / 453.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006524/0.3573, allocations: 255.2 kB / 454.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.3573, allocations: 4.578 kB / 454.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.518e-05/0.3574, allocations: 38.61 kB / 454.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 3.386e-06/0.3574, allocations: 7.375 kB / 454.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.003265/0.3607, allocations: 1.403 MB / 455.6 MB, free: 12.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.798e-05/0.3607, allocations: 82.89 kB / 455.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.362, allocations: 0.826 MB / 456.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.929e-05/0.3621, allocations: 36.45 kB / 456.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004197/0.3625, allocations: 0.5647 MB / 457.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.3626, allocations: 169.4 kB / 457.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.3628, allocations: 135.6 kB / 457.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.363, allocations: 332.7 kB / 457.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003388/0.3633, allocations: 165.2 kB / 457.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005692/0.3639, allocations: 461.7 kB / 458.3 MB, free: 10.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009666/0.3649, allocations: 0.6654 MB / 459 MB, free: 9.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.3649, allocations: 2.531 kB / 459 MB, free: 9.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001501/0.3664, allocations: 0.7626 MB / 459.8 MB, free: 9.234 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.3664, allocations: 10.09 kB / 459.8 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.3664, allocations: 9.25 kB / 459.8 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.3667, allocations: 97.75 kB / 459.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005035/0.3672, allocations: 150.8 kB / 460 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002801/0.37, allocations: 3.136 MB / 463.1 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008036/0.3708, allocations: 37.72 kB / 463.2 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.109e-05/0.3709, allocations: 35.56 kB / 463.2 MB, free: 6.02 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004658/0.3714, allocations: 264.8 kB / 463.5 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.3715, allocations: 89.16 kB / 463.6 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.3726, allocations: 498.9 kB / 464.1 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3726, allocations: 5.859 kB / 464.1 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3726, allocations: 2.438 kB / 464.1 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3726, allocations: 0 / 464.1 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002603/0.3752, allocations: 1.435 MB / 465.5 MB, free: 4.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.3752, allocations: 6.156 kB / 465.5 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.3755, allocations: 66.06 kB / 465.6 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002289/0.3757, allocations: 73.08 kB / 465.6 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.3758, allocations: 7.562 kB / 465.6 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002684/0.3784, allocations: 3.132 MB / 468.8 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.3784, allocations: 3.125 kB / 468.8 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.38, allocations: 0.7722 MB / 469.6 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005234/0.3805, allocations: 211.1 kB / 469.8 MB, free: 444 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.3806, allocations: 8.688 kB / 469.8 MB, free: 440 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004627/0.3811, allocations: 25.92 kB / 469.8 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.899e-05/0.3812, allocations: 31.08 kB / 469.8 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.908e-05/0.3812, allocations: 22.25 kB / 469.8 MB, free: 400 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009708/0.3822, allocations: 0.5604 MB / 470.4 MB, free: 72 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3822, allocations: 1.312 kB / 470.4 MB, free: 72 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.00124/0.3834, allocations: 207.8 kB / 470.6 MB, free: 48 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * 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,5,100.0%), (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.002032/0.3855, allocations: 1.333 MB / 471.9 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.387, allocations: 0.6745 MB / 472.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.387, allocations: 4.125 kB / 472.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007274/0.3877, allocations: 436.4 kB / 473 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.3891, allocations: 234.1 kB / 473.3 MB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01339/0.4025, allocations: 7.309 MB / 480.6 MB, free: 9.152 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006822/0.4031, allocations: 1.01 MB / 481.6 MB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004956/0.4036, allocations: 106.1 kB / 481.7 MB, free: 8.262 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004923/0.4041, allocations: 375 kB / 482.1 MB, free: 7.941 MB / 382.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4041, allocations: 0 / 482.1 MB, free: 7.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06221/0.4663, allocations: 19.25 MB / 0.4896 GB, free: 5.059 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.94, allocations: 7.984 kB / 0.4896 GB, free: 5.051 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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_DCSE_Start.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.531850267201662] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcse.la.i', 'loadInertia.phi', 'loadInertia.w'] 12.033308479003608 12.058650653 11.713416106 Calling exit ...