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.0006765/0.0006765, allocations: 95.73 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007916/0.0007916, allocations: 201.6 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 227.7 MB / 246.8 MB, free: 9.555 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000204/0.000204, allocations: 4 kB / 307.8 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08286/0.08308, allocations: 51.53 MB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.005515/0.08862, allocations: 5.378 MB / 364.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004125/0.09277, allocations: 2.661 MB / 367.4 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008196/0.09362, allocations: 19.94 kB / 367.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001581/0.09521, allocations: 0.7354 MB / 368.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001116/0.09634, allocations: 489.6 kB / 368.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.09742, allocations: 470.9 kB / 369.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001353/0.09879, allocations: 1.528 MB / 370.6 MB, free: 1.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006727/0.09947, allocations: 0.5123 MB / 371.1 MB, free: 1.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004427/0.09993, allocations: 0.5017 MB / 371.6 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1487/0.2486, allocations: 0.6399 MB / 372.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000365/0.249, allocations: 59.09 kB / 372.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004619/0.2494, allocations: 134.2 kB / 372.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005504/0.25, allocations: 0.5561 MB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006872/0.2507, allocations: 0.85 MB / 373.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002239/0.2529, allocations: 2.328 MB / 376.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.253, allocations: 0.7031 kB / 376.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.253, allocations: 1.25 kB / 376.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.039e-05/0.253, allocations: 0.875 kB / 376.2 MB, free: 9.656 MB / 302.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.004004/0.257, allocations: 2.321 MB / 378.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2571, allocations: 9.625 kB / 378.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00017/0.2572, allocations: 138.2 kB / 378.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002838/0.2575, allocations: 224.3 kB / 378.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001953/0.2595, allocations: 1.526 MB / 380.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004672/0.26, allocations: 184.7 kB / 380.6 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.2601, allocations: 90.12 kB / 380.7 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00182/0.2619, allocations: 1.14 MB / 381.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.2619, allocations: 0 / 381.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.262, allocations: 37.16 kB / 381.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.2621, allocations: 19.75 kB / 381.9 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.2634, allocations: 0.7506 MB / 382.6 MB, free: 7.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005698/0.2691, allocations: 4.725 MB / 387.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/0.2704, allocations: 0.9874 MB / 388.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007696/0.2712, allocations: 422.7 kB / 388.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.2712, allocations: 9.281 kB / 388.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.2713, allocations: 43.53 kB / 388.8 MB, free: 4.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.653e-06/0.2713, allocations: 0 / 388.8 MB, free: 4.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002113/0.2734, allocations: 0.9111 MB / 389.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.2735, allocations: 421.6 kB / 390.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003264/0.2768, allocations: 2.766 MB / 392.9 MB, free: 2.586 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.2768, allocations: 39.11 kB / 392.9 MB, free: 2.547 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005352/0.2774, allocations: 0.8829 MB / 393.8 MB, free: 1.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.466e-05/0.2775, allocations: 155.8 kB / 394 MB, free: 1.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.316e-05/0.2776, allocations: 56.94 kB / 394 MB, free: 1.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.616e-05/0.2776, allocations: 330.8 kB / 394.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005657/0.2782, allocations: 285.7 kB / 394.6 MB, free: 1.156 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006899/0.2789, allocations: 0.5718 MB / 395.2 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.28, allocations: 0.6671 MB / 395.9 MB, free: 220 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.28, allocations: 2.906 kB / 395.9 MB, free: 220 kB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001703/0.2817, allocations: 0.9105 MB / 396.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.2818, allocations: 7.531 kB / 396.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.2818, allocations: 7.406 kB / 396.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.2818, allocations: 19.64 kB / 396.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005932/0.2824, allocations: 173.9 kB / 397 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.2824, allocations: 14.91 kB / 397 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.2836, allocations: 215.1 kB / 397.2 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.463e-05/0.2836, allocations: 26.56 kB / 397.2 MB, free: 15.64 MB / 318.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.0006962/0.2843, allocations: 0.558 MB / 397.8 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.2846, allocations: 179.5 kB / 398 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001478/0.286, allocations: 0.7588 MB / 398.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2861, allocations: 3.812 kB / 398.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.2861, allocations: 8.875 kB / 398.7 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.2861, allocations: 3.984 kB / 398.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003151/0.2892, allocations: 2.196 MB / 400.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.2893, allocations: 2.062 kB / 400.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005036/0.2898, allocations: 124.2 kB / 401.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.2898, allocations: 5.469 kB / 401.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.731e-05/0.2898, allocations: 17.11 kB / 401.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2898, allocations: 2.344 kB / 401.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2898, allocations: 4.094 kB / 401.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/0.2917, allocations: 1.143 MB / 402.2 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005803/0.2923, allocations: 416.8 kB / 402.6 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.2925, allocations: 9.781 kB / 402.6 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.2936, allocations: 210 kB / 402.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002751/0.2939, allocations: 147.7 kB / 403 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-05/0.294, allocations: 23.98 kB / 403 MB, free: 12.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002292/0.2963, allocations: 1.967 MB / 405 MB, free: 10.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2963, allocations: 4 kB / 405 MB, free: 10.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007781/0.2971, allocations: 311.2 kB / 405.3 MB, free: 9.73 MB / 318.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.003105/0.3002, allocations: 2.049 MB / 407.3 MB, free: 7.828 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001284/0.3015, allocations: 0.6499 MB / 408 MB, free: 7.203 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/0.3015, allocations: 8.562 kB / 408 MB, free: 7.195 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006977/0.3022, allocations: 375.8 kB / 408.4 MB, free: 6.836 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001458/0.3037, allocations: 311 kB / 408.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02979/0.3335, allocations: 20.46 MB / 429.1 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.3346, allocations: 1.456 MB / 430.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008424/0.3355, allocations: 295 kB / 430.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008838/0.3364, allocations: 0.6984 MB / 431.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3364, allocations: 4 kB / 431.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05443/0.3908, allocations: 35.84 MB / 467.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002133/0.3911, allocations: 252.8 kB / 467.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.371/2.762, allocations: 0 / 467.7 MB, free: 10.59 MB / 382.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)