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.001338/0.001338, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001391, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 59.94 kB / 306.3 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1072, allocations: 50.54 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008587/0.1158, allocations: 5.834 MB / 362.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005452/0.1213, allocations: 2.7 MB / 365.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001346/0.1227, allocations: 19.94 kB / 365.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002143/0.1249, allocations: 0.7315 MB / 366.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001644/0.1265, allocations: 497.7 kB / 366.7 MB, free: 4.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001389/0.1279, allocations: 470.8 kB / 367.1 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002156/0.1301, allocations: 1.524 MB / 368.6 MB, free: 2.605 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009529/0.1311, allocations: 0.5201 MB / 369.2 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008205/0.1319, allocations: 0.5369 MB / 369.7 MB, free: 1.523 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008738/0.1328, allocations: 0.708 MB / 370.4 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002009/0.133, allocations: 80 kB / 370.5 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004024/0.1334, allocations: 155.9 kB / 370.6 MB, free: 0.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1955/0.3289, allocations: 0.5889 MB / 371.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001358/0.3303, allocations: 0.8531 MB / 372.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002831/0.3331, allocations: 2.387 MB / 374.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3331, allocations: 1.031 kB / 374.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.3332, allocations: 1.188 kB / 374.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.902e-05/0.3332, allocations: 0 / 374.5 MB, free: 10.73 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.006127/0.3393, allocations: 2.585 MB / 377 MB, free: 9.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.3394, allocations: 9.688 kB / 377.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001967/0.3396, allocations: 141.2 kB / 377.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004207/0.34, allocations: 223.6 kB / 377.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002726/0.3428, allocations: 1.521 MB / 378.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005475/0.3433, allocations: 177.4 kB / 379.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.3435, allocations: 88.03 kB / 379.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/0.3456, allocations: 1.132 MB / 380.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/0.3457, allocations: 6.75 kB / 380.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.3458, allocations: 37.38 kB / 380.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.3458, allocations: 21.53 kB / 380.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001503/0.3473, allocations: 0.7404 MB / 381.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007614/0.3549, allocations: 4.671 MB / 385.8 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001479/0.3564, allocations: 0.9774 MB / 386.8 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008243/0.3573, allocations: 407 kB / 387.2 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.746e-05/0.3574, allocations: 9.312 kB / 387.2 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.3574, allocations: 44.5 kB / 387.2 MB, free: 5.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.264e-06/0.3574, allocations: 4 kB / 387.2 MB, free: 5.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.00236/0.3598, allocations: 0.8799 MB / 388.1 MB, free: 4.848 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.3599, allocations: 421.1 kB / 388.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004174/0.3641, allocations: 2.769 MB / 391.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.783e-05/0.3641, allocations: 41.83 kB / 391.3 MB, free: 3.309 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005914/0.3647, allocations: 0.883 MB / 392.2 MB, free: 2.547 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.3649, allocations: 161.3 kB / 392.4 MB, free: 2.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.3651, allocations: 124.6 kB / 392.5 MB, free: 2.332 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.237e-05/0.3652, allocations: 332 kB / 392.8 MB, free: 2.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006612/0.3658, allocations: 278.1 kB / 393.1 MB, free: 1.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007477/0.3666, allocations: 0.5516 MB / 393.6 MB, free: 1.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001117/0.3677, allocations: 0.655 MB / 394.3 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3677, allocations: 5.312 kB / 394.3 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001786/0.3695, allocations: 0.8993 MB / 395.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3695, allocations: 7.594 kB / 395.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.3696, allocations: 9.562 kB / 395.2 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.3696, allocations: 11.75 kB / 395.2 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006662/0.3703, allocations: 172.5 kB / 395.4 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.973e-05/0.3703, allocations: 15.12 kB / 395.4 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.3715, allocations: 170 kB / 395.6 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.858e-05/0.3715, allocations: 26.06 kB / 395.6 MB, free: 392 kB / 302.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.0008449/0.3724, allocations: 0.5567 MB / 396.2 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.3727, allocations: 188.1 kB / 396.3 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001579/0.3743, allocations: 0.7359 MB / 397.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3743, allocations: 4.406 kB / 397.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.3743, allocations: 5.625 kB / 397.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3743, allocations: 3.984 kB / 397.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003489/0.3778, allocations: 2.186 MB / 399.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3778, allocations: 0 / 399.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005377/0.3784, allocations: 116.8 kB / 399.4 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.3784, allocations: 8.969 kB / 399.4 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.287e-05/0.3784, allocations: 7.094 kB / 399.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.3784, allocations: 2.219 kB / 399.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.3785, allocations: 5.922 kB / 399.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002333/0.3808, allocations: 1.114 MB / 400.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007726/0.3816, allocations: 416.8 kB / 400.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002154/0.3818, allocations: 13.56 kB / 401 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.3829, allocations: 154.9 kB / 401.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003462/0.3833, allocations: 154 kB / 401.3 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.017e-05/0.3833, allocations: 17.31 kB / 401.3 MB, free: 12.99 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003053/0.3864, allocations: 1.969 MB / 403.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3864, allocations: 0 / 403.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001019/0.3874, allocations: 311.3 kB / 403.5 MB, free: 10.97 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.003515/0.3909, allocations: 2.031 MB / 405.6 MB, free: 9.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.3925, allocations: 0.627 MB / 406.2 MB, free: 8.484 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.3925, allocations: 0.5 kB / 406.2 MB, free: 8.484 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007869/0.3933, allocations: 379.9 kB / 406.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001522/0.3948, allocations: 311.2 kB / 406.9 MB, free: 7.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03537/0.4302, allocations: 20.3 MB / 427.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001249/0.4315, allocations: 1.445 MB / 428.6 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001298/0.4328, allocations: 295.1 kB / 428.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/0.4342, allocations: 0.7082 MB / 429.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4342, allocations: 0 / 429.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06198/0.4962, allocations: 36.44 MB / 466.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/0.4965, allocations: 249.6 kB / 466.3 MB, free: 11.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.705/3.201, allocations: 0 / 466.3 MB, free: 11.46 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)