Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.001235/0.001236, allocations: 109.2 kB / 17.12 MB, free: 5.922 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.001229/0.001229, allocations: 192.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.423/1.423, allocations: 222.9 MB / 245.8 MB, free: 4.219 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.1754/0.1754, allocations: 8.085 MB / 306 MB, free: 2.68 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.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 71.84 kB / 422.7 MB, free: 6.926 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2505, allocations: 51.52 MB / 474.2 MB, free: 21.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003736/0.2543, allocations: 3.144 MB / 477.4 MB, free: 19.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.2559, allocations: 1.182 MB / 478.6 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.256, allocations: 5.562 kB / 478.6 MB, free: 18.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007301/0.2568, allocations: 436.3 kB / 479 MB, free: 18.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004126/0.2572, allocations: 265.2 kB / 479.2 MB, free: 18.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.2587, allocations: 0.9951 MB / 480.2 MB, free: 17.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005243/0.2592, allocations: 0.509 MB / 480.7 MB, free: 17.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000244/0.2595, allocations: 159.8 kB / 480.9 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.2597, allocations: 238.1 kB / 481.1 MB, free: 16.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003937/0.2601, allocations: 355.5 kB / 481.5 MB, free: 16.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.101e-05/0.2602, allocations: 56.73 kB / 481.5 MB, free: 16.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004773/0.2606, allocations: 274.3 kB / 481.8 MB, free: 16.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002519/0.2609, allocations: 346.6 kB / 482.1 MB, free: 16.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002954/0.2612, allocations: 457.8 kB / 482.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.2623, allocations: 1.335 MB / 483.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2624, allocations: 0 / 483.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2624, allocations: 0 / 483.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.2624, allocations: 1.219 kB / 483.9 MB, free: 15.07 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003033/0.2654, allocations: 1.588 MB / 485.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.2655, allocations: 13.02 kB / 485.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.744e-05/0.2655, allocations: 64.61 kB / 485.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.2657, allocations: 115.1 kB / 485.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009841/0.2667, allocations: 0.8805 MB / 486.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.689e-05/0.2668, allocations: 83.64 kB / 486.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.287e-05/0.2669, allocations: 27.62 kB / 486.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006881/0.2676, allocations: 450 kB / 487.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.2676, allocations: 0 / 487.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.2676, allocations: 20.12 kB / 487.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.2676, allocations: 6.875 kB / 487.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005532/0.2682, allocations: 316.2 kB / 487.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002652/0.2709, allocations: 2.123 MB / 489.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009321/0.2718, allocations: 482.7 kB / 490.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003896/0.2722, allocations: 214.4 kB / 490.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/0.2723, allocations: 87.8 kB / 490.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.2724, allocations: 41.11 kB / 490.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.164e-06/0.2724, allocations: 9.156 kB / 490.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002186/0.2746, allocations: 0.8223 MB / 491.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.2746, allocations: 238.7 kB / 491.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/0.2765, allocations: 1.741 MB / 493.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.2765, allocations: 35.89 kB / 493.2 MB, free: 8.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002757/0.2768, allocations: 446.2 kB / 493.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.466e-05/0.2769, allocations: 95.05 kB / 493.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.277, allocations: 67.44 kB / 493.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.495e-05/0.277, allocations: 320.9 kB / 494.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002877/0.2773, allocations: 147.9 kB / 494.3 MB, free: 7.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.2776, allocations: 253.4 kB / 494.5 MB, free: 7.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003227/0.2809, allocations: 0.9401 MB / 495.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2809, allocations: 3.984 kB / 495.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001276/0.2822, allocations: 0.6105 MB / 496.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.2822, allocations: 4.094 kB / 496.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2822, allocations: 4 kB / 496.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006144/0.2828, allocations: 144.7 kB / 496.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002756/0.2831, allocations: 75.89 kB / 496.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.2852, allocations: 2.04 MB / 498.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004885/0.2857, allocations: 47.75 kB / 498.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.2857, allocations: 12 kB / 498.4 MB, free: 3.652 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: 4 * 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 (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005214/0.2862, allocations: 404.6 kB / 498.8 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.2864, allocations: 103.3 kB / 498.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.2876, allocations: 0.5896 MB / 499.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.2876, allocations: 7.938 kB / 499.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.2876, allocations: 0 / 499.5 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2876, allocations: 3.938 kB / 499.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00187/0.2895, allocations: 1.462 MB / 0.4892 GB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2895, allocations: 0 / 0.4892 GB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/0.2897, allocations: 59.94 kB / 0.4893 GB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005666/0.2903, allocations: 144.7 kB / 0.4894 GB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/0.2903, allocations: 11.94 kB / 0.4894 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002133/0.2925, allocations: 2.02 MB / 0.4914 GB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2925, allocations: 0 / 0.4914 GB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/0.2943, allocations: 0.8387 MB / 0.4922 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003521/0.2946, allocations: 248.3 kB / 0.4925 GB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.417e-05/0.2947, allocations: 8 kB / 0.4925 GB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003644/0.2951, allocations: 39.97 kB / 0.4925 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.2952, allocations: 31.95 kB / 0.4925 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.2953, allocations: 12 kB / 0.4926 GB, free: 13.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001787/0.2971, allocations: 1.256 MB / 0.4938 GB, free: 12.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.2971, allocations: 0 / 0.4938 GB, free: 12.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005984/0.2977, allocations: 155.8 kB / 0.4939 GB, free: 12 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00292/0.3006, allocations: 1.56 MB / 0.4955 GB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.3019, allocations: 0.5179 MB / 0.496 GB, free: 9.965 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.3019, allocations: 0 / 0.496 GB, free: 9.965 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006971/0.3026, allocations: 339.2 kB / 0.4963 GB, free: 9.621 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005914/0.3032, allocations: 86.81 kB / 0.4964 GB, free: 9.539 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/0.3189, allocations: 10.16 MB / 0.5063 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008361/0.3197, allocations: 1.072 MB / 0.5073 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003481/0.3201, allocations: 137.1 kB / 0.5075 GB, free: 13.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004817/0.3206, allocations: 327.3 kB / 0.5078 GB, free: 13.66 MB / 382.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3206, allocations: 3.938 kB / 0.5078 GB, free: 13.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07079/0.3914, allocations: 20.83 MB / 0.5281 GB, free: 8.977 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.06, allocations: 17.98 kB / 0.5281 GB, free: 8.961 MB / 398.1 MB " [Timeout remaining time 647] (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad_res.csv --start-time 0 --stop-time 360000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 144 PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.739028394105844] Failed to read output from testmodel.py, exit status != 0: 13.217599224997684 13.240632528999999 12.974479782 Calling exit ...