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.0009503/0.0009505, allocations: 101 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.001042/0.001042, allocations: 174.2 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.226/1.226, allocations: 223.2 MB / 240.6 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1451/0.1451, allocations: 8.078 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.0002949/0.0002949, allocations: 8 kB / 362.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08406/0.08437, allocations: 52.51 MB / 415.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.003992/0.08839, allocations: 3.918 MB / 419.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.09026, allocations: 1.5 MB / 420.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.09046, allocations: 12 kB / 420.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008603/0.09133, allocations: 0.6815 MB / 421.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006935/0.09203, allocations: 0.608 MB / 422.1 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001443/0.09348, allocations: 0.8876 MB / 423 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000783/0.09428, allocations: 0.7641 MB / 423.7 MB, free: 256 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1408/0.235, allocations: 307.5 kB / 424 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005992/0.2357, allocations: 476.2 kB / 424.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006366/0.2363, allocations: 0.6848 MB / 425.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.789e-05/0.2364, allocations: 55.91 kB / 425.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004918/0.2369, allocations: 236.2 kB / 425.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004792/0.2374, allocations: 0.9063 MB / 426.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002382/0.2377, allocations: 449.8 kB / 426.8 MB, free: 35.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001507/0.2392, allocations: 2.649 MB / 429.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.794e-06/0.2392, allocations: 2.625 kB / 429.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2392, allocations: 0 / 429.5 MB, free: 35.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.2392, allocations: 0 / 429.5 MB, free: 35.12 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.005033/0.2442, allocations: 2.987 MB / 432.5 MB, free: 33.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.2443, allocations: 12.97 kB / 432.5 MB, free: 33.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001159/0.2444, allocations: 112 kB / 432.6 MB, free: 33.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002751/0.2447, allocations: 289.9 kB / 432.9 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002496/0.2472, allocations: 2.065 MB / 434.9 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.2473, allocations: 221.2 kB / 435.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.436e-05/0.2474, allocations: 63.02 kB / 435.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.2489, allocations: 1.015 MB / 436.2 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.2489, allocations: 4 kB / 436.2 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.098e-05/0.249, allocations: 36.83 kB / 436.3 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.249, allocations: 16.25 kB / 436.3 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.2502, allocations: 0.7113 MB / 437 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005594/0.2558, allocations: 4.897 MB / 441.9 MB, free: 31.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.2578, allocations: 1.425 MB / 443.3 MB, free: 31.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.2579, allocations: 90.7 kB / 443.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.258, allocations: 52.53 kB / 443.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 1.823e-06/0.258, allocations: 0 / 443.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.003983/0.262, allocations: 1.734 MB / 445.2 MB, free: 30.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.2621, allocations: 0.5902 MB / 445.8 MB, free: 29.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004397/0.2665, allocations: 4.885 MB / 450.7 MB, free: 28.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.743e-05/0.2666, allocations: 44.02 kB / 450.7 MB, free: 28.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007271/0.2673, allocations: 1.129 MB / 451.8 MB, free: 27.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.2674, allocations: 220.7 kB / 452 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.2675, allocations: 16.12 kB / 452.1 MB, free: 27.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.659e-05/0.2675, allocations: 331.2 kB / 452.4 MB, free: 26.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006231/0.2681, allocations: 343.6 kB / 452.7 MB, free: 26.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007233/0.2689, allocations: 0.5616 MB / 453.3 MB, free: 26.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006504/0.2695, allocations: 382.2 kB / 453.7 MB, free: 26.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.2695, allocations: 3.953 kB / 453.7 MB, free: 26.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002392/0.2719, allocations: 1.28 MB / 454.9 MB, free: 25.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.272, allocations: 3 kB / 454.9 MB, free: 25.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.272, allocations: 6.328 kB / 454.9 MB, free: 25.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.273, allocations: 254.7 kB / 455.2 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000671/0.2737, allocations: 179.6 kB / 455.4 MB, free: 25.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00257/0.2763, allocations: 2.541 MB / 457.9 MB, free: 23.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009713/0.2773, allocations: 132.1 kB / 458 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.53e-05/0.2773, allocations: 23.56 kB / 458.1 MB, free: 23.6 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: 5 * 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.00107/0.2784, allocations: 0.9456 MB / 459 MB, free: 23.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002982/0.2787, allocations: 261 kB / 459.3 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002632/0.2814, allocations: 1.323 MB / 460.6 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.2814, allocations: 11.75 kB / 460.6 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.2814, allocations: 0 / 460.6 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.2814, allocations: 3.469 kB / 460.6 MB, free: 22.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004966/0.2864, allocations: 3.397 MB / 464 MB, free: 21.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2864, allocations: 5.344 kB / 464 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006501/0.2871, allocations: 150.6 kB / 464.2 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.2881, allocations: 265.3 kB / 464.4 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.874e-05/0.2881, allocations: 12.34 kB / 464.4 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002512/0.2907, allocations: 2.502 MB / 466.9 MB, free: 19.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2907, allocations: 0 / 466.9 MB, free: 19.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003422/0.2941, allocations: 1.758 MB / 468.7 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/0.2951, allocations: 0.5246 MB / 469.2 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/0.2954, allocations: 22.06 kB / 469.2 MB, free: 17.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008094/0.2962, allocations: 105.5 kB / 469.3 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.2964, allocations: 77.91 kB / 469.4 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.2964, allocations: 18.16 kB / 469.4 MB, free: 17.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.004525/0.3009, allocations: 3.528 MB / 473 MB, free: 16.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.301, allocations: 1.219 kB / 473 MB, free: 16.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009818/0.3019, allocations: 357.2 kB / 473.3 MB, free: 16.69 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.004052/0.306, allocations: 2.495 MB / 475.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.3081, allocations: 1.026 MB / 476.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.226e-05/0.3082, allocations: 1.703 kB / 476.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/0.3093, allocations: 0.6128 MB / 477.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007718/0.3101, allocations: 193.7 kB / 477.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.3207, allocations: 10.59 MB / 488.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/0.3222, allocations: 1.869 MB / 490.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006836/0.3229, allocations: 363.2 kB / 490.4 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009633/0.3238, allocations: 0.9607 MB / 491.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3238, allocations: 0 / 491.4 MB, free: 3.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0647/0.3885, allocations: 46.61 MB / 0.5254 GB, free: 6.344 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.3887, allocations: 250.2 kB / 0.5256 GB, free: 6.008 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.391/2.78, allocations: 0 / 0.5256 GB, free: 6.008 MB / 398.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: