Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.001305/0.001305, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.001397/0.001397, allocations: 215.2 kB / 21.46 MB, free: 1.566 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.42/1.42, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",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.001966/0.001966, allocations: 67.84 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1026, allocations: 53.33 MB / 427 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.2069/0.3095, allocations: 5.864 MB / 432.9 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00398/0.3134, allocations: 2.759 MB / 435.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005469/0.314, allocations: 32.78 kB / 435.7 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001461/0.3154, allocations: 0.7632 MB / 436.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001181/0.3166, allocations: 0.5596 MB / 437 MB, free: 6.926 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.3178, allocations: 0.5107 MB / 437.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001892/0.3197, allocations: 1.595 MB / 439.1 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006111/0.3203, allocations: 432.6 kB / 439.5 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008644/0.3212, allocations: 0.6409 MB / 440.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008362/0.322, allocations: 0.769 MB / 440.9 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001838/0.3222, allocations: 133.1 kB / 441 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004072/0.3226, allocations: 208.4 kB / 441.2 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005466/0.3232, allocations: 0.6476 MB / 441.9 MB, free: 5.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007431/0.3239, allocations: 0.9199 MB / 442.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003235/0.3271, allocations: 2.507 MB / 445.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3271, allocations: 0.9375 kB / 445.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3272, allocations: 0 / 445.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.283e-05/0.3272, allocations: 5.344 kB / 445.3 MB, free: 3.457 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.006071/0.3333, allocations: 2.649 MB / 448 MB, free: 1.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3333, allocations: 13.66 kB / 448 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001751/0.3335, allocations: 140.1 kB / 448.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004261/0.3339, allocations: 231.5 kB / 448.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002467/0.3364, allocations: 1.571 MB / 449.9 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-05/0.3365, allocations: 101.2 kB / 450 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.3366, allocations: 83.92 kB / 450.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001792/0.3384, allocations: 1.108 MB / 451.2 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.3384, allocations: 0 / 451.2 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.367e-05/0.3385, allocations: 42.78 kB / 451.3 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.3385, allocations: 21.78 kB / 451.3 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.3399, allocations: 0.7166 MB / 452 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008391/0.3483, allocations: 4.595 MB / 456.6 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.3498, allocations: 0.8962 MB / 457.5 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007675/0.3506, allocations: 360.3 kB / 457.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.862e-05/0.3506, allocations: 9.734 kB / 457.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.327e-05/0.3507, allocations: 44.12 kB / 457.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 3.286e-06/0.3507, allocations: 1.125 kB / 457.9 MB, free: 11.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002156/0.3528, allocations: 0.832 MB / 458.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002421/0.3531, allocations: 425.3 kB / 459.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004349/0.3574, allocations: 2.763 MB / 461.9 MB, free: 9.562 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.3575, allocations: 39.11 kB / 461.9 MB, free: 9.523 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008108/0.3583, allocations: 0.8926 MB / 462.8 MB, free: 8.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.3585, allocations: 166.1 kB / 463 MB, free: 8.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.3587, allocations: 124 kB / 463.1 MB, free: 8.531 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3589, allocations: 331.6 kB / 463.4 MB, free: 8.207 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000562/0.3594, allocations: 260.1 kB / 463.7 MB, free: 8.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007777/0.3602, allocations: 0.5357 MB / 464.2 MB, free: 7.605 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.3613, allocations: 0.6159 MB / 464.8 MB, free: 7.156 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.3613, allocations: 1.5 kB / 464.8 MB, free: 7.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002102/0.3634, allocations: 0.8683 MB / 465.7 MB, free: 6.711 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.3635, allocations: 6.5 kB / 465.7 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.3635, allocations: 7.266 kB / 465.7 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.3635, allocations: 9.219 kB / 465.7 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006116/0.3641, allocations: 162.6 kB / 465.9 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.662e-05/0.3641, allocations: 17.06 kB / 465.9 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.3655, allocations: 156.6 kB / 466.1 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-05/0.3656, allocations: 27.06 kB / 466.1 MB, free: 6.574 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001039/0.3666, allocations: 0.5591 MB / 466.7 MB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003952/0.367, allocations: 189.5 kB / 466.8 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001451/0.3685, allocations: 0.6958 MB / 467.5 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.3685, allocations: 10.89 kB / 467.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3685, allocations: 0.75 kB / 467.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3685, allocations: 0 / 467.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003534/0.372, allocations: 2.131 MB / 469.7 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.372, allocations: 1.469 kB / 469.7 MB, free: 4.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005119/0.3725, allocations: 112.2 kB / 469.8 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.3725, allocations: 2.844 kB / 469.8 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.612e-05/0.3726, allocations: 13.19 kB / 469.8 MB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.3726, allocations: 7.844 kB / 469.8 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3726, allocations: 0 / 469.8 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.3745, allocations: 1.053 MB / 470.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007409/0.3752, allocations: 420.9 kB / 471.3 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001953/0.3754, allocations: 15.59 kB / 471.3 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.3765, allocations: 139.9 kB / 471.4 MB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003079/0.3768, allocations: 154.8 kB / 471.6 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.347e-05/0.3769, allocations: 21.64 kB / 471.6 MB, free: 3.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002963/0.3798, allocations: 1.967 MB / 473.6 MB, free: 1.383 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3798, allocations: 0 / 473.6 MB, free: 1.383 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00113/0.3809, allocations: 315.4 kB / 473.9 MB, free: 1.074 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004012/0.385, allocations: 1.978 MB / 475.8 MB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.3863, allocations: 0.5689 MB / 476.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.3863, allocations: 0 / 476.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006556/0.387, allocations: 340.5 kB / 476.7 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.3888, allocations: 317.1 kB / 477.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02868/0.4174, allocations: 17.26 MB / 494.3 MB, free: 12.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/0.4186, allocations: 1.437 MB / 495.8 MB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001044/0.4197, allocations: 287.1 kB / 496 MB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/0.4208, allocations: 0.7062 MB / 496.7 MB, free: 9.965 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4208, allocations: 0 / 496.7 MB, free: 9.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08815/0.509, allocations: 39.15 MB / 0.5233 GB, free: 3.125 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.8, allocations: 7.984 kB / 0.5233 GB, free: 3.117 MB / 430.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.471237595193088] Failed to read output from testmodel.py, exit status != 0: ['time', 'battery1.limIntegrator.y', 'battery2.capacitor[1].v', 'battery2.capacitor[2].v', 'battery2.limIntegrator.y', 'energy1.y', 'energy2.y'] 11.949648625217378 11.972639833 11.640992875 Calling exit ...