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.001459/0.001459, allocations: 105.1 kB / 16.45 MB, free: 6.438 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.001141/0.001141, allocations: 186.9 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.298/1.298, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04722/0.04722, allocations: 8.103 MB / 299.3 MB, free: 6.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 63.91 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09561/0.09675, allocations: 51.52 MB / 465.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.006021/0.1028, allocations: 4.8 MB / 470.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.1054, allocations: 1.611 MB / 471.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/0.1057, allocations: 12 kB / 471.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.107, allocations: 0.7658 MB / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009107/0.1079, allocations: 0.6458 MB / 473.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001963/0.1099, allocations: 1.148 MB / 474.5 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.1111, allocations: 1.266 MB / 475.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005191/0.1117, allocations: 410.2 kB / 476.2 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005128/0.1122, allocations: 0.5919 MB / 476.7 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009316/0.1131, allocations: 0.9077 MB / 477.7 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.1133, allocations: 132 kB / 477.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00061/0.1139, allocations: 355.8 kB / 478.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006713/0.1146, allocations: 0.9661 MB / 479.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008543/0.1155, allocations: 1.2 MB / 480.3 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002706/0.1182, allocations: 3.339 MB / 483.6 MB, free: 444 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1182, allocations: 0 / 483.6 MB, free: 444 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1182, allocations: 0 / 483.6 MB, free: 444 kB / 350.1 MB Notification: Performance of Transformations before backend: time 2.358e-05/0.1182, allocations: 0 / 483.6 MB, free: 444 kB / 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.00679/0.125, allocations: 3.41 MB / 487 MB, free: 12.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.1251, allocations: 15.89 kB / 487.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001371/0.1252, allocations: 114.7 kB / 487.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000374/0.1256, allocations: 293.3 kB / 487.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003053/0.1287, allocations: 2.179 MB / 489.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001971/0.1289, allocations: 224.1 kB / 489.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.129, allocations: 64.38 kB / 489.9 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.1307, allocations: 0.9962 MB / 490.9 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.1307, allocations: 3.938 kB / 490.9 MB, free: 8.891 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.733e-05/0.1308, allocations: 36 kB / 491 MB, free: 8.855 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.1309, allocations: 16 kB / 491 MB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.1322, allocations: 0.6845 MB / 491.7 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007406/0.1396, allocations: 4.804 MB / 496.5 MB, free: 3.199 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/0.1419, allocations: 1.382 MB / 497.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001014/0.143, allocations: 0.5143 MB / 498.4 MB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001668/0.1432, allocations: 97.64 kB / 498.5 MB, free: 1.074 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.351e-05/0.1432, allocations: 47.06 kB / 498.5 MB, free: 1.016 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 4.258e-06/0.1432, allocations: 4 kB / 498.5 MB, free: 1.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.004614/0.1479, allocations: 1.661 MB / 0.4884 GB, free: 15.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002734/0.1481, allocations: 0.5935 MB / 0.489 GB, free: 14.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006105/0.1543, allocations: 4.885 MB / 0.4938 GB, free: 9.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.752e-05/0.1544, allocations: 41.7 kB / 0.4938 GB, free: 9.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001006/0.1554, allocations: 1.131 MB / 0.4949 GB, free: 8.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001934/0.1556, allocations: 216.8 kB / 0.4951 GB, free: 8.285 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.1558, allocations: 118.3 kB / 0.4953 GB, free: 8.164 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1559, allocations: 337.9 kB / 0.4956 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006818/0.1566, allocations: 313.2 kB / 0.4959 GB, free: 7.523 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000841/0.1575, allocations: 0.5584 MB / 0.4964 GB, free: 6.875 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005366/0.1628, allocations: 1.673 MB / 0.4981 GB, free: 5.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1629, allocations: 0 / 0.4981 GB, free: 5.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002882/0.1657, allocations: 1.233 MB / 0.4993 GB, free: 3.934 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.1658, allocations: 12 kB / 0.4993 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.1658, allocations: 7.922 kB / 0.4993 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.1669, allocations: 256.5 kB / 0.4995 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006625/0.1676, allocations: 167.8 kB / 0.4997 GB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003567/0.1712, allocations: 2.687 MB / 0.5023 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.1722, allocations: 111.3 kB / 0.5024 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/0.1722, allocations: 31.98 kB / 0.5024 GB, free: 0.5273 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.1978/0.3701, allocations: 0.94 MB / 0.5034 GB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007427/0.3709, allocations: 259.8 kB / 0.5036 GB, free: 43.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003129/0.374, allocations: 1.256 MB / 0.5048 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.374, allocations: 6.969 kB / 0.5048 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.374, allocations: 4.188 kB / 0.5048 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.374, allocations: 3.562 kB / 0.5048 GB, free: 42.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006642/0.3807, allocations: 3.381 MB / 0.5082 GB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.3807, allocations: 2.062 kB / 0.5082 GB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006243/0.3813, allocations: 141.9 kB / 0.5083 GB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001067/0.3824, allocations: 252.6 kB / 0.5085 GB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-05/0.3825, allocations: 14.59 kB / 0.5085 GB, free: 42.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0031/0.3856, allocations: 2.67 MB / 0.5112 GB, free: 40.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3856, allocations: 0 / 0.5112 GB, free: 40.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003623/0.3892, allocations: 1.691 MB / 0.5128 GB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/0.3903, allocations: 0.5208 MB / 0.5133 GB, free: 39.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/0.3905, allocations: 18.17 kB / 0.5133 GB, free: 39.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007544/0.3912, allocations: 83.83 kB / 0.5134 GB, free: 39.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002181/0.3915, allocations: 83.89 kB / 0.5135 GB, free: 39.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.364e-05/0.3915, allocations: 18.08 kB / 0.5135 GB, free: 39.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00528/0.3968, allocations: 3.52 MB / 0.5169 GB, free: 38.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3968, allocations: 1.781 kB / 0.5169 GB, free: 38.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001095/0.3979, allocations: 358 kB / 0.5173 GB, free: 38.16 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.003989/0.4019, allocations: 2.434 MB / 0.5197 GB, free: 36.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.4041, allocations: 0.9742 MB / 0.5206 GB, free: 36.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4041, allocations: 2.984 kB / 0.5206 GB, free: 36.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.4052, allocations: 0.6265 MB / 0.5212 GB, free: 36.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.4063, allocations: 211.6 kB / 0.5214 GB, free: 35.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02954/0.4359, allocations: 26.23 MB / 0.547 GB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.4371, allocations: 1.812 MB / 0.5488 GB, free: 11.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006914/0.4378, allocations: 371.7 kB / 0.5492 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008836/0.4387, allocations: 0.9562 MB / 0.5501 GB, free: 9.812 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4387, allocations: 0 / 0.5501 GB, free: 9.812 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08382/0.5225, allocations: 49.95 MB / 0.5989 GB, free: 8.059 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.17/16.7, allocations: 8.656 kB / 0.5989 GB, free: 8.051 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)