Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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.001724/0.001732, allocations: 106.9 kB / 17.12 MB, free: 5.914 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.001984/0.001984, allocations: 188.6 kB / 20.07 MB, free: 2.988 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.482/1.482, allocations: 222.9 MB / 245.8 MB, free: 4.324 MB / 190.1 MB " [Timeout remaining time 178] 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.1716/0.1716, allocations: 8.083 MB / 306 MB, free: 2.703 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.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 71.88 kB / 422.7 MB, free: 6.918 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2497, allocations: 51.53 MB / 474.2 MB, free: 22.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.004797/0.2546, allocations: 4.794 MB / 479 MB, free: 18.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.2568, allocations: 1.611 MB / 480.6 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003001/0.2571, allocations: 16.91 kB / 480.7 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001065/0.2582, allocations: 0.7623 MB / 481.4 MB, free: 16.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007926/0.259, allocations: 0.643 MB / 482.1 MB, free: 16.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.2607, allocations: 1.158 MB / 483.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001279/0.262, allocations: 1.264 MB / 484.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004941/0.2625, allocations: 412.6 kB / 484.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005509/0.2631, allocations: 0.5805 MB / 485.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000815/0.2639, allocations: 0.9068 MB / 486.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001695/0.2641, allocations: 131.8 kB / 486.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006406/0.2647, allocations: 353.7 kB / 486.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005696/0.2653, allocations: 0.9734 MB / 487.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007167/0.266, allocations: 1.192 MB / 489 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002547/0.2686, allocations: 3.356 MB / 492.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2686, allocations: 5.438 kB / 492.4 MB, free: 9.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2686, allocations: 0 / 492.4 MB, free: 9.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.199e-05/0.2687, allocations: 0 / 492.4 MB, free: 9.453 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.006364/0.275, allocations: 3.496 MB / 495.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.2751, allocations: 11.89 kB / 495.9 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001069/0.2752, allocations: 122.6 kB / 496 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003456/0.2756, allocations: 306.9 kB / 496.3 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002308/0.2779, allocations: 2.202 MB / 498.5 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.278, allocations: 224 kB / 498.7 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.105e-05/0.2781, allocations: 64.38 kB / 498.8 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.2795, allocations: 1.004 MB / 499.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.2796, allocations: 3.984 kB / 499.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.036e-05/0.2796, allocations: 32 kB / 499.8 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.2796, allocations: 16 kB / 499.8 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.2808, allocations: 0.6806 MB / 0.4888 GB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007064/0.2879, allocations: 4.828 MB / 0.4935 GB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.2903, allocations: 1.371 MB / 0.4948 GB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.2914, allocations: 0.5221 MB / 0.4954 GB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001796/0.2916, allocations: 89.67 kB / 0.4954 GB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.189e-05/0.2917, allocations: 47.06 kB / 0.4955 GB, free: 10.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 3.105e-06/0.2917, allocations: 0 / 0.4955 GB, free: 10.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.005266/0.297, allocations: 1.682 MB / 0.4971 GB, free: 9.039 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003669/0.2973, allocations: 0.5896 MB / 0.4977 GB, free: 8.309 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008277/0.3056, allocations: 4.881 MB / 0.5025 GB, free: 3.414 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001828/0.3058, allocations: 41.7 kB / 0.5025 GB, free: 3.367 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.3071, allocations: 1.136 MB / 0.5036 GB, free: 2.227 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002578/0.3073, allocations: 226 kB / 0.5038 GB, free: 2.004 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002506/0.3076, allocations: 126.3 kB / 0.504 GB, free: 1.875 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.3078, allocations: 333.9 kB / 0.5043 GB, free: 1.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007879/0.3086, allocations: 317.2 kB / 0.5046 GB, free: 1.234 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.3096, allocations: 0.5545 MB / 0.5051 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005773/0.3154, allocations: 1.665 MB / 0.5067 GB, free: 14.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3154, allocations: 0 / 0.5067 GB, free: 14.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003721/0.3191, allocations: 1.261 MB / 0.508 GB, free: 13.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.3191, allocations: 11.94 kB / 0.508 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.3192, allocations: 0 / 0.508 GB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.3203, allocations: 256.5 kB / 0.5082 GB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006714/0.321, allocations: 163.8 kB / 0.5084 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003991/0.325, allocations: 2.702 MB / 0.511 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001475/0.3265, allocations: 119.5 kB / 0.5111 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.93e-05/0.3265, allocations: 20 kB / 0.5112 GB, free: 10.23 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.battery.SOC_start fixed = true ) \"Charge as current integration\" type: Real bat2.battery.integrator.q:VARIABLE(flow=false start = bat2.battery.SOC_start fixed = true ) \"Charge as current integration\" type: Real bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.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: 8 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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 {(6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.001756/0.3283, allocations: 0.9418 MB / 0.5121 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007637/0.3291, allocations: 278.2 kB / 0.5123 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003187/0.3323, allocations: 1.26 MB / 0.5136 GB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.3323, allocations: 8 kB / 0.5136 GB, free: 7.723 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3323, allocations: 4 kB / 0.5136 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.3323, allocations: 7.922 kB / 0.5136 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006179/0.3385, allocations: 3.377 MB / 0.5169 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3385, allocations: 0 / 0.5169 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006257/0.3392, allocations: 147.9 kB / 0.517 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001082/0.3402, allocations: 248.6 kB / 0.5173 GB, free: 3.859 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.55e-05/0.3403, allocations: 15.98 kB / 0.5173 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003438/0.3437, allocations: 2.664 MB / 0.5199 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3438, allocations: 0 / 0.5199 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004198/0.348, allocations: 1.708 MB / 0.5216 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/0.3493, allocations: 0.5382 MB / 0.5221 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002668/0.3496, allocations: 20 kB / 0.5221 GB, free: 14.72 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007998/0.3504, allocations: 79.92 kB / 0.5222 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/0.3506, allocations: 80.45 kB / 0.5223 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.942e-05/0.3507, allocations: 27.88 kB / 0.5223 GB, free: 14.54 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005484/0.3561, allocations: 3.511 MB / 0.5257 GB, free: 11.03 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3562, allocations: 0 / 0.5257 GB, free: 11.03 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001315/0.3575, allocations: 363.6 kB / 0.5261 GB, free: 10.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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 {(6,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004874/0.3624, allocations: 2.436 MB / 0.5284 GB, free: 8.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002289/0.3647, allocations: 0.9942 MB / 0.5294 GB, free: 7.277 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/0.3647, allocations: 4.234 kB / 0.5294 GB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.366, allocations: 0.6309 MB / 0.53 GB, free: 6.633 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.3674, allocations: 206.4 kB / 0.5302 GB, free: 6.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04442/0.4118, allocations: 26.32 MB / 0.5559 GB, free: 11.87 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001796/0.4137, allocations: 1.824 MB / 0.5577 GB, free: 10 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008932/0.4146, allocations: 364.1 kB / 0.5581 GB, free: 9.641 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001295/0.4159, allocations: 0.9601 MB / 0.559 GB, free: 8.68 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4159, allocations: 0 / 0.559 GB, free: 8.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3002/0.7161, allocations: 49.01 MB / 0.6069 GB, free: 96.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.48/18.19, allocations: 16.3 kB / 0.6069 GB, free: 96.91 MB / 446.1 MB " [Timeout remaining time 642] (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries_res.csv --start-time 0 --stop-time 36000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 14.4 PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.994994913926348] Failed to read output from testmodel.py, exit status != 0: 18.36504642397631 18.380356452 18.10918193 Calling exit ...