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.001094/0.001094, allocations: 108.6 kB / 16.03 MB, free: 6.273 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.001078/0.001078, allocations: 192 kB / 16.95 MB, free: 6.098 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.295/1.295, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04752/0.04752, allocations: 8.094 MB / 298.9 MB, free: 6.898 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.89 kB / 361.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1992, allocations: 51.53 MB / 412.9 MB, free: 25.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004339/0.2036, allocations: 4.679 MB / 417.5 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.2053, allocations: 1.415 MB / 418.9 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.2055, allocations: 12 kB / 419 MB, free: 19.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007255/0.2062, allocations: 474.5 kB / 419.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005292/0.2068, allocations: 382.3 kB / 419.8 MB, free: 18.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.2082, allocations: 1.004 MB / 420.8 MB, free: 17.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005803/0.2088, allocations: 0.8482 MB / 421.6 MB, free: 16.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003297/0.2091, allocations: 314.8 kB / 422 MB, free: 16.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.2093, allocations: 378.7 kB / 422.3 MB, free: 16.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004835/0.2098, allocations: 0.5881 MB / 422.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.28e-05/0.2099, allocations: 83.94 kB / 423 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004288/0.2104, allocations: 307.8 kB / 423.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002391/0.2106, allocations: 422.8 kB / 423.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003258/0.2109, allocations: 0.6137 MB / 424.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.212, allocations: 1.651 MB / 426 MB, free: 12.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.212, allocations: 0 / 426 MB, free: 12.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.212, allocations: 4 kB / 426 MB, free: 12.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.212, allocations: 0 / 426 MB, free: 12.58 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.004551/0.2166, allocations: 2.115 MB / 428.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.2167, allocations: 11.89 kB / 428.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.2168, allocations: 102.7 kB / 428.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.217, allocations: 147.2 kB / 428.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009875/0.218, allocations: 0.9899 MB / 429.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.2181, allocations: 194.4 kB / 429.5 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.207e-05/0.2182, allocations: 60.38 kB / 429.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.2193, allocations: 0.8516 MB / 430.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.2194, allocations: 0 / 430.4 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.064e-05/0.2194, allocations: 28 kB / 430.5 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.2195, allocations: 16 kB / 430.5 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009808/0.2204, allocations: 0.7236 MB / 431.2 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004148/0.2246, allocations: 4.065 MB / 435.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.2263, allocations: 1.283 MB / 436.6 MB, free: 1.473 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007126/0.227, allocations: 0.5471 MB / 437.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.807e-05/0.2271, allocations: 32.91 kB / 437.1 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.2271, allocations: 47.5 kB / 437.2 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=85): time 2.464e-06/0.2271, allocations: 3.984 kB / 437.2 MB, free: 0.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=85): time 0.01051/0.2376, allocations: 3.122 MB / 440.3 MB, free: 13.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.2378, allocations: 248.3 kB / 440.5 MB, free: 13.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002105/0.2399, allocations: 1.813 MB / 442.4 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.862e-05/0.24, allocations: 41.7 kB / 442.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003862/0.2404, allocations: 493.8 kB / 442.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000218/0.2406, allocations: 291.8 kB / 443.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002459/0.2409, allocations: 142.7 kB / 443.3 MB, free: 10.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.241, allocations: 337.9 kB / 443.6 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007343/0.2417, allocations: 429.8 kB / 444.1 MB, free: 9.828 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008071/0.2425, allocations: 0.5307 MB / 444.6 MB, free: 9.266 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008835/0.2514, allocations: 2.607 MB / 447.2 MB, free: 6.648 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2514, allocations: 0 / 447.2 MB, free: 6.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004237/0.2556, allocations: 1.714 MB / 448.9 MB, free: 4.926 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.2557, allocations: 4 kB / 448.9 MB, free: 4.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.2557, allocations: 4 kB / 448.9 MB, free: 4.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002884/0.2586, allocations: 0.8206 MB / 449.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004816/0.2591, allocations: 115.8 kB / 449.9 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002539/0.2616, allocations: 1.471 MB / 451.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007933/0.2625, allocations: 99.27 kB / 451.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.601e-05/0.2625, allocations: 24 kB / 451.4 MB, free: 2.363 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.0006716/0.2632, allocations: 445.6 kB / 451.9 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/0.2634, allocations: 118.5 kB / 452 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004159/0.2676, allocations: 1.771 MB / 453.8 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.2676, allocations: 8 kB / 453.8 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2676, allocations: 0 / 453.8 MB, free: 8 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.2676, allocations: 3.984 kB / 453.8 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00622/0.2739, allocations: 3.386 MB / 457.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.2739, allocations: 0 / 457.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003981/0.2743, allocations: 111.8 kB / 457.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00283/0.2771, allocations: 0.7812 MB / 458.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.58e-05/0.2772, allocations: 27.92 kB / 458.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/0.2797, allocations: 1.455 MB / 459.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2797, allocations: 3.938 kB / 459.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005097/0.2848, allocations: 2.335 MB / 461.9 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005228/0.2854, allocations: 283.4 kB / 462.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/0.2856, allocations: 16 kB / 462.2 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006503/0.2863, allocations: 51.91 kB / 462.2 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.2865, allocations: 64.89 kB / 462.3 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.07e-05/0.2865, allocations: 24 kB / 462.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001835/0.2884, allocations: 1.306 MB / 463.6 MB, free: 6.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2884, allocations: 0 / 463.6 MB, free: 6.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007895/0.2892, allocations: 251.7 kB / 463.9 MB, free: 5.773 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.005815/0.295, allocations: 3.077 MB / 466.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004057/0.2991, allocations: 1.398 MB / 468.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.2991, allocations: 0 / 468.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002704/0.3018, allocations: 0.8523 MB / 469.2 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.303, allocations: 114.2 kB / 469.3 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02732/0.3303, allocations: 15.01 MB / 484.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009104/0.3313, allocations: 1.181 MB / 485.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005/0.3318, allocations: 167.2 kB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000642/0.3325, allocations: 435.3 kB / 486.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3325, allocations: 0 / 486.1 MB, free: 15.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04665/0.3791, allocations: 27.72 MB / 0.5017 GB, free: 3.66 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002316/0.3794, allocations: 278.8 kB / 0.502 GB, free: 3.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.447/2.826, allocations: 4 kB / 0.502 GB, free: 3.273 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 & /home/hudson/saved_omc/OMSimulator/install/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)