Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,fileNamePrefix="PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge",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.001266/0.001266, allocations: 102.9 kB / 16.31 MB, free: 5.879 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.001196/0.001197, allocations: 186.8 kB / 17.24 MB, free: 5.539 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.338/1.338, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05041/0.05041, allocations: 8.102 MB / 299.2 MB, free: 6.695 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 59.91 kB / 361.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2053, allocations: 51.51 MB / 413.4 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003293/0.2086, allocations: 2.387 MB / 415.7 MB, free: 23.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006655/0.2093, allocations: 0.5022 MB / 416.2 MB, free: 22.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.2094, allocations: 7.938 kB / 416.2 MB, free: 22.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003494/0.2098, allocations: 99.38 kB / 416.3 MB, free: 22.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001616/0.21, allocations: 87.44 kB / 416.4 MB, free: 22.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001865/0.2102, allocations: 79.8 kB / 416.5 MB, free: 22.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.2103, allocations: 279.1 kB / 416.8 MB, free: 22.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.2105, allocations: 109.7 kB / 416.9 MB, free: 22.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.366e-05/0.2106, allocations: 119.6 kB / 417 MB, free: 21.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.2108, allocations: 139.5 kB / 417.1 MB, free: 21.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.118e-05/0.2108, allocations: 28 kB / 417.2 MB, free: 21.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.211, allocations: 75.92 kB / 417.2 MB, free: 21.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.2111, allocations: 115.7 kB / 417.4 MB, free: 21.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.2112, allocations: 151.2 kB / 417.5 MB, free: 21.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000315/0.2115, allocations: 394.7 kB / 417.9 MB, free: 21.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2116, allocations: 4 kB / 417.9 MB, free: 21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2116, allocations: 4 kB / 417.9 MB, free: 21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.2116, allocations: 0 / 417.9 MB, free: 21 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001664/0.2133, allocations: 0.7871 MB / 418.7 MB, free: 20.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2133, allocations: 19.81 kB / 418.7 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.003e-05/0.2134, allocations: 50.73 kB / 418.8 MB, free: 20.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.865e-05/0.2134, allocations: 36.5 kB / 418.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003396/0.2138, allocations: 355.4 kB / 419.1 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.2138, allocations: 16.7 kB / 419.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.653e-05/0.2138, allocations: 16.38 kB / 419.2 MB, free: 19.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004107/0.2143, allocations: 279 kB / 419.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.2143, allocations: 3.938 kB / 419.4 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.48e-05/0.2143, allocations: 12 kB / 419.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.2143, allocations: 4 kB / 419.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000335/0.2147, allocations: 191.8 kB / 419.6 MB, free: 19.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.2157, allocations: 0.857 MB / 420.5 MB, free: 18.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005395/0.2163, allocations: 295.3 kB / 420.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.2166, allocations: 148.7 kB / 420.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.2166, allocations: 4 kB / 420.9 MB, free: 17.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.663e-05/0.2166, allocations: 42.55 kB / 421 MB, free: 17.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.482e-06/0.2166, allocations: 4 kB / 421 MB, free: 17.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006424/0.2173, allocations: 269.5 kB / 421.2 MB, free: 17.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.2174, allocations: 213.6 kB / 421.5 MB, free: 17.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000312/0.2177, allocations: 366.7 kB / 421.8 MB, free: 16.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.2177, allocations: 29.7 kB / 421.8 MB, free: 16.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.231e-05/0.2178, allocations: 172 kB / 422 MB, free: 16.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/0.2178, allocations: 43.39 kB / 422.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.496e-05/0.2179, allocations: 37.64 kB / 422.1 MB, free: 16.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.107e-05/0.2179, allocations: 342.8 kB / 422.4 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.2181, allocations: 80 kB / 422.5 MB, free: 16.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.2183, allocations: 151.7 kB / 422.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007065/0.2191, allocations: 242.3 kB / 422.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2191, allocations: 0 / 422.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004169/0.2195, allocations: 216.4 kB / 423.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.2195, allocations: 4 kB / 423.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.2195, allocations: 4.062 kB / 423.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2196, allocations: 4 kB / 423.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.2197, allocations: 31.97 kB / 423.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.2197, allocations: 4 kB / 423.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000504/0.2202, allocations: 87.78 kB / 423.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.2203, allocations: 12 kB / 423.2 MB, free: 15.3 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 3 * Number of states: 0 () * Number of discrete variables: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001953/0.2205, allocations: 161.7 kB / 423.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.873e-05/0.2205, allocations: 19.72 kB / 423.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005269/0.2211, allocations: 247.3 kB / 423.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2211, allocations: 4 kB / 423.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2211, allocations: 0 / 423.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2211, allocations: 3.938 kB / 423.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007956/0.2219, allocations: 0.659 MB / 424.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2219, allocations: 0 / 424.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001469/0.2221, allocations: 27.97 kB / 424.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.2221, allocations: 4 kB / 424.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.2221, allocations: 3.938 kB / 424.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.2221, allocations: 4 kB / 424.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2221, allocations: 32 / 424.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/0.2228, allocations: 435.9 kB / 424.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.834e-05/0.2228, allocations: 108.8 kB / 424.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.129e-05/0.2229, allocations: 11.94 kB / 424.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000528/0.2234, allocations: 79.88 kB / 425 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.2237, allocations: 131.8 kB / 425.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.2237, allocations: 8 kB / 425.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002198/0.2239, allocations: 273.9 kB / 425.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2239, allocations: 0 / 425.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003197/0.2242, allocations: 67.84 kB / 425.5 MB, free: 12.97 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * 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.001245/0.2255, allocations: 1.123 MB / 426.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004748/0.226, allocations: 199.8 kB / 426.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.226, allocations: 0 / 426.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002563/0.2263, allocations: 144 kB / 426.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.2266, allocations: 28.42 kB / 426.9 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00394/0.2305, allocations: 3.094 MB / 430 MB, free: 8.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001744/0.2307, allocations: 0.7635 MB / 430.8 MB, free: 7.547 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001358/0.2309, allocations: 49.45 kB / 430.9 MB, free: 7.496 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.231, allocations: 83.41 kB / 430.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.231, allocations: 0 / 430.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02297/0.254, allocations: 8.036 MB / 439 MB, free: 15.45 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.426/7.68, allocations: 11.09 kB / 439 MB, free: 15.45 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeCharge.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1)