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.001447/0.001447, allocations: 105.7 kB / 19.74 MB, free: 2.453 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.001567/0.001567, allocations: 214.7 kB / 22.92 MB, free: 5.195 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.322/1.322, allocations: 230.5 MB / 256.4 MB, free: 8.266 MB / 206.1 MB " [Timeout remaining time 179] 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.001816/0.001816, allocations: 63.84 kB / 376.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2246, allocations: 53.32 MB / 429.4 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006998/0.2316, allocations: 5.899 MB / 435.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00428/0.2359, allocations: 2.758 MB / 438 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004876/0.2364, allocations: 27.88 kB / 438.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001467/0.2378, allocations: 0.7705 MB / 438.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001026/0.2389, allocations: 0.5633 MB / 439.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.2399, allocations: 0.5087 MB / 439.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001669/0.2416, allocations: 1.598 MB / 441.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005802/0.2422, allocations: 406.6 kB / 441.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000655/0.2428, allocations: 0.6151 MB / 442.5 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008585/0.2437, allocations: 0.7705 MB / 443.3 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001776/0.2438, allocations: 132 kB / 443.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003664/0.2442, allocations: 212 kB / 443.6 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000559/0.2448, allocations: 0.6543 MB / 444.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007964/0.2456, allocations: 0.9204 MB / 445.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002298/0.2479, allocations: 2.502 MB / 447.7 MB, free: 5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2479, allocations: 4 kB / 447.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2479, allocations: 0 / 447.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.269e-05/0.2479, allocations: 4 kB / 447.7 MB, free: 4.992 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.004479/0.2524, allocations: 2.656 MB / 450.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2524, allocations: 12.03 kB / 450.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001633/0.2526, allocations: 143.5 kB / 450.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003224/0.2529, allocations: 231.5 kB / 450.8 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002157/0.255, allocations: 1.568 MB / 452.3 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001031/0.2552, allocations: 104 kB / 452.4 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.2553, allocations: 80 kB / 452.5 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.257, allocations: 1.108 MB / 453.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.257, allocations: 0 / 453.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.689e-05/0.2571, allocations: 44 kB / 453.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.2571, allocations: 23.94 kB / 453.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.2584, allocations: 0.7105 MB / 454.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006119/0.2645, allocations: 4.604 MB / 459 MB, free: 9.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.2658, allocations: 0.9061 MB / 459.9 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000739/0.2665, allocations: 357.1 kB / 460.2 MB, free: 7.965 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.76e-05/0.2666, allocations: 7.984 kB / 460.3 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/0.2666, allocations: 42.56 kB / 460.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.873e-06/0.2666, allocations: 0 / 460.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00172/0.2683, allocations: 0.8288 MB / 461.1 MB, free: 7.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002155/0.2686, allocations: 427.2 kB / 461.5 MB, free: 6.555 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003363/0.2719, allocations: 2.76 MB / 464.3 MB, free: 3.754 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.535e-05/0.272, allocations: 37.7 kB / 464.3 MB, free: 3.711 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007536/0.2727, allocations: 0.8913 MB / 465.2 MB, free: 2.812 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001335/0.2729, allocations: 166.6 kB / 465.4 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002056/0.2731, allocations: 126.2 kB / 465.5 MB, free: 2.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.2732, allocations: 333.9 kB / 465.8 MB, free: 2.188 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005111/0.2737, allocations: 261.1 kB / 466.1 MB, free: 1.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007375/0.2744, allocations: 0.5309 MB / 466.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.2755, allocations: 0.6171 MB / 467.2 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.2755, allocations: 0 / 467.2 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001557/0.277, allocations: 0.862 MB / 468.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.277, allocations: 4 kB / 468.1 MB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.457e-06/0.2771, allocations: 8 kB / 468.1 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.168e-05/0.2771, allocations: 8 kB / 468.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005893/0.2777, allocations: 168 kB / 468.3 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.2777, allocations: 11.94 kB / 468.3 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009488/0.2786, allocations: 159.4 kB / 468.5 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-05/0.2787, allocations: 31.98 kB / 468.5 MB, free: 15.34 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.0006931/0.2794, allocations: 0.5547 MB / 469 MB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.2796, allocations: 190.7 kB / 469.2 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.281, allocations: 0.7002 MB / 469.9 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.281, allocations: 7.938 kB / 469.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.281, allocations: 3.938 kB / 469.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.281, allocations: 3.984 kB / 469.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003093/0.2841, allocations: 2.129 MB / 472.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2841, allocations: 0 / 472.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004863/0.2846, allocations: 107.9 kB / 472.2 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.2846, allocations: 4 kB / 472.2 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.2846, allocations: 12 kB / 472.2 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.2846, allocations: 4 kB / 472.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2846, allocations: 0 / 472.2 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.2863, allocations: 1.06 MB / 473.3 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005756/0.2869, allocations: 423.7 kB / 473.7 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.2871, allocations: 15.98 kB / 473.7 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009929/0.288, allocations: 143.8 kB / 473.8 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/0.2883, allocations: 151.7 kB / 474 MB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.772e-05/0.2884, allocations: 16 kB / 474 MB, free: 9.699 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002479/0.2908, allocations: 1.971 MB / 476 MB, free: 7.707 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2908, allocations: 0 / 476 MB, free: 7.707 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007874/0.2916, allocations: 311.4 kB / 476.3 MB, free: 7.402 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.003551/0.2952, allocations: 1.973 MB / 478.2 MB, free: 5.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.2964, allocations: 0.5664 MB / 478.8 MB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.2964, allocations: 4 kB / 478.8 MB, free: 5.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006116/0.297, allocations: 335.8 kB / 479.1 MB, free: 4.676 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.2983, allocations: 329.8 kB / 479.5 MB, free: 4.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02339/0.3216, allocations: 17.26 MB / 496.7 MB, free: 2.719 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.3228, allocations: 1.441 MB / 498.2 MB, free: 1.25 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007508/0.3235, allocations: 295.1 kB / 498.4 MB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008725/0.3244, allocations: 0.7023 MB / 499.1 MB, free: 260 kB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3244, allocations: 0 / 499.1 MB, free: 260 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0767/0.4011, allocations: 39.12 MB / 0.5256 GB, free: 9.387 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.61, allocations: 7.438 kB / 0.5257 GB, free: 9.383 MB / 446.1 MB " [Timeout remaining time 649] (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 --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: 13.152039991000493]