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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 104.9 kB / 17.12 MB, free: 5.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 192.6 kB / 20.07 MB, free: 3.008 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 245.8 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1677/0.1677, allocations: 8.074 MB / 306 MB, free: 3.074 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 71.88 kB / 422.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.248, allocations: 51.52 MB / 474.2 MB, free: 21.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.004669/0.2527, allocations: 4.689 MB / 478.9 MB, free: 18.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.2546, allocations: 1.439 MB / 480.4 MB, free: 17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.2548, allocations: 15 kB / 480.4 MB, free: 17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000795/0.2556, allocations: 0.4959 MB / 480.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005983/0.2562, allocations: 419.1 kB / 481.3 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001528/0.2578, allocations: 1.074 MB / 482.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007402/0.2585, allocations: 0.8467 MB / 483.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003679/0.2589, allocations: 315.8 kB / 483.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.2592, allocations: 389.1 kB / 483.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005631/0.2598, allocations: 0.5671 MB / 484.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.2599, allocations: 79.41 kB / 484.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005159/0.2604, allocations: 309.1 kB / 484.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002699/0.2607, allocations: 429.9 kB / 485.3 MB, free: 14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003881/0.2611, allocations: 0.6057 MB / 485.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.2624, allocations: 1.678 MB / 487.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2624, allocations: 0 / 487.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.2624, allocations: 5.312 kB / 487.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.35e-05/0.2624, allocations: 0 / 487.5 MB, free: 12.38 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.004625/0.2671, allocations: 2.159 MB / 489.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.2671, allocations: 13.55 kB / 489.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.764e-05/0.2672, allocations: 107.1 kB / 489.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002079/0.2674, allocations: 153.9 kB / 490 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.2685, allocations: 0.9933 MB / 491 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.2686, allocations: 193 kB / 491.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.852e-05/0.2687, allocations: 57.12 kB / 491.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.2699, allocations: 0.8602 MB / 492.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.2699, allocations: 0 / 492.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.27, allocations: 26.16 kB / 492.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.27, allocations: 13.16 kB / 492.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.2711, allocations: 0.7184 MB / 492.8 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004094/0.2752, allocations: 4.061 MB / 496.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/0.2768, allocations: 1.29 MB / 498.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007073/0.2776, allocations: 0.5504 MB / 498.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.048e-05/0.2777, allocations: 24.91 kB / 498.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.2777, allocations: 55.44 kB / 498.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=85): time 1.834e-06/0.2777, allocations: 0 / 498.8 MB, free: 3.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=85): time 0.009639/0.2873, allocations: 3.135 MB / 0.4902 GB, free: 184 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.2875, allocations: 248.3 kB / 0.4904 GB, free: 15.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002331/0.2898, allocations: 1.809 MB / 0.4922 GB, free: 14.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.018e-05/0.2899, allocations: 45.7 kB / 0.4922 GB, free: 14.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/0.2904, allocations: 498.2 kB / 0.4927 GB, free: 13.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.2906, allocations: 301.3 kB / 0.493 GB, free: 13.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/0.2909, allocations: 142.7 kB / 0.4931 GB, free: 13.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.2911, allocations: 337.9 kB / 0.4934 GB, free: 12.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007913/0.2919, allocations: 433.8 kB / 0.4939 GB, free: 12.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009067/0.2928, allocations: 0.5307 MB / 0.4944 GB, free: 11.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009175/0.302, allocations: 2.596 MB / 0.4969 GB, free: 9.148 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.302, allocations: 0 / 0.4969 GB, free: 9.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004511/0.3065, allocations: 1.719 MB / 0.4986 GB, free: 7.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.3065, allocations: 8 kB / 0.4986 GB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.3066, allocations: 0 / 0.4986 GB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002927/0.3095, allocations: 0.8203 MB / 0.4994 GB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004409/0.3099, allocations: 115.8 kB / 0.4995 GB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002694/0.3127, allocations: 1.475 MB / 0.501 GB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008874/0.3136, allocations: 87.62 kB / 0.501 GB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.88e-05/0.3136, allocations: 28 kB / 0.5011 GB, free: 4.855 MB / 366.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.0008865/0.3145, allocations: 451.9 kB / 0.5015 GB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002221/0.3148, allocations: 127.2 kB / 0.5016 GB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004374/0.3191, allocations: 1.768 MB / 0.5033 GB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.3192, allocations: 12 kB / 0.5034 GB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3192, allocations: 4 kB / 0.5034 GB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.3192, allocations: 3.984 kB / 0.5034 GB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006522/0.3257, allocations: 3.377 MB / 0.5067 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.3257, allocations: 4 kB / 0.5067 GB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003852/0.3261, allocations: 107.8 kB / 0.5068 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002825/0.329, allocations: 0.7771 MB / 0.5075 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.419e-05/0.329, allocations: 23.98 kB / 0.5075 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002585/0.3316, allocations: 1.455 MB / 0.509 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.3317, allocations: 0 / 0.509 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005224/0.3369, allocations: 2.349 MB / 0.5113 GB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005077/0.3374, allocations: 284 kB / 0.5115 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.3376, allocations: 16 kB / 0.5115 GB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005559/0.3381, allocations: 59.95 kB / 0.5116 GB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.3383, allocations: 60.91 kB / 0.5117 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.009e-05/0.3384, allocations: 28 kB / 0.5117 GB, free: 9.816 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001838/0.3402, allocations: 1.302 MB / 0.513 GB, free: 8.508 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.582e-06/0.3402, allocations: 0 / 0.513 GB, free: 8.508 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007791/0.341, allocations: 255.7 kB / 0.5132 GB, free: 8.258 MB / 382.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.006379/0.3474, allocations: 3.08 MB / 0.5162 GB, free: 5.227 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003834/0.3513, allocations: 1.363 MB / 0.5175 GB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3513, allocations: 0 / 0.5175 GB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002697/0.354, allocations: 0.86 MB / 0.5184 GB, free: 3.004 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009002/0.3549, allocations: 111.5 kB / 0.5185 GB, free: 2.898 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02443/0.3793, allocations: 13.76 MB / 0.5319 GB, free: 4.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000942/0.3803, allocations: 1.173 MB / 0.5331 GB, free: 3.777 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004738/0.3808, allocations: 167.2 kB / 0.5332 GB, free: 3.609 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006166/0.3814, allocations: 435.3 kB / 0.5336 GB, free: 3.184 MB / 398.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3815, allocations: 0 / 0.5336 GB, free: 3.184 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06603/0.4475, allocations: 28.54 MB / 0.5615 GB, free: 6.773 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.61, allocations: 10.86 kB / 0.5615 GB, free: 6.766 MB / 430.1 MB " [Timeout remaining time 646] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.247536477982067] Failed to read output from testmodel.py, exit status != 0: 13.772928052931093 13.796087368 13.529711302 Calling exit ...