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.0008869/0.000887, allocations: 95.34 kB / 15.73 MB, free: 440 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.0009597/0.0009597, allocations: 180.7 kB / 16.61 MB, free: 6.887 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.5 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1397/0.1397, allocations: 8.092 MB / 299.7 MB, free: 2.965 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002735/0.0002735, allocations: 15.98 kB / 362.9 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08926/0.08955, allocations: 52.5 MB / 415.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.00402/0.0936, allocations: 3.841 MB / 419.2 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001805/0.09543, allocations: 1.329 MB / 420.5 MB, free: 3.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.09561, allocations: 12 kB / 420.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006896/0.0963, allocations: 434.5 kB / 421 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005409/0.09686, allocations: 403 kB / 421.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001378/0.09825, allocations: 0.8566 MB / 422.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006207/0.09888, allocations: 0.5613 MB / 422.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000307/0.0992, allocations: 236.2 kB / 423 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.09945, allocations: 307 kB / 423.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000508/0.09996, allocations: 466.4 kB / 423.8 MB, free: 208 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.864e-05/0.1, allocations: 36 kB / 423.8 MB, free: 172 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.15/0.2501, allocations: 214.4 kB / 424 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003714/0.2505, allocations: 377.2 kB / 424.4 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002436/0.2507, allocations: 239.1 kB / 424.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001296/0.252, allocations: 1.272 MB / 425.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2521, allocations: 3.344 kB / 425.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.155e-06/0.2521, allocations: 1.938 kB / 425.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.2521, allocations: 0 / 425.9 MB, free: 35.71 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.004433/0.2565, allocations: 1.912 MB / 427.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.2566, allocations: 10.53 kB / 427.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.2567, allocations: 105.6 kB / 427.9 MB, free: 34.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.2569, allocations: 152.1 kB / 428.1 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001164/0.258, allocations: 0.944 MB / 429 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.2582, allocations: 193 kB / 429.2 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.397e-05/0.2583, allocations: 60.66 kB / 429.3 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.2594, allocations: 0.849 MB / 430.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2594, allocations: 0 / 430.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.063e-05/0.2595, allocations: 30.2 kB / 430.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.2595, allocations: 16.73 kB / 430.2 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.2605, allocations: 0.7283 MB / 430.9 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004307/0.2648, allocations: 4.109 MB / 435 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.2665, allocations: 1.297 MB / 436.3 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.382e-05/0.2666, allocations: 17.28 kB / 436.3 MB, free: 32.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.2666, allocations: 51.98 kB / 436.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=85): time 2.144e-06/0.2666, allocations: 4 kB / 436.4 MB, free: 32.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.01004/0.2766, allocations: 3.221 MB / 439.6 MB, free: 31.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.2767, allocations: 245.5 kB / 439.8 MB, free: 31.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001722/0.2785, allocations: 1.814 MB / 441.6 MB, free: 31.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.385e-05/0.2785, allocations: 42.42 kB / 441.7 MB, free: 31.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003283/0.2789, allocations: 495.1 kB / 442.2 MB, free: 31.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.279, allocations: 286.2 kB / 442.4 MB, free: 31.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.2791, allocations: 15.53 kB / 442.5 MB, free: 31.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.068e-05/0.2791, allocations: 341.1 kB / 442.8 MB, free: 30.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006239/0.2798, allocations: 431 kB / 443.2 MB, free: 30.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006863/0.2805, allocations: 0.535 MB / 443.7 MB, free: 30.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000665/0.2811, allocations: 470.4 kB / 444.2 MB, free: 30.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.2811, allocations: 0 / 444.2 MB, free: 30.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003555/0.2847, allocations: 1.749 MB / 446 MB, free: 29.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2847, allocations: 6.719 kB / 446 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.2847, allocations: 0 / 446 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002637/0.2874, allocations: 0.8289 MB / 446.8 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004131/0.2878, allocations: 116 kB / 446.9 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002075/0.2899, allocations: 1.504 MB / 448.4 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006339/0.2905, allocations: 88.91 kB / 448.5 MB, free: 28.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.447e-05/0.2906, allocations: 30.2 kB / 448.5 MB, free: 28.12 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: 2 * 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 (64): * Single equations (assignments): 63 * 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 23} Notification: Performance of prepare postOptimizeDAE: time 0.0005607/0.2912, allocations: 448.1 kB / 449 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.2913, allocations: 131.2 kB / 449.1 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003642/0.295, allocations: 1.797 MB / 450.9 MB, free: 27.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.295, allocations: 6.656 kB / 450.9 MB, free: 27.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.295, allocations: 7.266 kB / 450.9 MB, free: 27.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.295, allocations: 6.422 kB / 450.9 MB, free: 27.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004938/0.3, allocations: 3.224 MB / 454.1 MB, free: 25.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3, allocations: 0 / 454.1 MB, free: 25.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003529/0.3003, allocations: 105.1 kB / 454.2 MB, free: 25.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002522/0.3029, allocations: 0.8012 MB / 455 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.371e-05/0.3029, allocations: 22.34 kB / 455.1 MB, free: 25.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002038/0.305, allocations: 1.496 MB / 456.5 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.305, allocations: 4 kB / 456.6 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004398/0.3094, allocations: 2.378 MB / 458.9 MB, free: 23.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004961/0.3099, allocations: 275.9 kB / 459.2 MB, free: 23.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001423/0.3101, allocations: 20.36 kB / 459.2 MB, free: 23.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005457/0.3106, allocations: 56.8 kB / 459.3 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.3108, allocations: 72.88 kB / 459.3 MB, free: 23.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.016e-05/0.3108, allocations: 23.72 kB / 459.4 MB, free: 23.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001464/0.3123, allocations: 1.308 MB / 460.7 MB, free: 22.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3123, allocations: 0 / 460.7 MB, free: 22.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006797/0.313, allocations: 252.3 kB / 460.9 MB, free: 22.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (57): * Single equations (assignments): 56 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.005212/0.3182, allocations: 3.119 MB / 464 MB, free: 21.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003389/0.3216, allocations: 1.379 MB / 465.4 MB, free: 20.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3216, allocations: 0.9688 kB / 465.4 MB, free: 20.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002483/0.3241, allocations: 0.868 MB / 466.3 MB, free: 20.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006646/0.3248, allocations: 88.55 kB / 466.4 MB, free: 20.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004944/0.3298, allocations: 4.094 MB / 470.5 MB, free: 17.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000601/0.3304, allocations: 1.203 MB / 471.7 MB, free: 17.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003649/0.3307, allocations: 168 kB / 471.8 MB, free: 17.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004364/0.3312, allocations: 426.3 kB / 472.3 MB, free: 16.71 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3312, allocations: 0 / 472.3 MB, free: 16.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03619/0.3674, allocations: 25.65 MB / 497.9 MB, free: 84 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.3676, allocations: 257.1 kB / 498.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.348, allocations: 0 / 498.2 MB, free: 15.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: