Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000856/0.000856, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 157.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9425/0.9425, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.396e-06/3.396e-06, allocations: 0 / 318.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.231e-05/3.571e-05, allocations: 2.281 kB / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007662/0.007698, allocations: 5.159 MB / 323.6 MB, free: 1.059 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00358/0.01128, allocations: 2.45 MB / 326 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004366/0.01171, allocations: 31.81 kB / 326.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001238/0.01295, allocations: 0.7425 MB / 326.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000843/0.0138, allocations: 0.5357 MB / 327.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008366/0.01463, allocations: 0.5163 MB / 327.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001192/0.01582, allocations: 1.636 MB / 329.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005096/0.01633, allocations: 375 kB / 329.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000923/0.01726, allocations: 0.8926 MB / 330.8 MB, free: 9.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005285/0.01779, allocations: 0.6196 MB / 331.4 MB, free: 9.219 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.0179, allocations: 132 kB / 331.5 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002639/0.01816, allocations: 211.8 kB / 331.7 MB, free: 8.883 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003725/0.01854, allocations: 0.6543 MB / 332.4 MB, free: 8.227 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003773/0.01891, allocations: 0.5726 MB / 332.9 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001526/0.02044, allocations: 2.457 MB / 335.4 MB, free: 5.188 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.02044, allocations: 4 kB / 335.4 MB, free: 5.184 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.02045, allocations: 3.938 kB / 335.4 MB, free: 5.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.02046, allocations: 0 / 335.4 MB, free: 5.18 MB / 298.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.003274/0.02374, allocations: 2.534 MB / 337.9 MB, free: 2.602 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.02378, allocations: 12.86 kB / 337.9 MB, free: 2.59 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001282/0.02391, allocations: 143.4 kB / 338.1 MB, free: 2.441 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002315/0.02414, allocations: 235.4 kB / 338.3 MB, free: 2.211 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.0257, allocations: 1.486 MB / 339.8 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.02581, allocations: 147.7 kB / 339.9 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.413e-05/0.02591, allocations: 84.33 kB / 340 MB, free: 460 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.02727, allocations: 1.718 MB / 341.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.02729, allocations: 11.92 kB / 341.8 MB, free: 14.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.683e-05/0.02734, allocations: 36 kB / 341.8 MB, free: 14.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.02736, allocations: 20 kB / 341.8 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008674/0.02822, allocations: 0.7182 MB / 342.5 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004221/0.03245, allocations: 4.158 MB / 346.7 MB, free: 9.395 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007127/0.03316, allocations: 0.5261 MB / 347.2 MB, free: 8.859 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004614/0.03362, allocations: 360.9 kB / 347.6 MB, free: 8.504 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.152e-05/0.03366, allocations: 4 kB / 347.6 MB, free: 8.5 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.03369, allocations: 46.56 kB / 347.6 MB, free: 8.445 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 2.424e-06/0.03369, allocations: 0 / 347.6 MB, free: 8.445 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001065/0.03475, allocations: 0.8326 MB / 348.4 MB, free: 7.605 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.03488, allocations: 415.2 kB / 348.9 MB, free: 7.102 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002255/0.03713, allocations: 2.754 MB / 351.6 MB, free: 4.305 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.03718, allocations: 41.7 kB / 351.6 MB, free: 4.258 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007649/0.03794, allocations: 0.8834 MB / 352.5 MB, free: 3.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.997e-05/0.03803, allocations: 166.6 kB / 352.7 MB, free: 3.203 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.03817, allocations: 122.3 kB / 352.8 MB, free: 3.078 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.561e-05/0.03825, allocations: 333.9 kB / 353.1 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000326/0.03858, allocations: 249.2 kB / 353.4 MB, free: 2.504 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005518/0.03913, allocations: 0.8956 MB / 354.3 MB, free: 1.398 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006311/0.03976, allocations: 0.6181 MB / 354.9 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.03976, allocations: 0 / 354.9 MB, free: 0.6992 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009256/0.04069, allocations: 0.8636 MB / 355.8 MB, free: 15.83 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.04071, allocations: 12.12 kB / 355.8 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.128e-06/0.04072, allocations: 7.984 kB / 355.8 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.04073, allocations: 8 kB / 355.8 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003149/0.04105, allocations: 159.7 kB / 355.9 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.04106, allocations: 8 kB / 356 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004844/0.04154, allocations: 167.3 kB / 356.1 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.68e-05/0.04158, allocations: 28 kB / 356.1 MB, free: 15.45 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.0004608/0.04204, allocations: 0.556 MB / 356.7 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.04218, allocations: 186.8 kB / 356.9 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008149/0.043, allocations: 0.6962 MB / 357.6 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.043, allocations: 4 kB / 357.6 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.04301, allocations: 0 / 357.6 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.04301, allocations: 3.938 kB / 357.6 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002146/0.04516, allocations: 1.894 MB / 359.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.04516, allocations: 4 kB / 359.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.04541, allocations: 103.9 kB / 359.6 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.04541, allocations: 0 / 359.6 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.04544, allocations: 19.98 kB / 359.6 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.04544, allocations: 0 / 359.6 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.04544, allocations: 8.094 kB / 359.6 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.04651, allocations: 1.056 MB / 360.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000404/0.04691, allocations: 334.7 kB / 361 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.04702, allocations: 12 kB / 361 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004933/0.04751, allocations: 143.8 kB / 361.1 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.04771, allocations: 155.7 kB / 361.3 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.551e-05/0.04773, allocations: 20.12 kB / 361.3 MB, free: 10.15 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001625/0.04936, allocations: 1.947 MB / 363.3 MB, free: 8.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.04936, allocations: 4 kB / 363.3 MB, free: 8.176 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005231/0.04988, allocations: 315.4 kB / 363.6 MB, free: 7.867 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.002137/0.05202, allocations: 2.003 MB / 365.6 MB, free: 6.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.05313, allocations: 0.5658 MB / 366.1 MB, free: 5.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.05314, allocations: 4 kB / 366.2 MB, free: 5.477 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004028/0.05354, allocations: 332.7 kB / 366.5 MB, free: 5.152 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008172/0.05436, allocations: 324.3 kB / 366.8 MB, free: 4.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02029/0.07465, allocations: 17.29 MB / 384.1 MB, free: 3.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006422/0.07529, allocations: 0.8453 MB / 384.9 MB, free: 2.281 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005962/0.07589, allocations: 291.1 kB / 385.2 MB, free: 1.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006542/0.07654, allocations: 0.7034 MB / 385.9 MB, free: 1.289 MB / 346.7 MB Notification: Performance of SimCode: time 1.322e-06/0.07654, allocations: 0 / 385.9 MB, free: 1.289 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05186/0.1284, allocations: 41.69 MB / 427.6 MB, free: 7.875 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.718/7.847, allocations: 3.938 kB / 427.6 MB, free: 7.871 MB / 394.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.99054781254381] 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'] 7.972447789274156 7.982400578 7.959990899 Calling exit ...