Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",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.0011/0.0011, allocations: 110.2 kB / 16.03 MB, free: 6.273 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.001052/0.001052, allocations: 192.3 kB / 16.95 MB, free: 6.098 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.295/1.295, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04724/0.04724, allocations: 8.095 MB / 298.9 MB, free: 6.887 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 64.09 kB / 361.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2091, allocations: 51.52 MB / 412.8 MB, free: 25.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003495/0.2126, allocations: 3.166 MB / 416 MB, free: 22.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.214, allocations: 1.137 MB / 417.2 MB, free: 21.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.2142, allocations: 8 kB / 417.2 MB, free: 21.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006497/0.2149, allocations: 429 kB / 417.6 MB, free: 21.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00037/0.2153, allocations: 247.1 kB / 417.8 MB, free: 20.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001279/0.2166, allocations: 0.9264 MB / 418.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004114/0.217, allocations: 0.5128 MB / 419.3 MB, free: 19.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.2172, allocations: 161.4 kB / 419.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.2174, allocations: 239.2 kB / 419.6 MB, free: 18.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003099/0.2177, allocations: 375 kB / 420 MB, free: 18.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.207e-05/0.2177, allocations: 51.94 kB / 420.1 MB, free: 18.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003616/0.2181, allocations: 275.8 kB / 420.3 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.2183, allocations: 339.1 kB / 420.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002267/0.2185, allocations: 461.3 kB / 421.1 MB, free: 17.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008131/0.2193, allocations: 1.309 MB / 422.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2194, allocations: 4 kB / 422.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2194, allocations: 0 / 422.4 MB, free: 16.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.308e-06/0.2194, allocations: 0 / 422.4 MB, free: 16.14 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002765/0.2222, allocations: 1.552 MB / 424 MB, free: 14.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.2222, allocations: 23.83 kB / 424 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.934e-05/0.2223, allocations: 58.73 kB / 424.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.2224, allocations: 107.6 kB / 424.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000837/0.2233, allocations: 0.8719 MB / 425 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.978e-05/0.2233, allocations: 84.52 kB / 425.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.785e-05/0.2234, allocations: 24.38 kB / 425.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006491/0.2241, allocations: 456.8 kB / 425.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2241, allocations: 0 / 425.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.719e-05/0.2241, allocations: 12 kB / 425.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.2241, allocations: 8 kB / 425.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005121/0.2246, allocations: 326 kB / 425.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.2271, allocations: 2.127 MB / 428.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008612/0.228, allocations: 479.3 kB / 428.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003641/0.2284, allocations: 217.2 kB / 428.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000112/0.2285, allocations: 93.31 kB / 428.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.2285, allocations: 42.8 kB / 428.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.803e-06/0.2286, allocations: 0 / 428.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002044/0.2306, allocations: 0.8246 MB / 429.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.2307, allocations: 239.3 kB / 429.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001551/0.2322, allocations: 1.733 MB / 431.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.657e-05/0.2323, allocations: 37.7 kB / 431.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002615/0.2326, allocations: 440.7 kB / 432.1 MB, free: 5.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.304e-05/0.2326, allocations: 98.58 kB / 432.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.2327, allocations: 69.59 kB / 432.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.422e-05/0.2328, allocations: 322 kB / 432.6 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002703/0.2331, allocations: 147.9 kB / 432.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003069/0.2334, allocations: 246.3 kB / 433 MB, free: 5.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003254/0.2366, allocations: 0.9419 MB / 433.9 MB, free: 4.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.2367, allocations: 4 kB / 433.9 MB, free: 4.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001352/0.238, allocations: 0.6098 MB / 434.5 MB, free: 3.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.2381, allocations: 10.33 kB / 434.6 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.2381, allocations: 3.984 kB / 434.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006314/0.2387, allocations: 148.7 kB / 434.7 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.239, allocations: 71.89 kB / 434.8 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.2412, allocations: 2.024 MB / 436.8 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005601/0.2417, allocations: 47.66 kB / 436.8 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.2418, allocations: 12 kB / 436.9 MB, free: 1.047 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 4 * 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 (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005155/0.2423, allocations: 405.6 kB / 437.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.2425, allocations: 98.77 kB / 437.4 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.2438, allocations: 0.5895 MB / 437.9 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.2438, allocations: 7.938 kB / 438 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.2438, allocations: 0 / 438 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.2438, allocations: 0 / 438 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/0.2462, allocations: 1.486 MB / 439.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2463, allocations: 0 / 439.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002682/0.2465, allocations: 51.97 kB / 439.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006559/0.2472, allocations: 148.7 kB / 439.6 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.016e-05/0.2472, allocations: 7.984 kB / 439.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/0.2495, allocations: 2.008 MB / 441.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.2495, allocations: 0 / 441.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.2515, allocations: 0.8284 MB / 442.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004657/0.252, allocations: 243.8 kB / 442.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.2521, allocations: 12.12 kB / 442.7 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003911/0.2525, allocations: 43.97 kB / 442.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.2526, allocations: 27.95 kB / 442.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.732e-05/0.2527, allocations: 12 kB / 442.8 MB, free: 10.83 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001786/0.2545, allocations: 1.264 MB / 444.1 MB, free: 9.559 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2545, allocations: 0 / 444.1 MB, free: 9.559 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000674/0.2552, allocations: 155.7 kB / 444.2 MB, free: 9.406 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.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 (25): * 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: 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002426/0.2576, allocations: 1.549 MB / 445.8 MB, free: 7.906 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.2589, allocations: 0.526 MB / 446.3 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/0.2589, allocations: 4 kB / 446.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006727/0.2596, allocations: 346.6 kB / 446.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006492/0.2602, allocations: 86.89 kB / 446.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01741/0.2776, allocations: 10.89 MB / 457.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006324/0.2783, allocations: 1.08 MB / 458.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003386/0.2787, allocations: 133.1 kB / 458.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004153/0.2791, allocations: 327.3 kB / 459.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2791, allocations: 0 / 459.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04067/0.3198, allocations: 20.2 MB / 479.4 MB, free: 6.164 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002171/0.32, allocations: 287.8 kB / 479.6 MB, free: 5.777 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.239/2.559, allocations: 4 kB / 479.6 MB, free: 5.773 MB / 350.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad_fmu --startTime=0 --stopTime=360000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)