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.001183/0.001183, allocations: 115.6 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001251/0.001251, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 60.03 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09132/0.09265, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.006976/0.09967, allocations: 5.836 MB / 362.9 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004093/0.1038, allocations: 2.688 MB / 365.6 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007579/0.1046, allocations: 23.88 kB / 365.6 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.1064, allocations: 0.7277 MB / 366.4 MB, free: 5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001248/0.1077, allocations: 0.4899 MB / 366.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001105/0.1088, allocations: 474.5 kB / 367.3 MB, free: 4.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001767/0.1106, allocations: 1.598 MB / 368.9 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008104/0.1114, allocations: 0.5962 MB / 369.5 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007548/0.1122, allocations: 0.6111 MB / 370.1 MB, free: 1.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000896/0.1131, allocations: 0.7549 MB / 370.9 MB, free: 468 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002143/0.1133, allocations: 132 kB / 371 MB, free: 336 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003945/0.1137, allocations: 208 kB / 371.2 MB, free: 128 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1626/0.2763, allocations: 0.636 MB / 371.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.2775, allocations: 0.9232 MB / 372.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003447/0.281, allocations: 2.458 MB / 375.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.281, allocations: 4.156 kB / 375.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.281, allocations: 0 / 375.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.148e-05/0.2811, allocations: 0 / 375.2 MB, free: 10.98 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.006753/0.2879, allocations: 2.589 MB / 377.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.051e-05/0.2879, allocations: 9.625 kB / 377.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002714/0.2882, allocations: 138 kB / 378 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007344/0.289, allocations: 222.7 kB / 378.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003381/0.2924, allocations: 1.523 MB / 379.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005989/0.293, allocations: 171.4 kB / 379.9 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/0.2932, allocations: 90.41 kB / 380 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002468/0.2956, allocations: 1.129 MB / 381.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.2957, allocations: 3.281 kB / 381.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.937e-05/0.2958, allocations: 37.67 kB / 381.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.32e-05/0.2958, allocations: 21.12 kB / 381.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.2974, allocations: 0.7387 MB / 381.9 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008133/0.3055, allocations: 4.677 MB / 386.6 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.3071, allocations: 0.9684 MB / 387.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009334/0.3081, allocations: 408.4 kB / 387.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.607e-05/0.3082, allocations: 9.031 kB / 387.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.962e-05/0.3082, allocations: 48.25 kB / 388 MB, free: 5.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.707e-06/0.3082, allocations: 0 / 388 MB, free: 5.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002416/0.3106, allocations: 0.8796 MB / 388.9 MB, free: 4.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.3108, allocations: 422.5 kB / 389.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004365/0.3151, allocations: 2.771 MB / 392 MB, free: 3.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.705e-05/0.3153, allocations: 37.23 kB / 392.1 MB, free: 3.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005755/0.3158, allocations: 0.8799 MB / 393 MB, free: 2.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.316, allocations: 157.8 kB / 393.1 MB, free: 2.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.3162, allocations: 127.6 kB / 393.2 MB, free: 2.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.463e-05/0.3163, allocations: 328.2 kB / 393.6 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006472/0.317, allocations: 283.2 kB / 393.8 MB, free: 1.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007723/0.3177, allocations: 0.5525 MB / 394.4 MB, free: 1.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.3189, allocations: 0.657 MB / 395 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.319, allocations: 2.281 kB / 395.1 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002038/0.321, allocations: 0.8981 MB / 395.9 MB, free: 408 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.321, allocations: 11.69 kB / 396 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3211, allocations: 10.97 kB / 396 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.447e-05/0.3211, allocations: 9.688 kB / 396 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006493/0.3218, allocations: 170.6 kB / 396.1 MB, free: 368 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.942e-05/0.3218, allocations: 16.41 kB / 396.2 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.323, allocations: 169.5 kB / 396.3 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.035e-05/0.3231, allocations: 29.55 kB / 396.4 MB, free: 264 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.0008894/0.324, allocations: 0.5632 MB / 396.9 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003368/0.3243, allocations: 180.2 kB / 397.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.326, allocations: 0.7378 MB / 397.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.326, allocations: 3.844 kB / 397.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.326, allocations: 3.938 kB / 397.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3261, allocations: 0 / 397.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003922/0.33, allocations: 2.19 MB / 400 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.33, allocations: 0 / 400 MB, free: 14.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005452/0.3305, allocations: 120.4 kB / 400.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.3306, allocations: 2.969 kB / 400.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.3306, allocations: 19.23 kB / 400.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.3306, allocations: 0 / 400.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3306, allocations: 8.812 kB / 400.2 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00219/0.3328, allocations: 1.114 MB / 401.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007292/0.3336, allocations: 408.9 kB / 401.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002956/0.3339, allocations: 16.92 kB / 401.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.3351, allocations: 148 kB / 401.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003169/0.3354, allocations: 152.8 kB / 402 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.876e-05/0.3354, allocations: 20.48 kB / 402 MB, free: 12.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.003048/0.3385, allocations: 1.971 MB / 404 MB, free: 10.88 MB / 318.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3385, allocations: 0 / 404 MB, free: 10.88 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001113/0.3396, allocations: 315.2 kB / 404.3 MB, free: 10.57 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.003692/0.3433, allocations: 2.026 MB / 406.3 MB, free: 8.707 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.345, allocations: 0.6835 MB / 407 MB, free: 8.051 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.3451, allocations: 0.5 kB / 407 MB, free: 8.051 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007685/0.3458, allocations: 377.2 kB / 407.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/0.3475, allocations: 327.7 kB / 407.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03557/0.383, allocations: 20.31 MB / 428 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/0.3843, allocations: 1.441 MB / 429.5 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009485/0.3852, allocations: 291.1 kB / 429.7 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.3863, allocations: 0.716 MB / 430.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3863, allocations: 0 / 430.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07152/0.4578, allocations: 37.25 MB / 467.7 MB, free: 10.47 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/0.4581, allocations: 252.2 kB / 468 MB, free: 10.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.97/3.428, allocations: 3.938 kB / 468 MB, free: 10.22 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)