Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.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.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL",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.001305/0.001305, allocations: 106 kB / 16.03 MB, free: 6.312 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.001274/0.001274, allocations: 190.4 kB / 16.95 MB, free: 6.133 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.28/1.28, allocations: 222.9 MB / 240.6 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04341/0.04341, allocations: 8.093 MB / 298.9 MB, free: 6.887 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 55.91 kB / 361.3 MB, free: 8.398 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1776, allocations: 51.53 MB / 412.8 MB, free: 25.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.003467/0.1811, allocations: 3.386 MB / 416.2 MB, free: 22.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.1825, allocations: 1.298 MB / 417.5 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.1827, allocations: 7.938 kB / 417.5 MB, free: 21.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004394/0.1832, allocations: 159.2 kB / 417.7 MB, free: 20.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.1835, allocations: 159.1 kB / 417.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.1839, allocations: 215.7 kB / 418.1 MB, free: 20.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.1843, allocations: 0.5377 MB / 418.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.1845, allocations: 164.7 kB / 418.8 MB, free: 19.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.1846, allocations: 219.1 kB / 419 MB, free: 19.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000193/0.1848, allocations: 231 kB / 419.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.788e-05/0.1849, allocations: 44 kB / 419.2 MB, free: 19.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001253/0.185, allocations: 83.98 kB / 419.3 MB, free: 19.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001394/0.1852, allocations: 163.5 kB / 419.5 MB, free: 19.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.1853, allocations: 266.6 kB / 419.7 MB, free: 18.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003943/0.1857, allocations: 0.6347 MB / 420.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1857, allocations: 0 / 420.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1857, allocations: 0 / 420.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.724e-06/0.1857, allocations: 0 / 420.4 MB, free: 18.18 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001755/0.1875, allocations: 1.001 MB / 421.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.1876, allocations: 15.89 kB / 421.4 MB, free: 17.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.548e-05/0.1876, allocations: 70.66 kB / 421.5 MB, free: 17.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.714e-05/0.1877, allocations: 56.28 kB / 421.5 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.1882, allocations: 486.4 kB / 422 MB, free: 16.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.1884, allocations: 64.81 kB / 422.1 MB, free: 16.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.1885, allocations: 28 kB / 422.1 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005839/0.1891, allocations: 409.5 kB / 422.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.1891, allocations: 0 / 422.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.1891, allocations: 12 kB / 422.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1891, allocations: 8 kB / 422.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004654/0.1896, allocations: 266 kB / 422.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.1914, allocations: 1.527 MB / 424.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006043/0.192, allocations: 315.5 kB / 424.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002503/0.1923, allocations: 116.8 kB / 424.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.1923, allocations: 4.25 kB / 424.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.1923, allocations: 46.55 kB / 424.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.283e-06/0.1923, allocations: 0 / 424.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008004/0.1931, allocations: 344.5 kB / 425.1 MB, free: 13.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.1932, allocations: 209.6 kB / 425.3 MB, free: 12.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004989/0.1937, allocations: 0.5798 MB / 425.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.925e-05/0.1937, allocations: 29.7 kB / 425.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.1939, allocations: 259.7 kB / 426.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/0.1939, allocations: 43.36 kB / 426.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.173e-05/0.194, allocations: 45.7 kB / 426.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.624e-05/0.194, allocations: 354.8 kB / 426.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002531/0.1943, allocations: 115.8 kB / 426.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002856/0.1946, allocations: 234.3 kB / 426.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004005/0.195, allocations: 217.2 kB / 427.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.195, allocations: 0 / 427.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005899/0.1956, allocations: 316.9 kB / 427.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.1956, allocations: 11.94 kB / 427.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1956, allocations: 0 / 427.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.1957, allocations: 4 kB / 427.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.1959, allocations: 60.27 kB / 427.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.1959, allocations: 8 kB / 427.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005325/0.1964, allocations: 107.6 kB / 427.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.1965, allocations: 15.98 kB / 427.7 MB, free: 10.44 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on2,pulseSeries.on1,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001444/0.1966, allocations: 181.8 kB / 427.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.141e-05/0.1967, allocations: 47.47 kB / 427.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006479/0.1974, allocations: 279.6 kB / 428.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.1974, allocations: 8 kB / 428.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1974, allocations: 0 / 428.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.1974, allocations: 0 / 428.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009643/0.1984, allocations: 0.7798 MB / 429 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1984, allocations: 4 kB / 429 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.1986, allocations: 31.97 kB / 429 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1986, allocations: 96 / 429 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.1986, allocations: 7.938 kB / 429 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1986, allocations: 7.984 kB / 429 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.1986, allocations: 0 / 429 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007873/0.1994, allocations: 495.5 kB / 429.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.1995, allocations: 164.6 kB / 429.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.644e-05/0.1996, allocations: 0 / 429.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005983/0.2002, allocations: 95.86 kB / 429.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/0.2005, allocations: 135.8 kB / 429.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.2005, allocations: 4 kB / 429.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003656/0.2009, allocations: 423.1 kB / 430.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2009, allocations: 0 / 430.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003841/0.2013, allocations: 111.8 kB / 430.4 MB, free: 7.598 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.limIntegrator.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001603/0.2029, allocations: 1.29 MB / 431.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005872/0.2035, allocations: 255.9 kB / 431.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2035, allocations: 0 / 431.9 MB, free: 6.168 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003039/0.2038, allocations: 155.8 kB / 432.1 MB, free: 6.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005723/0.2044, allocations: 109.6 kB / 432.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005048/0.2094, allocations: 4.546 MB / 436.7 MB, free: 1.211 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.2097, allocations: 0.823 MB / 437.6 MB, free: 372 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002528/0.2099, allocations: 71.23 kB / 437.6 MB, free: 300 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.2101, allocations: 147.4 kB / 437.8 MB, free: 152 kB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2101, allocations: 0 / 437.8 MB, free: 152 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.2354, allocations: 11.4 MB / 449.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.2356, allocations: 245.4 kB / 449.4 MB, free: 4.695 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.232, allocations: 0 / 449.4 MB, free: 4.695 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)