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/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.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.000737/0.0007372, allocations: 94.28 kB / 15.75 MB, free: 404 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.0007748/0.0007748, allocations: 170.4 kB / 16.62 MB, free: 6.109 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.3 MB / 240.6 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1453/0.1453, allocations: 8.092 MB / 299.8 MB, free: 2.906 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002906/0.0002906, allocations: 16 kB / 363 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09052, allocations: 52.52 MB / 415.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004302/0.09486, allocations: 4.05 MB / 419.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.09705, allocations: 1.316 MB / 420.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003654/0.09744, allocations: 12 kB / 420.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000817/0.09827, allocations: 450.5 kB / 421.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007444/0.09903, allocations: 370.3 kB / 421.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001528/0.1006, allocations: 0.8451 MB / 422.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009425/0.1015, allocations: 0.7468 MB / 423.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000392/0.1019, allocations: 244.1 kB / 423.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004087/0.1023, allocations: 314.8 kB / 423.8 MB, free: 244 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.156/0.2584, allocations: 497.9 kB / 424.3 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001954/0.2586, allocations: 38.28 kB / 424.3 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006767/0.2593, allocations: 249.5 kB / 424.6 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002721/0.2596, allocations: 386.4 kB / 424.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.2598, allocations: 237 kB / 425.2 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009266/0.2607, allocations: 1.286 MB / 426.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2608, allocations: 0 / 426.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2608, allocations: 0 / 426.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.2608, allocations: 0 / 426.5 MB, free: 35.25 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004003/0.2648, allocations: 1.912 MB / 428.4 MB, free: 34.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2648, allocations: 13.28 kB / 428.4 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.265, allocations: 105.3 kB / 428.5 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.2651, allocations: 147.8 kB / 428.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.2662, allocations: 0.943 MB / 429.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.671e-05/0.2663, allocations: 197.4 kB / 429.8 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.468e-05/0.2663, allocations: 60.19 kB / 429.8 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.2675, allocations: 0.8548 MB / 430.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2675, allocations: 1.125 kB / 430.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.615e-05/0.2676, allocations: 23.56 kB / 430.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.2676, allocations: 16.52 kB / 430.7 MB, free: 33.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000976/0.2686, allocations: 0.7328 MB / 431.4 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004108/0.2727, allocations: 4.096 MB / 435.5 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.2743, allocations: 1.301 MB / 436.8 MB, free: 31.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007158/0.275, allocations: 0.5628 MB / 437.4 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-05/0.2751, allocations: 23.48 kB / 437.4 MB, free: 31.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.2751, allocations: 47.25 kB / 437.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=85): time 2.174e-06/0.2751, allocations: 0 / 437.5 MB, free: 31.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.00865/0.2838, allocations: 3.174 MB / 440.7 MB, free: 31.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.2838, allocations: 246.3 kB / 440.9 MB, free: 31.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001668/0.2855, allocations: 1.81 MB / 442.7 MB, free: 30.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.565e-05/0.2856, allocations: 43.39 kB / 442.7 MB, free: 30.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002948/0.2859, allocations: 492.9 kB / 443.2 MB, free: 30.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.286, allocations: 295.2 kB / 443.5 MB, free: 30.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.331e-05/0.2861, allocations: 15.44 kB / 443.5 MB, free: 30.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.971e-05/0.2862, allocations: 331.6 kB / 443.9 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006012/0.2868, allocations: 435.2 kB / 444.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006425/0.2874, allocations: 0.5442 MB / 444.8 MB, free: 29.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006432/0.2881, allocations: 465 kB / 445.3 MB, free: 29.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2881, allocations: 0 / 445.3 MB, free: 29.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003234/0.2913, allocations: 1.732 MB / 447 MB, free: 28.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.2913, allocations: 3.562 kB / 447 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.2914, allocations: 6.875 kB / 447 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002333/0.2937, allocations: 0.8173 MB / 447.8 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000377/0.2941, allocations: 117.8 kB / 447.9 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001895/0.296, allocations: 1.486 MB / 449.4 MB, free: 27.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005057/0.2965, allocations: 99.98 kB / 449.5 MB, free: 27.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.2966, allocations: 26.83 kB / 449.6 MB, free: 27.28 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 (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 (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 {16 22} Notification: Performance of prepare postOptimizeDAE: time 0.0004936/0.2971, allocations: 446.8 kB / 450 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.2972, allocations: 128.2 kB / 450.1 MB, free: 26.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003354/0.3006, allocations: 1.797 MB / 451.9 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.3006, allocations: 8.812 kB / 451.9 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3006, allocations: 0 / 451.9 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.3006, allocations: 7.031 kB / 451.9 MB, free: 26.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004802/0.3054, allocations: 3.423 MB / 455.4 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3054, allocations: 3.234 kB / 455.4 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003343/0.3058, allocations: 109 kB / 455.5 MB, free: 24.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002206/0.308, allocations: 0.7812 MB / 456.2 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/0.3081, allocations: 26.53 kB / 456.3 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001842/0.3099, allocations: 1.463 MB / 457.7 MB, free: 23.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3099, allocations: 6.391 kB / 457.7 MB, free: 23.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004064/0.314, allocations: 2.372 MB / 460.1 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003573/0.3144, allocations: 279.2 kB / 460.4 MB, free: 22.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.3145, allocations: 23.92 kB / 460.4 MB, free: 22.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004816/0.315, allocations: 56.5 kB / 460.5 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.3152, allocations: 69.5 kB / 460.5 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-05/0.3152, allocations: 29.39 kB / 460.6 MB, free: 22.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001663/0.3169, allocations: 1.3 MB / 461.9 MB, free: 21.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3169, allocations: 0 / 461.9 MB, free: 21.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006734/0.3176, allocations: 250.9 kB / 462.1 MB, free: 21.73 MB / 350.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 (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 {16 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.00487/0.3225, allocations: 3.108 MB / 465.2 MB, free: 20.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003073/0.3255, allocations: 1.366 MB / 466.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3256, allocations: 0.7188 kB / 466.6 MB, free: 19.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002165/0.3277, allocations: 0.8666 MB / 467.4 MB, free: 19.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006168/0.3284, allocations: 110.5 kB / 467.6 MB, free: 19.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/0.3448, allocations: 10.07 MB / 477.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006611/0.3455, allocations: 1.178 MB / 478.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003722/0.3459, allocations: 164.4 kB / 479 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004636/0.3463, allocations: 434.9 kB / 479.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3463, allocations: 0 / 479.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03981/0.3861, allocations: 26.23 MB / 0.4938 GB, free: 8.09 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/0.3864, allocations: 254.8 kB / 0.494 GB, free: 7.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.088/2.474, allocations: 3.875 kB / 0.494 GB, free: 7.75 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1) Environment - environmentSimulation: