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.001295/0.001295, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.00145/0.00145, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.484/1.484, allocations: 230.6 MB / 258.3 MB, free: 8.055 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.001957/0.001957, allocations: 64.77 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2497, allocations: 53.38 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007857/0.2575, allocations: 5.907 MB / 437.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004814/0.2623, allocations: 2.768 MB / 440.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006391/0.263, allocations: 27.81 kB / 440.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001682/0.2646, allocations: 0.7738 MB / 441.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001169/0.2658, allocations: 0.5633 MB / 441.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.267, allocations: 0.5157 MB / 442.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002073/0.2691, allocations: 1.61 MB / 444.1 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000678/0.2697, allocations: 403.1 kB / 444.5 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008684/0.2706, allocations: 0.6346 MB / 445.1 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009666/0.2716, allocations: 0.7705 MB / 445.9 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001848/0.2718, allocations: 132 kB / 446 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003886/0.2721, allocations: 211.9 kB / 446.2 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005751/0.2727, allocations: 0.6505 MB / 446.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008373/0.2736, allocations: 0.9282 MB / 447.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002645/0.2762, allocations: 2.502 MB / 450.3 MB, free: 4.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2762, allocations: 4 kB / 450.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2762, allocations: 4 kB / 450.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.952e-05/0.2762, allocations: 0 / 450.3 MB, free: 4.414 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.004745/0.281, allocations: 2.573 MB / 452.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.281, allocations: 8.031 kB / 452.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001733/0.2812, allocations: 143.4 kB / 453 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003465/0.2815, allocations: 231.5 kB / 453.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002467/0.284, allocations: 1.502 MB / 454.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001504/0.2842, allocations: 151.4 kB / 454.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.2843, allocations: 84 kB / 455 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002029/0.2864, allocations: 1.104 MB / 456.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.417e-05/0.2864, allocations: 11.92 kB / 456.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.835e-05/0.2865, allocations: 36 kB / 456.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.2865, allocations: 28 kB / 456.2 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.2879, allocations: 0.7143 MB / 456.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0069/0.2948, allocations: 4.53 MB / 461.4 MB, free: 8.938 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.2959, allocations: 0.5167 MB / 461.9 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007402/0.2966, allocations: 369.9 kB / 462.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.427e-05/0.2967, allocations: 7.938 kB / 462.3 MB, free: 8.039 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.2967, allocations: 38.56 kB / 462.3 MB, free: 7.992 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 5.25e-06/0.2967, allocations: 7.922 kB / 462.3 MB, free: 7.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001763/0.2985, allocations: 0.825 MB / 463.2 MB, free: 7.152 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000303/0.2988, allocations: 427.2 kB / 463.6 MB, free: 6.637 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004073/0.3029, allocations: 2.767 MB / 466.3 MB, free: 3.828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.165e-05/0.303, allocations: 37.7 kB / 466.4 MB, free: 3.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008398/0.3038, allocations: 0.8875 MB / 467.3 MB, free: 2.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.3039, allocations: 162.6 kB / 467.4 MB, free: 2.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002115/0.3042, allocations: 126.2 kB / 467.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.3043, allocations: 334 kB / 467.9 MB, free: 2.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005335/0.3048, allocations: 257.2 kB / 468.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007724/0.3056, allocations: 0.5324 MB / 468.7 MB, free: 1.367 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3067, allocations: 0.6171 MB / 469.3 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3067, allocations: 4 kB / 469.3 MB, free: 0.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001719/0.3084, allocations: 0.858 MB / 470.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.3084, allocations: 8 kB / 470.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.3084, allocations: 8 kB / 470.2 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.3085, allocations: 8 kB / 470.2 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/0.309, allocations: 171.9 kB / 470.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.3091, allocations: 11.98 kB / 470.3 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009272/0.31, allocations: 155.4 kB / 470.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.225e-05/0.31, allocations: 32 kB / 470.5 MB, free: 15.42 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.0007865/0.3108, allocations: 0.5599 MB / 471.1 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.3111, allocations: 186.8 kB / 471.3 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.3125, allocations: 0.7001 MB / 472 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.128e-06/0.3125, allocations: 7.938 kB / 472 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3125, allocations: 0 / 472 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3125, allocations: 3.984 kB / 472 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003457/0.3159, allocations: 2.097 MB / 474.1 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.316, allocations: 4.031 kB / 474.1 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004797/0.3164, allocations: 107.9 kB / 474.2 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.317e-06/0.3164, allocations: 7.938 kB / 474.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/0.3165, allocations: 12 kB / 474.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.3165, allocations: 8 kB / 474.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3165, allocations: 0 / 474.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.3183, allocations: 1.056 MB / 475.3 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007056/0.319, allocations: 338.6 kB / 475.6 MB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.3192, allocations: 16 kB / 475.6 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009568/0.3202, allocations: 139.8 kB / 475.7 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/0.3205, allocations: 155.7 kB / 475.9 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.919e-05/0.3205, allocations: 20 kB / 475.9 MB, free: 9.898 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002728/0.3232, allocations: 1.964 MB / 477.9 MB, free: 7.914 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3232, allocations: 0 / 477.9 MB, free: 7.914 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008518/0.3241, allocations: 327.3 kB / 478.2 MB, free: 7.594 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.003752/0.3278, allocations: 1.971 MB / 480.2 MB, free: 5.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.3291, allocations: 0.573 MB / 480.7 MB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.3291, allocations: 0 / 480.7 MB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006445/0.3297, allocations: 336.6 kB / 481.1 MB, free: 4.871 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.331, allocations: 318.4 kB / 481.4 MB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02543/0.3565, allocations: 17.26 MB / 498.6 MB, free: 2.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001216/0.3577, allocations: 1.436 MB / 0.4884 GB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008163/0.3585, allocations: 295.1 kB / 0.4886 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009141/0.3594, allocations: 0.7062 MB / 0.4893 GB, free: 452 kB / 398.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3594, allocations: 0 / 0.4893 GB, free: 452 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09453/0.4539, allocations: 39.53 MB / 0.5279 GB, free: 9.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.24, allocations: 4 kB / 0.5279 GB, free: 9.176 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --stepSize=0.1 --timeout=50 --tolerance=1e-06 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.501489717047662] 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.403249526862055 12.606190812 12.327353576 Calling exit ...