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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 55.91 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2262, allocations: 50.55 MB / 408.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007563/0.2338, allocations: 5.847 MB / 414.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004832/0.2387, allocations: 2.742 MB / 417.4 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008755/0.2396, allocations: 27.88 kB / 417.4 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001948/0.2416, allocations: 0.7661 MB / 418.2 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001426/0.243, allocations: 0.5516 MB / 418.8 MB, free: 7.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.2444, allocations: 0.4981 MB / 419.2 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002112/0.2465, allocations: 1.61 MB / 420.9 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008458/0.2474, allocations: 0.5923 MB / 421.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008758/0.2483, allocations: 0.6112 MB / 422.1 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000945/0.2492, allocations: 0.7393 MB / 422.8 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002193/0.2495, allocations: 132 kB / 422.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004431/0.2499, allocations: 215.9 kB / 423.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006088/0.2505, allocations: 0.6505 MB / 423.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009345/0.2515, allocations: 0.9204 MB / 424.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00286/0.2544, allocations: 2.502 MB / 427.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2544, allocations: 0 / 427.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2544, allocations: 0 / 427.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.391e-05/0.2544, allocations: 4 kB / 427.2 MB, free: 15.08 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.005349/0.2598, allocations: 2.656 MB / 429.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.2599, allocations: 15.97 kB / 429.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000195/0.2601, allocations: 139.5 kB / 430 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004578/0.2605, allocations: 235.4 kB / 430.3 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00256/0.2631, allocations: 1.564 MB / 431.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.2632, allocations: 100 kB / 431.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.2634, allocations: 87.98 kB / 432 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001875/0.2653, allocations: 1.108 MB / 433.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.2653, allocations: 0 / 433.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-05/0.2654, allocations: 40 kB / 433.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.742e-05/0.2654, allocations: 20 kB / 433.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.2669, allocations: 0.7143 MB / 433.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007236/0.2741, allocations: 4.604 MB / 438.5 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001374/0.2755, allocations: 0.9353 MB / 439.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008178/0.2764, allocations: 397.8 kB / 439.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.602e-05/0.2764, allocations: 11.98 kB / 439.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.2765, allocations: 38.56 kB / 439.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.555e-06/0.2765, allocations: 4 kB / 439.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.00204/0.2785, allocations: 0.8288 MB / 440.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003016/0.2788, allocations: 427.2 kB / 441.1 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004101/0.283, allocations: 2.76 MB / 443.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001029/0.2831, allocations: 41.69 kB / 443.9 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001112/0.2842, allocations: 0.8913 MB / 444.8 MB, free: 12.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002519/0.2845, allocations: 166.6 kB / 445 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/0.2847, allocations: 126.3 kB / 445.1 MB, free: 12.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.2849, allocations: 326 kB / 445.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/0.2854, allocations: 253.1 kB / 445.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008175/0.2863, allocations: 0.5363 MB / 446.2 MB, free: 11.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.2874, allocations: 0.6094 MB / 446.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.2874, allocations: 4 kB / 446.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002049/0.2895, allocations: 0.8617 MB / 447.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.2895, allocations: 8 kB / 447.7 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.2896, allocations: 8.5 kB / 447.7 MB, free: 9.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.2896, allocations: 12 kB / 447.7 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005935/0.2902, allocations: 159.7 kB / 447.8 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.033e-05/0.2902, allocations: 15.92 kB / 447.9 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001114/0.2913, allocations: 163.4 kB / 448 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.108e-05/0.2914, allocations: 28 kB / 448.1 MB, free: 9.367 MB / 366.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.0009347/0.2924, allocations: 0.5561 MB / 448.6 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003096/0.2927, allocations: 186.8 kB / 448.8 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001585/0.2943, allocations: 0.7002 MB / 449.5 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.2943, allocations: 7.938 kB / 449.5 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2943, allocations: 3.938 kB / 449.5 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2943, allocations: 7.922 kB / 449.5 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/0.298, allocations: 2.129 MB / 451.6 MB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.298, allocations: 4 kB / 451.6 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004964/0.2985, allocations: 103.9 kB / 451.7 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.2985, allocations: 4 kB / 451.7 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.2986, allocations: 16.08 kB / 451.8 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.2986, allocations: 0 / 451.8 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2986, allocations: 4 kB / 451.8 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002142/0.3007, allocations: 1.056 MB / 452.8 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00076/0.3015, allocations: 419.7 kB / 453.2 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/0.3017, allocations: 19.98 kB / 453.3 MB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.3027, allocations: 135.8 kB / 453.4 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003216/0.3031, allocations: 155.7 kB / 453.5 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.299e-05/0.3031, allocations: 16 kB / 453.6 MB, free: 3.727 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002959/0.3061, allocations: 1.967 MB / 455.5 MB, free: 1.738 MB / 366.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3061, allocations: 0 / 455.5 MB, free: 1.738 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001002/0.3071, allocations: 311.4 kB / 455.8 MB, free: 1.434 MB / 366.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.003945/0.3111, allocations: 1.978 MB / 457.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001373/0.3125, allocations: 0.5893 MB / 458.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.3125, allocations: 0 / 458.4 MB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006751/0.3132, allocations: 347.4 kB / 458.7 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.3147, allocations: 332.1 kB / 459.1 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02673/0.3415, allocations: 17.26 MB / 476.3 MB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/0.3427, allocations: 1.441 MB / 477.8 MB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008023/0.3436, allocations: 291.1 kB / 478 MB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009742/0.3445, allocations: 0.7063 MB / 478.7 MB, free: 10.23 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3445, allocations: 0 / 478.7 MB, free: 10.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07807/0.4226, allocations: 38.93 MB / 0.5055 GB, free: 3.574 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.56, allocations: 19.69 kB / 0.5056 GB, free: 3.555 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)