Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",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.0007542/0.0007543, allocations: 92.08 kB / 15.74 MB, free: 412 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.0008529/0.0008531, allocations: 171 kB / 16.62 MB, free: 6.438 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.216/1.216, allocations: 223.2 MB / 240.6 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1397/0.1397, allocations: 8.08 MB / 299.8 MB, free: 2.883 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002784/0.0002785, allocations: 8 kB / 363 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08506/0.08535, allocations: 52.52 MB / 415.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.00419/0.08958, allocations: 4.115 MB / 419.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002331/0.09194, allocations: 1.488 MB / 421.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003879/0.09235, allocations: 16 kB / 421.1 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.09337, allocations: 0.6973 MB / 421.8 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008603/0.09424, allocations: 0.5839 MB / 422.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.0958, allocations: 0.884 MB / 423.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1581/0.2539, allocations: 1.079 MB / 424.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005869/0.2545, allocations: 312.9 kB / 424.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005491/0.2551, allocations: 476.5 kB / 425.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007199/0.2558, allocations: 0.7629 MB / 425.9 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.663e-05/0.2559, allocations: 54.09 kB / 425.9 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005659/0.2565, allocations: 265.3 kB / 426.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005479/0.2571, allocations: 0.9218 MB / 427.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002929/0.2574, allocations: 455.1 kB / 427.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001616/0.259, allocations: 2.651 MB / 430.2 MB, free: 35.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.259, allocations: 5.234 kB / 430.2 MB, free: 35.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.259, allocations: 0 / 430.2 MB, free: 35.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.468e-05/0.2591, allocations: 0 / 430.2 MB, free: 35.22 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.004838/0.2639, allocations: 2.992 MB / 433.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2639, allocations: 6.594 kB / 433.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.2641, allocations: 118 kB / 433.3 MB, free: 33.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003162/0.2644, allocations: 290 kB / 433.6 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002413/0.2668, allocations: 2.059 MB / 435.7 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.267, allocations: 225.1 kB / 435.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.445e-05/0.2671, allocations: 61.28 kB / 435.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.2686, allocations: 1.023 MB / 437 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.2686, allocations: 0 / 437 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.212e-05/0.2687, allocations: 35.98 kB / 437 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.2687, allocations: 16.47 kB / 437 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.27, allocations: 0.715 MB / 437.7 MB, free: 32.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00641/0.2764, allocations: 4.896 MB / 442.6 MB, free: 31.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001872/0.2783, allocations: 1.429 MB / 444.1 MB, free: 31.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008534/0.2792, allocations: 0.5416 MB / 444.6 MB, free: 30.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001319/0.2793, allocations: 90.09 kB / 444.7 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.2794, allocations: 45.62 kB / 444.7 MB, free: 30.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.294e-06/0.2794, allocations: 0 / 444.7 MB, free: 30.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.003909/0.2833, allocations: 1.726 MB / 446.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.2834, allocations: 0.5948 MB / 447 MB, free: 29.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005421/0.2888, allocations: 4.884 MB / 451.9 MB, free: 27.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001139/0.289, allocations: 39.55 kB / 452 MB, free: 27.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007994/0.2898, allocations: 1.132 MB / 453.1 MB, free: 26.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.2899, allocations: 217.1 kB / 453.3 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.29, allocations: 11.38 kB / 453.3 MB, free: 26.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.58e-05/0.29, allocations: 336.1 kB / 453.7 MB, free: 26.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006207/0.2907, allocations: 337.3 kB / 454 MB, free: 26.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000693/0.2914, allocations: 0.5712 MB / 454.6 MB, free: 25.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006584/0.292, allocations: 374.2 kB / 454.9 MB, free: 25.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2921, allocations: 2.297 kB / 454.9 MB, free: 25.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002575/0.2946, allocations: 1.277 MB / 456.2 MB, free: 25.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2947, allocations: 9.469 kB / 456.2 MB, free: 25.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.2947, allocations: 7.031 kB / 456.2 MB, free: 25.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000928/0.2956, allocations: 251.5 kB / 456.5 MB, free: 25.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006203/0.2962, allocations: 188.2 kB / 456.6 MB, free: 25.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002892/0.2991, allocations: 2.47 MB / 459.1 MB, free: 23.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.3004, allocations: 133.1 kB / 459.2 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-05/0.3005, allocations: 19.38 kB / 459.3 MB, free: 23.29 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(flow=false start = bat2.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.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: 8 * 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 (67): * Single equations (assignments): 66 * 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 {6 6} Notification: Performance of prepare postOptimizeDAE: time 0.00173/0.3022, allocations: 0.9503 MB / 460.2 MB, free: 22.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007396/0.303, allocations: 265.1 kB / 460.5 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003138/0.3061, allocations: 1.308 MB / 461.8 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3061, allocations: 10.12 kB / 461.8 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.3061, allocations: 0 / 461.8 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3061, allocations: 3.422 kB / 461.8 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006504/0.3127, allocations: 3.422 MB / 465.2 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.3127, allocations: 5.062 kB / 465.2 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000591/0.3133, allocations: 153.6 kB / 465.4 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009268/0.3142, allocations: 262 kB / 465.6 MB, free: 20.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.025e-05/0.3143, allocations: 16.84 kB / 465.6 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002548/0.3169, allocations: 2.437 MB / 468.1 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3169, allocations: 1.375 kB / 468.1 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003703/0.3206, allocations: 1.748 MB / 469.8 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.3218, allocations: 0.5301 MB / 470.4 MB, free: 17.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006922/0.3225, allocations: 18.59 kB / 470.4 MB, free: 17.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.3238, allocations: 109.6 kB / 470.5 MB, free: 17.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.324, allocations: 85.5 kB / 470.6 MB, free: 17.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.248e-05/0.324, allocations: 21.03 kB / 470.6 MB, free: 17.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.006873/0.3309, allocations: 3.521 MB / 474.1 MB, free: 16.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3309, allocations: 0 / 474.1 MB, free: 16.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00227/0.3332, allocations: 350.6 kB / 474.5 MB, free: 16.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.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 (55): * Single equations (assignments): 54 * 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 {6 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005237/0.3385, allocations: 2.486 MB / 476.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002354/0.3409, allocations: 1.012 MB / 478 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/0.3409, allocations: 6.422 kB / 478 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001291/0.3422, allocations: 0.6387 MB / 478.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00268/0.3449, allocations: 200.7 kB / 478.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04397/0.3889, allocations: 22.02 MB / 0.4891 GB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002103/0.391, allocations: 1.818 MB / 0.4909 GB, free: 9.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001222/0.3923, allocations: 372.2 kB / 0.4912 GB, free: 9.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00161/0.3939, allocations: 0.9523 MB / 0.4921 GB, free: 8.344 MB / 366.1 MB Notification: Performance of SimCode: time 1.413e-06/0.3939, allocations: 0 / 0.4921 GB, free: 8.344 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07268/0.4666, allocations: 48.22 MB / 0.5392 GB, free: 8.312 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002357/0.4669, allocations: 265.7 kB / 0.5395 GB, free: 7.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.577/3.043, allocations: 0 / 0.5395 GB, free: 7.969 MB / 414.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1) Environment - environmentSimulation: