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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 105 kB / 16.45 MB, free: 6.445 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.0009601/0.0009602, allocations: 192.7 kB / 17.39 MB, free: 5.668 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.257/1.257, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04575/0.04575, allocations: 8.101 MB / 299.3 MB, free: 6.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.91 kB / 414 MB, free: 22.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09633/0.09768, allocations: 51.51 MB / 465.5 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.006486/0.1042, allocations: 4.804 MB / 470.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003066/0.1073, allocations: 1.615 MB / 471.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007166/0.1081, allocations: 12 kB / 471.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.1096, allocations: 0.7658 MB / 472.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001415/0.111, allocations: 0.6419 MB / 473.3 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0024/0.1135, allocations: 1.152 MB / 474.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002017/0.1155, allocations: 1.262 MB / 475.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007034/0.1162, allocations: 406.2 kB / 476.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008864/0.1171, allocations: 0.5881 MB / 476.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001292/0.1184, allocations: 0.9154 MB / 477.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003995/0.1188, allocations: 128 kB / 477.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001134/0.12, allocations: 355.8 kB / 478.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001002/0.121, allocations: 0.97 MB / 479.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001836/0.1228, allocations: 1.2 MB / 480.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003716/0.1266, allocations: 3.338 MB / 483.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1266, allocations: 0 / 483.6 MB, free: 0.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.968e-06/0.1266, allocations: 4 kB / 483.6 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001205/0.1267, allocations: 0 / 483.6 MB, free: 0.5781 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.008277/0.135, allocations: 3.407 MB / 487 MB, free: 13.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.1351, allocations: 15.89 kB / 487.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002285/0.1353, allocations: 110.7 kB / 487.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004209/0.1357, allocations: 289.3 kB / 487.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002974/0.1387, allocations: 2.187 MB / 489.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.1389, allocations: 224.1 kB / 489.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.139, allocations: 64.38 kB / 489.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/0.1408, allocations: 0.9962 MB / 490.9 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.1408, allocations: 0 / 490.9 MB, free: 9.043 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.658e-05/0.1409, allocations: 28 kB / 490.9 MB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.1409, allocations: 20 kB / 491 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.1423, allocations: 0.6883 MB / 491.6 MB, free: 8.305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007942/0.1502, allocations: 4.812 MB / 496.5 MB, free: 3.344 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002418/0.1527, allocations: 1.375 MB / 497.8 MB, free: 1.852 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00105/0.1537, allocations: 0.517 MB / 498.4 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000157/0.1539, allocations: 97.64 kB / 498.4 MB, free: 1.223 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.698e-05/0.154, allocations: 47.06 kB / 498.5 MB, free: 1.164 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.785e-06/0.154, allocations: 4 kB / 498.5 MB, free: 1.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004642/0.1586, allocations: 1.661 MB / 0.4884 GB, free: 15.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003913/0.159, allocations: 0.5896 MB / 0.489 GB, free: 14.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006052/0.1651, allocations: 4.889 MB / 0.4938 GB, free: 9.836 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.272e-05/0.1652, allocations: 45.7 kB / 0.4938 GB, free: 9.785 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001182/0.1664, allocations: 1.127 MB / 0.4949 GB, free: 8.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.1666, allocations: 212.9 kB / 0.4951 GB, free: 8.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.1668, allocations: 122.3 kB / 0.4953 GB, free: 8.316 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.167, allocations: 333.9 kB / 0.4956 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006817/0.1677, allocations: 317.2 kB / 0.4959 GB, free: 7.676 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009499/0.1686, allocations: 0.5545 MB / 0.4964 GB, free: 7.031 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00552/0.1741, allocations: 1.673 MB / 0.498 GB, free: 5.336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.1742, allocations: 0 / 0.498 GB, free: 5.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00304/0.1772, allocations: 1.237 MB / 0.4993 GB, free: 4.086 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1772, allocations: 4 kB / 0.4993 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1773, allocations: 11.98 kB / 0.4993 GB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/0.1783, allocations: 264.4 kB / 0.4995 GB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006557/0.179, allocations: 171.8 kB / 0.4997 GB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003834/0.1829, allocations: 2.69 MB / 0.5023 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.1839, allocations: 107.4 kB / 0.5024 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.718e-05/0.184, allocations: 23.98 kB / 0.5024 GB, free: 0.6836 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.1874/0.3714, allocations: 0.9387 MB / 0.5034 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007401/0.3722, allocations: 261 kB / 0.5036 GB, free: 43.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003041/0.3752, allocations: 1.26 MB / 0.5048 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.3753, allocations: 7.484 kB / 0.5048 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.3753, allocations: 3.406 kB / 0.5048 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.3753, allocations: 3.188 kB / 0.5048 GB, free: 43.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005464/0.3808, allocations: 3.378 MB / 0.5081 GB, free: 42.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.3808, allocations: 4.766 kB / 0.5082 GB, free: 42.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006292/0.3814, allocations: 145 kB / 0.5083 GB, free: 42.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.3826, allocations: 253.3 kB / 0.5085 GB, free: 42.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.447e-05/0.3826, allocations: 14.77 kB / 0.5085 GB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002953/0.3856, allocations: 2.663 MB / 0.5111 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3856, allocations: 1.062 kB / 0.5111 GB, free: 40.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003301/0.3889, allocations: 1.691 MB / 0.5128 GB, free: 39.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008457/0.3897, allocations: 0.5252 MB / 0.5133 GB, free: 39.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/0.39, allocations: 20.91 kB / 0.5133 GB, free: 39.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007241/0.3907, allocations: 79.62 kB / 0.5134 GB, free: 39.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/0.3909, allocations: 77.3 kB / 0.5135 GB, free: 39.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.3909, allocations: 23.97 kB / 0.5135 GB, free: 39.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004904/0.3959, allocations: 3.517 MB / 0.5169 GB, free: 38.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3959, allocations: 0 / 0.5169 GB, free: 38.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001039/0.3969, allocations: 356.4 kB / 0.5173 GB, free: 38.25 MB / 382.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.003831/0.4007, allocations: 2.436 MB / 0.5197 GB, free: 36.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001956/0.4027, allocations: 0.9805 MB / 0.5206 GB, free: 36.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4027, allocations: 1.516 kB / 0.5206 GB, free: 36.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.4038, allocations: 0.629 MB / 0.5212 GB, free: 36.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.4048, allocations: 206.9 kB / 0.5214 GB, free: 36.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02887/0.4337, allocations: 26.23 MB / 0.547 GB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.4349, allocations: 1.824 MB / 0.5488 GB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000644/0.4355, allocations: 357.6 kB / 0.5492 GB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009067/0.4364, allocations: 0.9601 MB / 0.5501 GB, free: 10.01 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4365, allocations: 0 / 0.5501 GB, free: 10.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08611/0.5226, allocations: 49.96 MB / 0.5989 GB, free: 8.254 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17/17.52, allocations: 8.719 kB / 0.5989 GB, free: 8.246 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)