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.00132/0.00132, allocations: 104.7 kB / 16.45 MB, free: 6.449 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.001361/0.001361, allocations: 192.2 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.442/1.442, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05578/0.05578, allocations: 8.103 MB / 299.3 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 67.89 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1028, allocations: 51.51 MB / 465.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.0066/0.1094, allocations: 4.8 MB / 470.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00312/0.1126, allocations: 1.615 MB / 471.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003372/0.1129, allocations: 12 kB / 471.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.1143, allocations: 0.7593 MB / 472.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001066/0.1154, allocations: 0.6536 MB / 473.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00222/0.1177, allocations: 1.16 MB / 474.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001567/0.1192, allocations: 1.254 MB / 475.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005874/0.1198, allocations: 410.2 kB / 476.2 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006698/0.1205, allocations: 0.5842 MB / 476.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.1216, allocations: 0.9077 MB / 477.7 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002005/0.1218, allocations: 132 kB / 477.8 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007577/0.1226, allocations: 359.8 kB / 478.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000852/0.1235, allocations: 0.9661 MB / 479.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001208/0.1247, allocations: 1.196 MB / 480.3 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004017/0.1287, allocations: 3.363 MB / 483.7 MB, free: 424 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1287, allocations: 0 / 483.7 MB, free: 424 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1288, allocations: 4 kB / 483.7 MB, free: 420 kB / 350.1 MB Notification: Performance of Transformations before backend: time 7.799e-05/0.1288, allocations: 0 / 483.7 MB, free: 420 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.008618/0.1375, allocations: 3.495 MB / 487.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.1375, allocations: 15.89 kB / 487.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002057/0.1377, allocations: 118.7 kB / 487.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005049/0.1383, allocations: 306.9 kB / 487.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003309/0.1416, allocations: 2.205 MB / 489.8 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002506/0.1418, allocations: 224.1 kB / 490 MB, free: 9.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.142, allocations: 64.38 kB / 490.1 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/0.144, allocations: 1 MB / 491.1 MB, free: 8.738 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1441, allocations: 3.938 kB / 491.1 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.663e-05/0.1442, allocations: 36 kB / 491.1 MB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.1442, allocations: 16 kB / 491.1 MB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.1458, allocations: 0.6923 MB / 491.8 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009715/0.1555, allocations: 4.824 MB / 496.7 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00269/0.1582, allocations: 1.362 MB / 498 MB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/0.1594, allocations: 0.5182 MB / 498.5 MB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001899/0.1596, allocations: 89.67 kB / 498.6 MB, free: 0.918 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.908e-05/0.1597, allocations: 58.98 kB / 498.7 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.785e-06/0.1597, allocations: 8 kB / 498.7 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.005358/0.165, allocations: 1.662 MB / 0.4886 GB, free: 15.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003525/0.1654, allocations: 0.5974 MB / 0.4892 GB, free: 14.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007542/0.173, allocations: 4.877 MB / 0.494 GB, free: 9.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002229/0.1732, allocations: 41.7 kB / 0.494 GB, free: 9.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001296/0.1745, allocations: 1.136 MB / 0.4951 GB, free: 8.332 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002763/0.1748, allocations: 230 kB / 0.4953 GB, free: 8.105 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000279/0.1751, allocations: 122.3 kB / 0.4955 GB, free: 7.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1753, allocations: 337.8 kB / 0.4958 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007837/0.1761, allocations: 313.2 kB / 0.4961 GB, free: 7.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009855/0.1771, allocations: 0.5545 MB / 0.4966 GB, free: 6.695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006041/0.1831, allocations: 1.669 MB / 0.4982 GB, free: 5.004 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1831, allocations: 0 / 0.4982 GB, free: 5.004 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003654/0.1868, allocations: 1.254 MB / 0.4995 GB, free: 3.738 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.1868, allocations: 8 kB / 0.4995 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.1869, allocations: 4 kB / 0.4995 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/0.188, allocations: 252.5 kB / 0.4997 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007217/0.1888, allocations: 175.8 kB / 0.4999 GB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003957/0.1927, allocations: 2.703 MB / 0.5025 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/0.1942, allocations: 103.6 kB / 0.5026 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.632e-05/0.1942, allocations: 28 kB / 0.5027 GB, free: 340 kB / 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.2113/0.4055, allocations: 0.9389 MB / 0.5036 GB, free: 43.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007051/0.4062, allocations: 275.2 kB / 0.5038 GB, free: 43.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003184/0.4094, allocations: 1.262 MB / 0.5051 GB, free: 43.42 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.4095, allocations: 6.781 kB / 0.5051 GB, free: 43.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.4095, allocations: 4.531 kB / 0.5051 GB, free: 43.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.4095, allocations: 3.891 kB / 0.5051 GB, free: 43.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006016/0.4155, allocations: 3.376 MB / 0.5084 GB, free: 42.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.4155, allocations: 4.031 kB / 0.5084 GB, free: 42.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006412/0.4162, allocations: 137.8 kB / 0.5085 GB, free: 42.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001168/0.4174, allocations: 255.1 kB / 0.5088 GB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.7e-05/0.4174, allocations: 17.55 kB / 0.5088 GB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003015/0.4204, allocations: 2.664 MB / 0.5114 GB, free: 40.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4205, allocations: 5.062 kB / 0.5114 GB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003891/0.4243, allocations: 1.701 MB / 0.513 GB, free: 40.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/0.4256, allocations: 0.5428 MB / 0.5136 GB, free: 39.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.4259, allocations: 15.27 kB / 0.5136 GB, free: 39.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009007/0.4268, allocations: 88.05 kB / 0.5137 GB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/0.4271, allocations: 79.95 kB / 0.5137 GB, free: 39.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.934e-05/0.4271, allocations: 19.12 kB / 0.5138 GB, free: 39.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005268/0.4324, allocations: 3.515 MB / 0.5172 GB, free: 38.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4324, allocations: 0 / 0.5172 GB, free: 38.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001456/0.4339, allocations: 359.4 kB / 0.5175 GB, free: 38.5 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.004544/0.4385, allocations: 2.444 MB / 0.5199 GB, free: 37.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002311/0.4408, allocations: 0.9824 MB / 0.5209 GB, free: 36.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/0.4408, allocations: 6.422 kB / 0.5209 GB, free: 36.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.4421, allocations: 0.6298 MB / 0.5215 GB, free: 36.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001712/0.4439, allocations: 206.4 kB / 0.5217 GB, free: 36.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03366/0.4775, allocations: 26.33 MB / 0.5474 GB, free: 13.13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/0.4787, allocations: 1.82 MB / 0.5492 GB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000751/0.4795, allocations: 365.6 kB / 0.5495 GB, free: 10.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009809/0.4805, allocations: 0.9601 MB / 0.5505 GB, free: 9.961 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4805, allocations: 0 / 0.5505 GB, free: 9.961 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09753/0.578, allocations: 49.02 MB / 0.5983 GB, free: 9.145 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.64/19.21, allocations: 8.656 kB / 0.5984 GB, free: 9.137 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)