Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008642/0.0008642, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000972/0.000972, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9072/0.9072, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.198e-06/4.198e-06, allocations: 4 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.782e-05, allocations: 6.219 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006288/0.006315, allocations: 5.219 MB / 329.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003507/0.009822, allocations: 2.613 MB / 332.4 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005786/0.0104, allocations: 27.81 kB / 332.4 MB, free: 8.059 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.01173, allocations: 0.7541 MB / 333.2 MB, free: 7.301 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001032/0.01277, allocations: 0.5706 MB / 333.7 MB, free: 6.727 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009607/0.01373, allocations: 0.5154 MB / 334.3 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001615/0.01534, allocations: 1.652 MB / 335.9 MB, free: 4.555 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008266/0.01617, allocations: 379 kB / 336.3 MB, free: 4.164 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009656/0.01713, allocations: 0.8926 MB / 337.2 MB, free: 3.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008228/0.01796, allocations: 0.6351 MB / 337.8 MB, free: 2.629 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.01811, allocations: 136 kB / 337.9 MB, free: 2.496 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003129/0.01843, allocations: 207.9 kB / 338.1 MB, free: 2.293 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003625/0.01879, allocations: 0.6465 MB / 338.8 MB, free: 1.645 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004667/0.01926, allocations: 0.5687 MB / 339.4 MB, free: 1.074 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001752/0.02101, allocations: 2.473 MB / 341.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.02101, allocations: 0 / 341.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.02102, allocations: 4 kB / 341.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.548e-05/0.02108, allocations: 0 / 341.8 MB, free: 14.59 MB / 314.7 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.003909/0.02499, allocations: 2.552 MB / 344.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.02504, allocations: 12.03 kB / 344.4 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001317/0.02517, allocations: 139.5 kB / 344.5 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002802/0.02545, allocations: 239.4 kB / 344.8 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.02713, allocations: 1.498 MB / 346.3 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.02724, allocations: 151.7 kB / 346.4 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.577e-05/0.02732, allocations: 88.25 kB / 346.5 MB, free: 9.797 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.02873, allocations: 1.715 MB / 348.2 MB, free: 7.859 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.02875, allocations: 0 / 348.2 MB, free: 7.859 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.813e-05/0.0288, allocations: 36 kB / 348.3 MB, free: 7.824 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.02882, allocations: 28 kB / 348.3 MB, free: 7.797 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009349/0.02975, allocations: 0.7143 MB / 349 MB, free: 7.082 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00508/0.03484, allocations: 4.17 MB / 353.2 MB, free: 2.742 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000852/0.03569, allocations: 0.5272 MB / 353.7 MB, free: 2.203 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005028/0.03619, allocations: 358 kB / 354 MB, free: 1.852 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.13e-05/0.03624, allocations: 4 kB / 354 MB, free: 1.848 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.03628, allocations: 50.56 kB / 354.1 MB, free: 1.789 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 3.176e-06/0.03628, allocations: 4 kB / 354.1 MB, free: 1.785 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001159/0.03744, allocations: 0.8171 MB / 354.9 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/0.0376, allocations: 423.2 kB / 355.3 MB, free: 460 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.04055, allocations: 2.775 MB / 358.1 MB, free: 13.63 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.25e-05/0.0406, allocations: 37.7 kB / 358.1 MB, free: 13.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005078/0.04111, allocations: 0.8875 MB / 359 MB, free: 12.69 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.04121, allocations: 170.5 kB / 359.2 MB, free: 12.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.04136, allocations: 118.3 kB / 359.3 MB, free: 12.41 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.924e-05/0.04145, allocations: 341.8 kB / 359.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.04178, allocations: 253.2 kB / 359.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005797/0.04236, allocations: 0.8839 MB / 360.8 MB, free: 10.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006628/0.04303, allocations: 0.6221 MB / 361.4 MB, free: 10.03 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.04303, allocations: 0 / 361.4 MB, free: 10.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00108/0.04411, allocations: 0.8634 MB / 362.3 MB, free: 9.156 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.04413, allocations: 8 kB / 362.3 MB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.04414, allocations: 4 kB / 362.3 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.04416, allocations: 12 kB / 362.3 MB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.04449, allocations: 160.1 kB / 362.4 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.04451, allocations: 11.94 kB / 362.5 MB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005679/0.04507, allocations: 167.3 kB / 362.6 MB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.04512, allocations: 24 kB / 362.6 MB, free: 8.777 MB / 330.7 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.0005995/0.04572, allocations: 0.5561 MB / 363.2 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/0.04588, allocations: 194.7 kB / 363.4 MB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008457/0.04672, allocations: 0.6963 MB / 364.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.04673, allocations: 8 kB / 364.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.04674, allocations: 0 / 364.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.583e-06/0.04674, allocations: 3.984 kB / 364.1 MB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.04914, allocations: 1.891 MB / 366 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.04915, allocations: 0 / 366 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002689/0.04941, allocations: 112 kB / 366.1 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.04942, allocations: 4 kB / 366.1 MB, free: 5.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.04944, allocations: 11.94 kB / 366.1 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.04945, allocations: 4 kB / 366.1 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.04945, allocations: 0 / 366.1 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.05055, allocations: 1.048 MB / 367.2 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004514/0.051, allocations: 350.6 kB / 367.5 MB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001104/0.05111, allocations: 19.94 kB / 367.5 MB, free: 3.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005213/0.05163, allocations: 143.8 kB / 367.7 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002205/0.05185, allocations: 151.7 kB / 367.8 MB, free: 3.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.05188, allocations: 19.98 kB / 367.8 MB, free: 3.465 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001917/0.0538, allocations: 1.967 MB / 369.8 MB, free: 1.477 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.0538, allocations: 0 / 369.8 MB, free: 1.477 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006479/0.05445, allocations: 311.4 kB / 370.1 MB, free: 1.172 MB / 330.7 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.002486/0.05693, allocations: 2.013 MB / 372.1 MB, free: 15.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000798/0.05773, allocations: 0.574 MB / 372.7 MB, free: 14.76 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.05773, allocations: 4 kB / 372.7 MB, free: 14.76 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003943/0.05813, allocations: 331.4 kB / 373 MB, free: 14.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008804/0.05901, allocations: 316.2 kB / 373.3 MB, free: 14.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02207/0.08108, allocations: 17.37 MB / 390.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006129/0.08169, allocations: 0.8457 MB / 391.5 MB, free: 11.49 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006576/0.08235, allocations: 295.1 kB / 391.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006615/0.08301, allocations: 0.7073 MB / 392.5 MB, free: 10.49 MB / 362.7 MB Notification: Performance of SimCode: time 1.643e-06/0.08301, allocations: 3.938 kB / 392.5 MB, free: 10.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06381/0.1468, allocations: 41.82 MB / 434.4 MB, free: 0.9375 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.052/8.198, allocations: 6.953 kB / 434.4 MB, free: 0.9336 MB / 394.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.242223627865314] 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'] 8.318030407652259 8.325655117 8.302776436 Calling exit ...