Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) 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(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",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.0008509/0.0008508, allocations: 101.2 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008987/0.0008988, allocations: 178.3 kB / 16.61 MB, free: 6.422 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.231/1.231, allocations: 223.2 MB / 240.6 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1403/0.1403, allocations: 8.086 MB / 299.7 MB, free: 2.934 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002706/0.0002706, allocations: 8 kB / 362.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08178/0.08206, allocations: 52.51 MB / 415.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.002752/0.08485, allocations: 2.574 MB / 417.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.08618, allocations: 1.06 MB / 419 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.0863, allocations: 12 kB / 419 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005885/0.08689, allocations: 394.8 kB / 419.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003204/0.08723, allocations: 255.3 kB / 419.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.08848, allocations: 0.7786 MB / 420.4 MB, free: 3.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003664/0.08886, allocations: 331.3 kB / 420.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.08904, allocations: 127 kB / 420.9 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.08921, allocations: 183.4 kB / 421.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003186/0.08954, allocations: 275.1 kB / 421.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.752e-05/0.0896, allocations: 27.94 kB / 421.4 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000308/0.08991, allocations: 199.8 kB / 421.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002463/0.09017, allocations: 327.1 kB / 421.9 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.0903, allocations: 181.2 kB / 422 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008335/0.09114, allocations: 1.025 MB / 423.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.023e-06/0.09115, allocations: 0 / 423.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.09116, allocations: 0 / 423.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.09118, allocations: 0 / 423.1 MB, free: 0.9102 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.1401/0.2313, allocations: 1.405 MB / 424.5 MB, free: 40.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.2313, allocations: 9.812 kB / 424.5 MB, free: 40.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00012/0.2315, allocations: 65.91 kB / 424.5 MB, free: 40.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.2316, allocations: 108.1 kB / 424.7 MB, free: 40.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.2327, allocations: 0.829 MB / 425.5 MB, free: 39.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.474e-05/0.2328, allocations: 80.97 kB / 425.6 MB, free: 39.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.2328, allocations: 26.81 kB / 425.6 MB, free: 39.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006476/0.2335, allocations: 452.2 kB / 426 MB, free: 39.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.2335, allocations: 1.453 kB / 426 MB, free: 39.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.502e-05/0.2335, allocations: 14.78 kB / 426 MB, free: 39.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2336, allocations: 10.36 kB / 426.1 MB, free: 39.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005146/0.2341, allocations: 328.1 kB / 426.4 MB, free: 39.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002771/0.2369, allocations: 2.166 MB / 428.5 MB, free: 39.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000858/0.2377, allocations: 491.7 kB / 429 MB, free: 39.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.2378, allocations: 86.95 kB / 429.1 MB, free: 38.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.613e-05/0.2379, allocations: 37.45 kB / 429.1 MB, free: 38.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.513e-06/0.2379, allocations: 0 / 429.1 MB, free: 38.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002024/0.2399, allocations: 0.8495 MB / 430 MB, free: 38.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.24, allocations: 241.7 kB / 430.2 MB, free: 38.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/0.2416, allocations: 1.733 MB / 432 MB, free: 38.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.979e-05/0.2417, allocations: 31.89 kB / 432 MB, free: 38.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.2419, allocations: 441.3 kB / 432.4 MB, free: 38.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.042e-05/0.242, allocations: 97.11 kB / 432.5 MB, free: 38.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/0.242, allocations: 6.594 kB / 432.5 MB, free: 38.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.958e-05/0.242, allocations: 323.1 kB / 432.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.2423, allocations: 165.7 kB / 433 MB, free: 37.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.2427, allocations: 247.2 kB / 433.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.243, allocations: 178.3 kB / 433.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.243, allocations: 0 / 433.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001177/0.2442, allocations: 0.6197 MB / 434 MB, free: 37.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.2442, allocations: 5.875 kB / 434 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2442, allocations: 0.9375 kB / 434 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006158/0.2449, allocations: 148.1 kB / 434.2 MB, free: 37.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000296/0.2452, allocations: 77.88 kB / 434.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/0.247, allocations: 1.919 MB / 436.2 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.2474, allocations: 46.69 kB / 436.2 MB, free: 35.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.2474, allocations: 14.69 kB / 436.2 MB, free: 35.73 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.battery.SOC_start fixed = true ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.000323/0.2477, allocations: 410.6 kB / 436.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.2478, allocations: 95.97 kB / 436.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.249, allocations: 0.6099 MB / 437.3 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.249, allocations: 3.281 kB / 437.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.249, allocations: 3.281 kB / 437.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.249, allocations: 3.469 kB / 437.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.2509, allocations: 1.49 MB / 438.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.2509, allocations: 1.172 kB / 438.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.2512, allocations: 56.06 kB / 438.9 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005593/0.2518, allocations: 148.2 kB / 439 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.2518, allocations: 7.219 kB / 439.1 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001497/0.2533, allocations: 1.896 MB / 441 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2533, allocations: 4.062 kB / 441 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.2547, allocations: 0.8486 MB / 441.8 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002858/0.255, allocations: 247.4 kB / 442 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.724e-05/0.2551, allocations: 4 kB / 442.1 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000371/0.2554, allocations: 46.62 kB / 442.1 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.2555, allocations: 32.41 kB / 442.1 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.2555, allocations: 14.2 kB / 442.1 MB, free: 32.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.2567, allocations: 1.263 MB / 443.4 MB, free: 31.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2567, allocations: 0 / 443.4 MB, free: 31.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004642/0.2572, allocations: 155.9 kB / 443.6 MB, free: 31.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001965/0.2591, allocations: 1.577 MB / 445.1 MB, free: 30.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009467/0.2601, allocations: 0.5331 MB / 445.7 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2601, allocations: 0 / 445.7 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005491/0.2607, allocations: 348.5 kB / 446 MB, free: 30.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003527/0.261, allocations: 76.47 kB / 446.1 MB, free: 30.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/0.264, allocations: 3.264 MB / 449.3 MB, free: 28.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.2644, allocations: 1.098 MB / 450.4 MB, free: 27.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002303/0.2647, allocations: 126.5 kB / 450.6 MB, free: 27.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003133/0.265, allocations: 324.8 kB / 450.9 MB, free: 27.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.265, allocations: 3.938 kB / 450.9 MB, free: 27.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03009/0.2951, allocations: 18.72 MB / 469.6 MB, free: 25.05 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001322/0.2952, allocations: 262.5 kB / 469.9 MB, free: 24.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.164, allocations: 3.375 kB / 469.9 MB, free: 24.71 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad_fmu --startTime=0 --stopTime=360000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1) Environment - environmentSimulation: