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.00098/0.0009801, allocations: 103 kB / 16.07 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001841/0.001841, allocations: 181.6 kB / 16.96 MB, free: 6.879 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.318/1.318, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1838/0.1838, allocations: 8.086 MB / 300.2 MB, free: 2.926 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003244, allocations: 8 kB / 363.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09292, allocations: 52.53 MB / 416.1 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005084/0.09803, allocations: 4.361 MB / 420.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002871/0.1009, allocations: 1.577 MB / 422.1 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005783/0.1015, allocations: 12 kB / 422.1 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.1029, allocations: 0.7209 MB / 422.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001192/0.1041, allocations: 0.6074 MB / 423.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1606/0.2647, allocations: 1.076 MB / 424.5 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001356/0.2661, allocations: 1.199 MB / 425.7 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004268/0.2665, allocations: 351.6 kB / 426 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003591/0.2669, allocations: 484.3 kB / 426.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006555/0.2675, allocations: 0.8512 MB / 427.3 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.474e-05/0.2676, allocations: 51.34 kB / 427.4 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000519/0.2682, allocations: 276.3 kB / 427.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004468/0.2686, allocations: 0.9055 MB / 428.6 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006173/0.2692, allocations: 1.094 MB / 429.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.271, allocations: 3.153 MB / 432.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.271, allocations: 0 / 432.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.271, allocations: 0 / 432.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.505e-05/0.271, allocations: 3.281 kB / 432.8 MB, free: 34.84 MB / 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.005097/0.2761, allocations: 2.957 MB / 435.8 MB, free: 33.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.2762, allocations: 9.75 kB / 435.8 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000134/0.2763, allocations: 117.1 kB / 435.9 MB, free: 33.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003021/0.2766, allocations: 290.9 kB / 436.2 MB, free: 33.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002277/0.2789, allocations: 2.181 MB / 438.4 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/0.2791, allocations: 224.8 kB / 438.6 MB, free: 32.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.369e-05/0.2792, allocations: 63.62 kB / 438.6 MB, free: 32.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.2807, allocations: 1.028 MB / 439.7 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.2807, allocations: 6.938 kB / 439.7 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.127e-05/0.2808, allocations: 29.69 kB / 439.7 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.2808, allocations: 15.44 kB / 439.7 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001213/0.2821, allocations: 0.7153 MB / 440.4 MB, free: 32.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005879/0.2879, allocations: 4.906 MB / 445.3 MB, free: 30.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002013/0.29, allocations: 1.425 MB / 446.8 MB, free: 29.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009211/0.2909, allocations: 0.5419 MB / 447.3 MB, free: 28.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/0.2911, allocations: 96.42 kB / 447.4 MB, free: 28.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.2911, allocations: 52.92 kB / 447.5 MB, free: 28.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 2.535e-06/0.2911, allocations: 0 / 447.5 MB, free: 28.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.004527/0.2957, allocations: 1.724 MB / 449.2 MB, free: 28.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.2958, allocations: 0.5884 MB / 449.8 MB, free: 27.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005947/0.3018, allocations: 4.88 MB / 454.7 MB, free: 25.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001684/0.302, allocations: 43.73 kB / 454.7 MB, free: 25.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007982/0.3028, allocations: 1.134 MB / 455.8 MB, free: 24.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001836/0.303, allocations: 219 kB / 456 MB, free: 24.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.73e-05/0.303, allocations: 61.16 kB / 456.1 MB, free: 24.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.957e-05/0.3031, allocations: 327.5 kB / 456.4 MB, free: 24.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006807/0.3038, allocations: 344.7 kB / 456.8 MB, free: 24.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007344/0.3045, allocations: 0.5694 MB / 457.3 MB, free: 23.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005269/0.3098, allocations: 1.775 MB / 459.1 MB, free: 23.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.3098, allocations: 1.125 kB / 459.1 MB, free: 23.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003137/0.313, allocations: 1.282 MB / 460.4 MB, free: 22.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.313, allocations: 5.562 kB / 460.4 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.313, allocations: 2.344 kB / 460.4 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.3141, allocations: 255.9 kB / 460.6 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006746/0.3148, allocations: 182.5 kB / 460.8 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002757/0.3175, allocations: 2.476 MB / 463.3 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.3189, allocations: 134.4 kB / 463.4 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/0.319, allocations: 21.94 kB / 463.4 MB, free: 20.87 MB / 350.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.001337/0.3203, allocations: 0.9461 MB / 464.4 MB, free: 20.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004729/0.3208, allocations: 261.5 kB / 464.7 MB, free: 20.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002805/0.3236, allocations: 1.309 MB / 466 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3236, allocations: 5.906 kB / 466 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3236, allocations: 2.062 kB / 466 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3236, allocations: 4.672 kB / 466 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005396/0.329, allocations: 3.427 MB / 469.4 MB, free: 18.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3291, allocations: 1.062 kB / 469.4 MB, free: 18.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006614/0.3297, allocations: 155.9 kB / 469.6 MB, free: 18.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001114/0.3309, allocations: 254.7 kB / 469.8 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.004e-05/0.3309, allocations: 22.25 kB / 469.8 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002801/0.3337, allocations: 2.444 MB / 472.3 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3338, allocations: 1.125 kB / 472.3 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004181/0.338, allocations: 1.751 MB / 474 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/0.3395, allocations: 0.5339 MB / 474.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006239/0.3401, allocations: 19.41 kB / 474.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009718/0.3411, allocations: 110 kB / 474.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000254/0.3414, allocations: 75.69 kB / 474.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.715e-05/0.3414, allocations: 17.95 kB / 474.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.005704/0.3471, allocations: 3.519 MB / 478.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.3472, allocations: 0 / 478.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001954/0.3491, allocations: 353.7 kB / 478.6 MB, free: 14.02 MB / 350.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.00474/0.3539, allocations: 2.507 MB / 481.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.356, allocations: 1.005 MB / 482.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.3561, allocations: 6.922 kB / 482.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.3574, allocations: 0.6371 MB / 482.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001882/0.3593, allocations: 207.5 kB / 483 MB, free: 11.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06154/0.4208, allocations: 31.61 MB / 0.5025 GB, free: 12.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002417/0.4233, allocations: 1.821 MB / 0.5043 GB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001129/0.4244, allocations: 367.2 kB / 0.5047 GB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001766/0.4262, allocations: 0.9523 MB / 0.5056 GB, free: 9.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4262, allocations: 7.875 kB / 0.5056 GB, free: 9.332 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07689/0.5031, allocations: 47.98 MB / 0.5525 GB, free: 9.539 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002157/0.5034, allocations: 274.1 kB / 0.5527 GB, free: 9.172 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.679/3.182, allocations: 0 / 0.5527 GB, free: 9.172 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)