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-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001555/0.001555, allocations: 104.3 kB / 16.03 MB, free: 6.316 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.001705/0.001705, allocations: 190.1 kB / 16.95 MB, free: 6.145 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.325/1.325, allocations: 222.9 MB / 240.6 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0475/0.0475, allocations: 8.084 MB / 298.9 MB, free: 6.902 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 59.91 kB / 361.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2063, allocations: 51.52 MB / 412.8 MB, free: 25.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.004918/0.2112, allocations: 4.792 MB / 417.6 MB, free: 20.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.2133, allocations: 1.584 MB / 419.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000259/0.2136, allocations: 12 kB / 419.2 MB, free: 19.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009076/0.2145, allocations: 0.7268 MB / 420 MB, free: 18.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007608/0.2153, allocations: 0.6074 MB / 420.6 MB, free: 18.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001514/0.2169, allocations: 1.063 MB / 421.6 MB, free: 16.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008284/0.2177, allocations: 1.246 MB / 422.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004101/0.2181, allocations: 414.2 kB / 423.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003518/0.2185, allocations: 0.5842 MB / 423.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006292/0.2191, allocations: 0.9506 MB / 424.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.2192, allocations: 128 kB / 424.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004645/0.2197, allocations: 355.8 kB / 425.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000419/0.2201, allocations: 0.9779 MB / 426.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006038/0.2207, allocations: 1.208 MB / 427.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00175/0.2225, allocations: 3.303 MB / 430.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2225, allocations: 0 / 430.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2225, allocations: 7.938 kB / 430.8 MB, free: 7.754 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.528e-05/0.2226, allocations: 0 / 430.8 MB, free: 7.754 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.005656/0.2282, allocations: 3.403 MB / 434.2 MB, free: 4.277 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.2283, allocations: 11.89 kB / 434.2 MB, free: 4.266 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.2284, allocations: 114.7 kB / 434.3 MB, free: 4.145 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004344/0.2289, allocations: 293.3 kB / 434.6 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002299/0.2312, allocations: 2.179 MB / 436.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001402/0.2313, allocations: 228.1 kB / 437 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-05/0.2314, allocations: 64.31 kB / 437.1 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.2329, allocations: 1.004 MB / 438.1 MB, free: 220 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.2329, allocations: 0 / 438.1 MB, free: 220 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.119e-05/0.233, allocations: 28 kB / 438.1 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.233, allocations: 16 kB / 438.1 MB, free: 176 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.2344, allocations: 0.6845 MB / 438.8 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006992/0.2414, allocations: 4.839 MB / 443.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/0.2436, allocations: 1.383 MB / 445 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009783/0.2446, allocations: 0.5184 MB / 445.5 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00016/0.2448, allocations: 89.67 kB / 445.6 MB, free: 8.375 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/0.2448, allocations: 51.06 kB / 445.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of pre-optimization done (n=64): time 2.655e-06/0.2448, allocations: 4 kB / 445.7 MB, free: 8.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004567/0.2494, allocations: 1.657 MB / 447.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002267/0.2496, allocations: 0.5935 MB / 447.9 MB, free: 5.895 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006144/0.2558, allocations: 4.881 MB / 452.8 MB, free: 1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001716/0.256, allocations: 41.7 kB / 452.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009637/0.257, allocations: 1.135 MB / 454 MB, free: 15.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.2572, allocations: 216.8 kB / 454.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.2574, allocations: 122.2 kB / 454.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.2575, allocations: 337.8 kB / 454.6 MB, free: 15.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000741/0.2583, allocations: 313.2 kB / 454.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009/0.2592, allocations: 0.5545 MB / 455.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005721/0.2649, allocations: 1.677 MB / 457.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.2649, allocations: 0 / 457.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003465/0.2684, allocations: 1.244 MB / 458.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.2685, allocations: 4 kB / 458.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.2685, allocations: 4 kB / 458.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.2696, allocations: 256.5 kB / 458.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006767/0.2703, allocations: 171.8 kB / 458.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003548/0.2738, allocations: 2.702 MB / 461.6 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.2751, allocations: 103.5 kB / 461.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.628e-05/0.2752, allocations: 24 kB / 461.7 MB, free: 7.824 MB / 334.1 MB Warning: Assuming fixed start value for the following 3 variables: bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.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 bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.001381/0.2766, allocations: 0.9388 MB / 462.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007057/0.2773, allocations: 260.6 kB / 462.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003089/0.2804, allocations: 1.272 MB / 464.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.2804, allocations: 4.109 kB / 464.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2804, allocations: 3.938 kB / 464.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.2804, allocations: 7.922 kB / 464.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006475/0.2869, allocations: 3.381 MB / 467.5 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.2869, allocations: 4 kB / 467.5 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006313/0.2876, allocations: 143.8 kB / 467.7 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.2887, allocations: 252.7 kB / 467.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.416e-05/0.2888, allocations: 15.98 kB / 467.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003224/0.292, allocations: 2.68 MB / 470.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.292, allocations: 3.938 kB / 470.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003721/0.2957, allocations: 1.686 MB / 472.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/0.2969, allocations: 0.525 MB / 472.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005841/0.2975, allocations: 31.98 kB / 472.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001085/0.2986, allocations: 79.92 kB / 473 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.2989, allocations: 76.45 kB / 473 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.123e-05/0.2989, allocations: 27.94 kB / 473.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.005558/0.3045, allocations: 3.515 MB / 476.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3045, allocations: 0 / 476.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001591/0.3061, allocations: 347.5 kB / 476.9 MB, free: 8.289 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004918/0.311, allocations: 2.438 MB / 479.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002522/0.3136, allocations: 0.9944 MB / 480.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.3136, allocations: 240 / 480.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001399/0.315, allocations: 0.6349 MB / 481 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002135/0.3172, allocations: 211.5 kB / 481.2 MB, free: 4.031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05916/0.3763, allocations: 31.25 MB / 0.5004 GB, free: 2.883 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002033/0.3784, allocations: 1.82 MB / 0.5022 GB, free: 1.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001061/0.3795, allocations: 360.1 kB / 0.5025 GB, free: 0.668 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1503/0.5298, allocations: 0.9604 MB / 0.5035 GB, free: 91.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5299, allocations: 0 / 0.5035 GB, free: 91.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06305/0.5929, allocations: 50 MB / 0.5523 GB, free: 50.52 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/0.5931, allocations: 274.7 kB / 0.5526 GB, free: 50.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.025/3.618, allocations: 8.484 kB / 0.5526 GB, free: 50.14 MB / 382.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/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)