Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0008739/0.0008739, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001177/0.001177, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8914/0.8914, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.153e-05/2.301e-05, allocations: 2.281 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005108/0.005131, allocations: 5.22 MB / 329.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003563/0.008694, allocations: 2.609 MB / 332.3 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000628/0.009322, allocations: 31.81 kB / 332.4 MB, free: 7.996 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001654/0.01098, allocations: 0.7424 MB / 333.1 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001145/0.01212, allocations: 0.5863 MB / 333.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009451/0.01307, allocations: 0.5166 MB / 334.2 MB, free: 6.148 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001602/0.01467, allocations: 1.651 MB / 335.9 MB, free: 4.492 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005291/0.0152, allocations: 379 kB / 336.2 MB, free: 4.102 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009898/0.01619, allocations: 0.8965 MB / 337.1 MB, free: 3.203 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006813/0.01687, allocations: 0.6234 MB / 337.8 MB, free: 2.578 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000157/0.01702, allocations: 136 kB / 337.9 MB, free: 2.445 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003177/0.01734, allocations: 211.8 kB / 338.1 MB, free: 2.238 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003752/0.01772, allocations: 0.6465 MB / 338.7 MB, free: 1.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000469/0.01819, allocations: 0.5687 MB / 339.3 MB, free: 1.016 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001959/0.02015, allocations: 2.469 MB / 341.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.02015, allocations: 7.938 kB / 341.8 MB, free: 14.53 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.02015, allocations: 0 / 341.8 MB, free: 14.53 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.568e-05/0.02022, allocations: 0 / 341.8 MB, free: 14.53 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.003607/0.02382, allocations: 2.553 MB / 344.3 MB, free: 11.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.02388, allocations: 19.92 kB / 344.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.02402, allocations: 143.4 kB / 344.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003177/0.02434, allocations: 239.4 kB / 344.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001811/0.02615, allocations: 1.494 MB / 346.2 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.02628, allocations: 147.7 kB / 346.4 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.879e-05/0.02638, allocations: 84.38 kB / 346.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.02824, allocations: 1.707 MB / 348.2 MB, free: 7.805 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.02826, allocations: 4.125 kB / 348.2 MB, free: 7.801 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.985e-05/0.02832, allocations: 47.94 kB / 348.2 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.02833, allocations: 20 kB / 348.2 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000924/0.02926, allocations: 0.7143 MB / 348.9 MB, free: 7.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004333/0.03359, allocations: 4.182 MB / 353.1 MB, free: 2.668 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007966/0.03439, allocations: 0.5197 MB / 353.6 MB, free: 2.137 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004924/0.03488, allocations: 353.8 kB / 354 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.84e-05/0.03493, allocations: 4 kB / 354 MB, free: 1.789 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.03497, allocations: 50.55 kB / 354 MB, free: 1.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=44): time 2.685e-06/0.03497, allocations: 0 / 354 MB, free: 1.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=44): time 0.001548/0.03652, allocations: 0.8221 MB / 354.9 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/0.03667, allocations: 423.2 kB / 355.3 MB, free: 400 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002841/0.03951, allocations: 2.771 MB / 358 MB, free: 13.58 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.011e-05/0.03958, allocations: 41.7 kB / 358.1 MB, free: 13.53 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005786/0.04016, allocations: 0.8952 MB / 359 MB, free: 12.63 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.04027, allocations: 158.6 kB / 359.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.04042, allocations: 126.3 kB / 359.3 MB, free: 12.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.444e-05/0.04051, allocations: 329.9 kB / 359.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003545/0.04087, allocations: 253.1 kB / 359.8 MB, free: 11.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006023/0.04147, allocations: 0.8878 MB / 360.7 MB, free: 10.67 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.04251, allocations: 0.6181 MB / 361.3 MB, free: 9.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.435e-06/0.04251, allocations: 8 kB / 361.3 MB, free: 9.969 MB / 330.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001304/0.04382, allocations: 0.8559 MB / 362.2 MB, free: 9.105 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.04384, allocations: 8 kB / 362.2 MB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.04386, allocations: 12.03 kB / 362.2 MB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.513e-05/0.04389, allocations: 8 kB / 362.2 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003533/0.04424, allocations: 155.7 kB / 362.4 MB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.04426, allocations: 15.98 kB / 362.4 MB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006585/0.04491, allocations: 159.4 kB / 362.6 MB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.87e-05/0.04496, allocations: 28 kB / 362.6 MB, free: 8.727 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.0007075/0.04567, allocations: 0.5599 MB / 363.1 MB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001656/0.04584, allocations: 194.7 kB / 363.3 MB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009115/0.04675, allocations: 0.6992 MB / 364 MB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.164e-06/0.04675, allocations: 4 kB / 364 MB, free: 7.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.04676, allocations: 3.984 kB / 364 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.04677, allocations: 0 / 364 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.04906, allocations: 1.898 MB / 365.9 MB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.04907, allocations: 7.922 kB / 365.9 MB, free: 5.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002708/0.04934, allocations: 103.9 kB / 366 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.04935, allocations: 7.984 kB / 366.1 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.04937, allocations: 12 kB / 366.1 MB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.84e-06/0.04938, allocations: 4 kB / 366.1 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.04938, allocations: 0 / 366.1 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.05051, allocations: 1.045 MB / 367.1 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004528/0.05096, allocations: 350.5 kB / 367.5 MB, free: 3.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.05107, allocations: 15.92 kB / 367.5 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005464/0.05162, allocations: 139.8 kB / 367.6 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.05185, allocations: 155.7 kB / 367.8 MB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.05188, allocations: 12 kB / 367.8 MB, free: 3.414 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002283/0.05416, allocations: 1.967 MB / 369.7 MB, free: 1.426 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.05416, allocations: 0 / 369.7 MB, free: 1.426 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007198/0.05488, allocations: 319.4 kB / 370 MB, free: 1.113 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.00237/0.05725, allocations: 2.011 MB / 372.1 MB, free: 15.24 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008242/0.05807, allocations: 0.5615 MB / 372.6 MB, free: 14.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.05808, allocations: 7.938 kB / 372.6 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003835/0.05846, allocations: 336.6 kB / 373 MB, free: 14.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009173/0.05938, allocations: 322.7 kB / 373.3 MB, free: 14.03 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02211/0.08149, allocations: 17.34 MB / 390.6 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000611/0.0821, allocations: 0.8573 MB / 391.5 MB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006476/0.08275, allocations: 295.1 kB / 391.8 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006316/0.08338, allocations: 0.7034 MB / 392.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.684e-06/0.08338, allocations: 0 / 392.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0573/0.1407, allocations: 41.81 MB / 434.3 MB, free: 0.7891 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.878/8.019, allocations: 3.938 kB / 434.3 MB, free: 0.7852 MB / 394.7 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.081604487262666] 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.146648108959198 8.156375055 8.134299704 Calling exit ...