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.001446/0.001446, allocations: 110.5 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.001556/0.001556, allocations: 212.3 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.5/1.5, 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.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.00192/0.00192, allocations: 63.89 kB / 378.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3052, allocations: 53.36 MB / 431.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008021/0.3133, allocations: 5.914 MB / 437.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005055/0.3183, allocations: 2.758 MB / 440.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006596/0.319, allocations: 31.81 kB / 440.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001726/0.3207, allocations: 0.7736 MB / 441.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001191/0.3219, allocations: 0.5594 MB / 441.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001226/0.3231, allocations: 0.5159 MB / 442.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001876/0.325, allocations: 1.606 MB / 444.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000643/0.3256, allocations: 411.1 kB / 444.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007592/0.3264, allocations: 0.6306 MB / 445.1 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009265/0.3273, allocations: 0.7705 MB / 445.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001783/0.3275, allocations: 136 kB / 446 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005008/0.328, allocations: 212 kB / 446.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007071/0.3287, allocations: 0.6465 MB / 446.8 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008539/0.3296, allocations: 0.9321 MB / 447.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002708/0.3323, allocations: 2.495 MB / 450.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3323, allocations: 0 / 450.3 MB, free: 4.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3323, allocations: 4 kB / 450.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.22e-05/0.3323, allocations: 0 / 450.3 MB, free: 4.43 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.005208/0.3375, allocations: 2.58 MB / 452.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.3376, allocations: 12.03 kB / 452.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001814/0.3377, allocations: 139.5 kB / 453 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003834/0.3381, allocations: 231.5 kB / 453.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002563/0.3407, allocations: 1.506 MB / 454.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001586/0.3409, allocations: 151.4 kB / 454.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.341, allocations: 84 kB / 455 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/0.3429, allocations: 1.1 MB / 456.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.3429, allocations: 3.984 kB / 456.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.343, allocations: 40 kB / 456.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.343, allocations: 24 kB / 456.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.3444, allocations: 0.7182 MB / 456.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007341/0.3518, allocations: 4.538 MB / 461.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.353, allocations: 0.5129 MB / 461.9 MB, free: 8.418 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007753/0.3538, allocations: 372.8 kB / 462.3 MB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.758e-05/0.3538, allocations: 11.94 kB / 462.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.203e-05/0.3539, allocations: 38.56 kB / 462.3 MB, free: 7.996 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.994e-06/0.3539, allocations: 0 / 462.3 MB, free: 7.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001838/0.3557, allocations: 0.8249 MB / 463.1 MB, free: 7.164 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002513/0.356, allocations: 431.2 kB / 463.6 MB, free: 6.645 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00431/0.3603, allocations: 2.764 MB / 466.3 MB, free: 3.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.702e-05/0.3604, allocations: 37.7 kB / 466.4 MB, free: 3.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008895/0.3613, allocations: 0.8953 MB / 467.3 MB, free: 2.895 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.3614, allocations: 166.6 kB / 467.4 MB, free: 2.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002275/0.3617, allocations: 122.2 kB / 467.5 MB, free: 2.605 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.3618, allocations: 330 kB / 467.9 MB, free: 2.277 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005757/0.3624, allocations: 257.2 kB / 468.1 MB, free: 2.027 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008056/0.3632, allocations: 0.5324 MB / 468.6 MB, free: 1.375 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.3643, allocations: 0.6133 MB / 469.3 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.3643, allocations: 0 / 469.3 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001819/0.3661, allocations: 0.8697 MB / 470.1 MB, free: 15.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/0.3661, allocations: 8 kB / 470.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.3661, allocations: 4 kB / 470.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.464e-05/0.3662, allocations: 15.98 kB / 470.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006152/0.3668, allocations: 160 kB / 470.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.3668, allocations: 15.94 kB / 470.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/0.3679, allocations: 155.4 kB / 470.5 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.664e-05/0.368, allocations: 32 kB / 470.5 MB, free: 15.43 MB / 382.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.001/0.369, allocations: 0.56 MB / 471.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.3693, allocations: 190.8 kB / 471.3 MB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.3708, allocations: 0.7001 MB / 472 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.3708, allocations: 15.92 kB / 472 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.3708, allocations: 0 / 472 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3708, allocations: 0 / 472 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003513/0.3743, allocations: 2.097 MB / 474.1 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.3743, allocations: 4.094 kB / 474.1 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005018/0.3748, allocations: 111.8 kB / 474.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/0.3748, allocations: 4 kB / 474.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.343e-05/0.3748, allocations: 12 kB / 474.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.3749, allocations: 4 kB / 474.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.3749, allocations: 0 / 474.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/0.3767, allocations: 1.052 MB / 475.3 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007428/0.3775, allocations: 342.6 kB / 475.6 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/0.3777, allocations: 12 kB / 475.6 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009628/0.3786, allocations: 135.8 kB / 475.7 MB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003201/0.3789, allocations: 163.7 kB / 475.9 MB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.315e-05/0.379, allocations: 20.12 kB / 475.9 MB, free: 9.902 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002886/0.3819, allocations: 1.971 MB / 477.9 MB, free: 7.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3819, allocations: 0 / 477.9 MB, free: 7.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001022/0.3829, allocations: 319.3 kB / 478.2 MB, free: 7.598 MB / 382.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.003819/0.3867, allocations: 1.974 MB / 480.2 MB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.388, allocations: 0.577 MB / 480.7 MB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.388, allocations: 3.938 kB / 480.8 MB, free: 5.195 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006501/0.3886, allocations: 340.5 kB / 481.1 MB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.3902, allocations: 320.2 kB / 481.4 MB, free: 4.551 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02815/0.4183, allocations: 17.25 MB / 498.6 MB, free: 2.918 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/0.4196, allocations: 1.44 MB / 0.4884 GB, free: 1.445 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001146/0.4207, allocations: 299.1 kB / 0.4887 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/0.422, allocations: 0.7062 MB / 0.4893 GB, free: 452 kB / 398.1 MB Notification: Performance of SimCode: time 1.583e-06/0.422, allocations: 0 / 0.4893 GB, free: 452 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09075/0.5127, allocations: 39.52 MB / 0.5279 GB, free: 9.176 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.16, allocations: 7.938 kB / 0.5279 GB, free: 9.168 MB / 446.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: 15.230855071917176] 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'] 12.322326907888055 12.589363367 12.254376376 Calling exit ...