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.001101/0.001101, allocations: 104.8 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.001318/0.001318, allocations: 189.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.333/1.333, 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.04408/0.04408, allocations: 8.093 MB / 299.2 MB, free: 6.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 63.91 kB / 361.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2087, allocations: 51.52 MB / 413.4 MB, free: 25.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL): time 0.005096/0.2139, allocations: 3.352 MB / 416.7 MB, free: 22.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.2157, allocations: 1.321 MB / 418 MB, free: 20.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.216, allocations: 4 kB / 418 MB, free: 20.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005452/0.2166, allocations: 182.9 kB / 418.2 MB, free: 20.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000432/0.217, allocations: 182.8 kB / 418.4 MB, free: 20.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005188/0.2175, allocations: 242.6 kB / 418.6 MB, free: 20.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004333/0.218, allocations: 0.5377 MB / 419.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000267/0.2182, allocations: 168.7 kB / 419.3 MB, free: 19.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.2184, allocations: 215.2 kB / 419.5 MB, free: 19.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.2187, allocations: 223 kB / 419.8 MB, free: 19.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.378e-05/0.2187, allocations: 44 kB / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.2189, allocations: 95.91 kB / 419.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.2191, allocations: 155.5 kB / 420 MB, free: 18.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001823/0.2192, allocations: 262.6 kB / 420.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005072/0.2198, allocations: 0.6346 MB / 420.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2198, allocations: 0 / 420.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2198, allocations: 4 kB / 420.9 MB, free: 17.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.2198, allocations: 0 / 420.9 MB, free: 17.93 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.001947/0.2218, allocations: 1.005 MB / 421.9 MB, free: 16.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.2218, allocations: 15.89 kB / 422 MB, free: 16.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.818e-05/0.2219, allocations: 62.73 kB / 422 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.633e-05/0.222, allocations: 60.28 kB / 422.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000602/0.2226, allocations: 490.4 kB / 422.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002219/0.2228, allocations: 64.77 kB / 422.6 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.2229, allocations: 24 kB / 422.6 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006032/0.2235, allocations: 405.5 kB / 423 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.2235, allocations: 4 kB / 423 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.551e-05/0.2236, allocations: 12 kB / 423.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2236, allocations: 8 kB / 423.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004913/0.2241, allocations: 266 kB / 423.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/0.2261, allocations: 1.523 MB / 424.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006518/0.2268, allocations: 315.4 kB / 425.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002577/0.2271, allocations: 112.8 kB / 425.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.218e-05/0.2271, allocations: 7.984 kB / 425.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.2272, allocations: 42.5 kB / 425.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.665e-06/0.2272, allocations: 0 / 425.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008759/0.2281, allocations: 337.2 kB / 425.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.2281, allocations: 209.6 kB / 425.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005536/0.2287, allocations: 0.5838 MB / 426.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.2287, allocations: 25.7 kB / 426.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.2289, allocations: 263.7 kB / 426.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.579e-05/0.2289, allocations: 47.36 kB / 426.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.187e-05/0.229, allocations: 53.69 kB / 426.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.428e-05/0.2291, allocations: 346.8 kB / 427.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002543/0.2293, allocations: 115.8 kB / 427.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.2296, allocations: 236.4 kB / 427.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.23, allocations: 217.2 kB / 427.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.23, allocations: 0 / 427.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006318/0.2307, allocations: 319.9 kB / 428 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.2307, allocations: 11.94 kB / 428 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.2307, allocations: 0 / 428 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.2308, allocations: 4 kB / 428 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002399/0.231, allocations: 60.02 kB / 428.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.231, allocations: 7.984 kB / 428.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005984/0.2316, allocations: 111.7 kB / 428.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.01e-05/0.2317, allocations: 12 kB / 428.2 MB, free: 10.19 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.0002002/0.2319, allocations: 185.8 kB / 428.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.181e-05/0.232, allocations: 43.47 kB / 428.5 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006689/0.2326, allocations: 285.2 kB / 428.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2327, allocations: 0 / 428.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2327, allocations: 0 / 428.7 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2327, allocations: 3.984 kB / 428.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009638/0.2336, allocations: 0.7759 MB / 429.5 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2337, allocations: 0 / 429.5 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.2338, allocations: 40 kB / 429.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2338, allocations: 0 / 429.5 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.2339, allocations: 4 kB / 429.6 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2339, allocations: 96 / 429.6 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2339, allocations: 3.938 kB / 429.6 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008308/0.2347, allocations: 499.6 kB / 430 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.2349, allocations: 160.5 kB / 430.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.419e-05/0.2349, allocations: 0 / 430.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006312/0.2356, allocations: 107.9 kB / 430.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002596/0.2358, allocations: 123.8 kB / 430.4 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.2359, allocations: 4 kB / 430.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003761/0.2362, allocations: 435.1 kB / 430.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2362, allocations: 0 / 430.9 MB, free: 7.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003881/0.2366, allocations: 99.78 kB / 431 MB, free: 7.344 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.001611/0.2383, allocations: 1.298 MB / 432.3 MB, free: 6.152 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006105/0.2389, allocations: 263.9 kB / 432.5 MB, free: 5.895 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2389, allocations: 0 / 432.5 MB, free: 5.895 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003022/0.2392, allocations: 155.8 kB / 432.7 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005663/0.2398, allocations: 110.9 kB / 432.8 MB, free: 5.637 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00489/0.2447, allocations: 4.406 MB / 437.2 MB, free: 1.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001876/0.2449, allocations: 0.8191 MB / 438 MB, free: 240 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002216/0.2451, allocations: 67.25 kB / 438.1 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.2453, allocations: 155.4 kB / 438.2 MB, free: 16 kB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2453, allocations: 0 / 438.2 MB, free: 16 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03238/0.2777, allocations: 12.45 MB / 450.7 MB, free: 3.734 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.95/8.227, allocations: 11.56 kB / 450.7 MB, free: 3.727 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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 PowerSysPro_PowerSysPro_Batteries_Examples_BatteryDischargeChargeFromMSL.fmu > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeChargeFromMSL.pipe 2>&1)