Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 93.58 kB / 16.65 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 177.5 kB / 17.56 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.556/1.556, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003054, allocations: 4.781 kB / 301.5 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.122, allocations: 50.43 MB / 351.9 MB, free: 3.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008135/0.1301, allocations: 5.337 MB / 357.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005663/0.1359, allocations: 2.494 MB / 359.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.1373, allocations: 23.88 kB / 359.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002645/0.1399, allocations: 0.7239 MB / 360.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001945/0.1419, allocations: 457.7 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001657/0.1436, allocations: 462.7 kB / 361.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002743/0.1464, allocations: 1.528 MB / 363 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001342/0.1477, allocations: 0.5123 MB / 363.5 MB, free: 8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0012/0.1489, allocations: 0.494 MB / 364 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.1502, allocations: 0.6495 MB / 364.6 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003583/0.1506, allocations: 60 kB / 364.7 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000677/0.1513, allocations: 136 kB / 364.8 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007844/0.1521, allocations: 0.5528 MB / 365.4 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001765/0.1538, allocations: 0.8402 MB / 366.2 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004236/0.1581, allocations: 2.319 MB / 368.5 MB, free: 2.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1581, allocations: 0 / 368.5 MB, free: 2.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1581, allocations: 0 / 368.5 MB, free: 2.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.906e-05/0.1582, allocations: 0 / 368.5 MB, free: 2.926 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.007677/0.1659, allocations: 2.311 MB / 370.8 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.443e-05/0.166, allocations: 12.03 kB / 370.8 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003085/0.1663, allocations: 135.5 kB / 371 MB, free: 412 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000532/0.1668, allocations: 222.2 kB / 371.2 MB, free: 188 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2203/0.3871, allocations: 1.513 MB / 372.7 MB, free: 23.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006142/0.3878, allocations: 187.2 kB / 372.9 MB, free: 23.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.388, allocations: 83.88 kB / 373 MB, free: 23.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002273/0.3903, allocations: 1.136 MB / 374.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.3903, allocations: 0 / 374.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.3904, allocations: 39.31 kB / 374.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.513e-05/0.3904, allocations: 25.38 kB / 374.2 MB, free: 22.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.3921, allocations: 0.7487 MB / 374.9 MB, free: 22.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007443/0.3995, allocations: 4.707 MB / 379.6 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.4012, allocations: 1.008 MB / 380.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009629/0.4022, allocations: 416.4 kB / 381 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.589e-05/0.4023, allocations: 7.641 kB / 381 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.4023, allocations: 52.67 kB / 381.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.335e-06/0.4023, allocations: 0 / 381.1 MB, free: 19.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002373/0.4047, allocations: 0.9057 MB / 382 MB, free: 18.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.4048, allocations: 418.9 kB / 382.4 MB, free: 18.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004345/0.4092, allocations: 2.737 MB / 385.1 MB, free: 17.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.237e-05/0.4093, allocations: 39.84 kB / 385.2 MB, free: 17.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006451/0.4099, allocations: 0.8785 MB / 386.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.41, allocations: 156.3 kB / 386.2 MB, free: 16.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.919e-05/0.4101, allocations: 56.66 kB / 386.3 MB, free: 16.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.333e-05/0.4102, allocations: 331.5 kB / 386.6 MB, free: 16.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006928/0.4109, allocations: 285.2 kB / 386.9 MB, free: 16.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009484/0.4119, allocations: 0.563 MB / 387.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001373/0.4133, allocations: 0.6792 MB / 388.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.736e-06/0.4133, allocations: 2.125 kB / 388.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002699/0.416, allocations: 0.911 MB / 389 MB, free: 14.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.4161, allocations: 7.625 kB / 389 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.4161, allocations: 5.312 kB / 389 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.097e-05/0.4161, allocations: 9.344 kB / 389 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000749/0.4169, allocations: 184.2 kB / 389.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.117e-05/0.4169, allocations: 8.281 kB / 389.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/0.4182, allocations: 212.4 kB / 389.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.996e-05/0.4182, allocations: 27.67 kB / 389.5 MB, free: 14.66 MB / 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.0008242/0.4191, allocations: 0.5651 MB / 390 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002336/0.4193, allocations: 183.1 kB / 390.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/0.4211, allocations: 0.7537 MB / 391 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.4211, allocations: 5.031 kB / 391 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.4212, allocations: 0 / 391 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.4212, allocations: 0 / 391 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003657/0.4248, allocations: 2.18 MB / 393.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4248, allocations: 4.594 kB / 393.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005325/0.4254, allocations: 125.3 kB / 393.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.4254, allocations: 7.406 kB / 393.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.4254, allocations: 15.92 kB / 393.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4255, allocations: 3.938 kB / 393.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4255, allocations: 8 kB / 393.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002094/0.4276, allocations: 1.136 MB / 394.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005231/0.4281, allocations: 427 kB / 394.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.4283, allocations: 11.94 kB / 394.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.4294, allocations: 198 kB / 395.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.4297, allocations: 158.2 kB / 395.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/0.4297, allocations: 19.72 kB / 395.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.002207/0.4319, allocations: 1.953 MB / 397.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4319, allocations: 0 / 397.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008344/0.4328, allocations: 306.3 kB / 397.5 MB, free: 9.035 MB / 302.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.00306/0.4358, allocations: 2.062 MB / 399.6 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.4372, allocations: 0.6429 MB / 400.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.4372, allocations: 4 kB / 400.2 MB, free: 6.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006524/0.4379, allocations: 380.7 kB / 400.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001446/0.4393, allocations: 293.5 kB / 400.9 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0318/0.4711, allocations: 20.39 MB / 421.3 MB, free: 136 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001427/0.4726, allocations: 1.433 MB / 422.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009431/0.4736, allocations: 298.8 kB / 423 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.4746, allocations: 0.6945 MB / 423.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4747, allocations: 0 / 423.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07413/0.5488, allocations: 35.7 MB / 459.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/0.549, allocations: 256.2 kB / 459.6 MB, free: 10.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.119/3.668, allocations: 4 kB / 459.6 MB, free: 10.08 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_BatteryDischargeCharge.fmu > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)