Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.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.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",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.001165/0.001165, allocations: 105.2 kB / 16.31 MB, free: 6.391 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.001263/0.001263, allocations: 191.2 kB / 17.24 MB, free: 5.922 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.345/1.345, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04857/0.04857, allocations: 8.098 MB / 299.2 MB, free: 6.734 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 59.91 kB / 361.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2408, allocations: 51.53 MB / 413.4 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.007846/0.2487, allocations: 4.674 MB / 418 MB, free: 20.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00334/0.2521, allocations: 1.446 MB / 419.5 MB, free: 19.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004603/0.2526, allocations: 12 kB / 419.5 MB, free: 19.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.2539, allocations: 0.498 MB / 420 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.255, allocations: 425.7 kB / 420.4 MB, free: 18.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002635/0.2577, allocations: 1.066 MB / 421.5 MB, free: 17.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.2588, allocations: 0.8443 MB / 422.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005516/0.2593, allocations: 306.9 kB / 422.6 MB, free: 16.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004574/0.2598, allocations: 382.7 kB / 423 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000678/0.2605, allocations: 0.5763 MB / 423.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.2606, allocations: 80 kB / 423.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006154/0.2613, allocations: 307.8 kB / 424 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.2616, allocations: 426.8 kB / 424.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004787/0.2621, allocations: 0.606 MB / 425 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001225/0.2633, allocations: 1.655 MB / 426.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2633, allocations: 0 / 426.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2633, allocations: 0 / 426.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.2633, allocations: 0 / 426.6 MB, free: 12.27 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004667/0.268, allocations: 2.111 MB / 428.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.2681, allocations: 15.89 kB / 428.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001046/0.2682, allocations: 106.7 kB / 428.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/0.2684, allocations: 147.2 kB / 429 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.2694, allocations: 0.986 MB / 430 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.2696, allocations: 194.4 kB / 430.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.294e-05/0.2696, allocations: 60.38 kB / 430.2 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.2708, allocations: 0.8594 MB / 431.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.2709, allocations: 0 / 431.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.447e-05/0.2709, allocations: 24 kB / 431.1 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.2709, allocations: 12 kB / 431.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.272, allocations: 0.7236 MB / 431.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004572/0.2766, allocations: 4.073 MB / 435.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001708/0.2783, allocations: 1.283 MB / 437.2 MB, free: 1.156 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007313/0.2791, allocations: 0.5466 MB / 437.8 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.238e-05/0.2792, allocations: 28.95 kB / 437.8 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.2792, allocations: 51.5 kB / 437.8 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of pre-optimization done (n=85): time 3.056e-06/0.2792, allocations: 0 / 437.8 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01076/0.29, allocations: 3.13 MB / 441 MB, free: 13.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.2902, allocations: 244.3 kB / 441.2 MB, free: 13.06 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002395/0.2926, allocations: 1.809 MB / 443 MB, free: 11.24 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.2927, allocations: 45.7 kB / 443.1 MB, free: 11.19 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000401/0.2931, allocations: 497.8 kB / 443.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00023/0.2933, allocations: 283.8 kB / 443.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002444/0.2936, allocations: 146.6 kB / 444 MB, free: 10.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.2937, allocations: 334 kB / 444.3 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007667/0.2945, allocations: 425.8 kB / 444.7 MB, free: 9.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008524/0.2953, allocations: 0.5461 MB / 445.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008669/0.304, allocations: 2.603 MB / 447.9 MB, free: 6.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.3041, allocations: 4 kB / 447.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004249/0.3083, allocations: 1.714 MB / 449.6 MB, free: 4.598 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.3084, allocations: 4 kB / 449.6 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3084, allocations: 4 kB / 449.6 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00275/0.3111, allocations: 0.8128 MB / 450.4 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004262/0.3116, allocations: 119.9 kB / 450.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002473/0.3141, allocations: 1.475 MB / 452 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006986/0.3148, allocations: 87.33 kB / 452.1 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.829e-05/0.3148, allocations: 27.98 kB / 452.1 MB, free: 2.043 MB / 318.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 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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 {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0006795/0.3155, allocations: 449.6 kB / 452.5 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001884/0.3157, allocations: 126.5 kB / 452.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004067/0.3198, allocations: 1.756 MB / 454.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.3198, allocations: 12 kB / 454.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3198, allocations: 0 / 454.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.3198, allocations: 3.984 kB / 454.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006134/0.326, allocations: 3.386 MB / 457.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.326, allocations: 4 kB / 457.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003909/0.3264, allocations: 99.89 kB / 457.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002755/0.3292, allocations: 0.789 MB / 458.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-05/0.3293, allocations: 23.94 kB / 458.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002503/0.3318, allocations: 1.467 MB / 460.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3318, allocations: 0 / 460.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005146/0.3369, allocations: 2.335 MB / 462.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004544/0.3374, allocations: 275.5 kB / 462.8 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001485/0.3376, allocations: 23.98 kB / 462.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005624/0.3381, allocations: 47.97 kB / 462.9 MB, free: 7.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.3383, allocations: 64.91 kB / 462.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.312e-05/0.3384, allocations: 23.98 kB / 463 MB, free: 7.016 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001696/0.3401, allocations: 1.306 MB / 464.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3401, allocations: 0 / 464.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007801/0.3409, allocations: 247.7 kB / 464.5 MB, free: 5.461 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * 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 {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005838/0.3467, allocations: 3.075 MB / 467.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004074/0.3508, allocations: 1.398 MB / 469 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.3508, allocations: 7.938 kB / 469 MB, free: 1.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002604/0.3535, allocations: 0.8523 MB / 469.8 MB, free: 180 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008477/0.3543, allocations: 104.5 kB / 469.9 MB, free: 72 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02256/0.3769, allocations: 14.69 MB / 484.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001005/0.378, allocations: 1.181 MB / 485.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005164/0.3785, allocations: 167.2 kB / 486 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005438/0.379, allocations: 435.3 kB / 486.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.379, allocations: 0 / 486.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09418/0.4732, allocations: 28.05 MB / 0.5024 GB, free: 3.289 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.04, allocations: 7.031 kB / 0.5024 GB, free: 3.285 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery_res.csv --start-time 0 --stop-time 21600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8.64 PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)