Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.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.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery",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.004382/0.004382, allocations: 101.4 kB / 15.92 MB, free: 6.281 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.001142/0.001142, allocations: 190.9 kB / 16.83 MB, free: 6.211 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.23/1.23, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1425/0.1425, allocations: 8.089 MB / 298.7 MB, free: 2.117 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001132, allocations: 63.91 kB / 361.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08871/0.08985, allocations: 51.53 MB / 412.7 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.00614/0.09604, allocations: 4.689 MB / 417.4 MB, free: 5.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00227/0.09835, allocations: 1.417 MB / 418.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002044/0.09859, allocations: 12 kB / 418.8 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008623/0.09946, allocations: 478.5 kB / 419.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006385/0.1001, allocations: 390.3 kB / 419.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00169/0.1018, allocations: 1.028 MB / 420.7 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007857/0.1026, allocations: 0.821 MB / 421.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.103, allocations: 255.8 kB / 421.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.1033, allocations: 342.8 kB / 422.1 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005655/0.1038, allocations: 0.5606 MB / 422.6 MB, free: 72 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.912e-05/0.1039, allocations: 56 kB / 422.7 MB, free: 16 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004987/0.1044, allocations: 283.7 kB / 423 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002976/0.1048, allocations: 394.8 kB / 423.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004398/0.1052, allocations: 0.5668 MB / 423.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.1065, allocations: 1.624 MB / 425.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1066, allocations: 0 / 425.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.1066, allocations: 0 / 425.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.1066, allocations: 0 / 425.5 MB, free: 13.15 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.004931/0.1115, allocations: 2.115 MB / 427.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1116, allocations: 8.031 kB / 427.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/0.1117, allocations: 102.7 kB / 427.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.1119, allocations: 147.2 kB / 427.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.1132, allocations: 0.9861 MB / 428.9 MB, free: 9.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.1134, allocations: 194.4 kB / 429.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.1135, allocations: 64.36 kB / 429.1 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002137/0.1157, allocations: 0.8593 MB / 430 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.1157, allocations: 0 / 430 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.1158, allocations: 28 kB / 430 MB, free: 8.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.1158, allocations: 12 kB / 430 MB, free: 8.469 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.1177, allocations: 0.7196 MB / 430.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008166/0.1259, allocations: 4.065 MB / 434.8 MB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003236/0.1292, allocations: 1.29 MB / 436.1 MB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.1307, allocations: 0.551 MB / 436.7 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.1308, allocations: 20.97 kB / 436.7 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.1309, allocations: 55.38 kB / 436.7 MB, free: 1.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 3.186e-06/0.1309, allocations: 0 / 436.7 MB, free: 1.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.1776/0.3085, allocations: 3.127 MB / 439.9 MB, free: 56.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.19e-05/0.3086, allocations: 245.3 kB / 440.1 MB, free: 55.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/0.3106, allocations: 1.804 MB / 441.9 MB, free: 55.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001081/0.3107, allocations: 48.92 kB / 442 MB, free: 55.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.311, allocations: 493.8 kB / 442.4 MB, free: 55.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.3112, allocations: 288.9 kB / 442.7 MB, free: 55.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002277/0.3114, allocations: 148.5 kB / 442.9 MB, free: 55.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.536e-05/0.3115, allocations: 337.8 kB / 443.2 MB, free: 55.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000638/0.3122, allocations: 426 kB / 443.6 MB, free: 55.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006884/0.3129, allocations: 0.5346 MB / 444.1 MB, free: 54.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008287/0.3211, allocations: 2.592 MB / 446.7 MB, free: 54.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3212, allocations: 3.938 kB / 446.7 MB, free: 54.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003896/0.3251, allocations: 1.703 MB / 448.4 MB, free: 53.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.3251, allocations: 3.188 kB / 448.5 MB, free: 53.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.3252, allocations: 7.422 kB / 448.5 MB, free: 53.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00273/0.3279, allocations: 0.813 MB / 449.3 MB, free: 53.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004179/0.3283, allocations: 115.2 kB / 449.4 MB, free: 53.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002189/0.3305, allocations: 1.482 MB / 450.9 MB, free: 52.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007201/0.3313, allocations: 84.12 kB / 450.9 MB, free: 52.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.229e-05/0.3313, allocations: 30.59 kB / 451 MB, free: 52.23 MB / 366.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: 3 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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 {(16,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0006326/0.332, allocations: 445.5 kB / 451.4 MB, free: 52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.3322, allocations: 121.6 kB / 451.5 MB, free: 51.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003664/0.3358, allocations: 1.765 MB / 453.3 MB, free: 51.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.3359, allocations: 10.09 kB / 453.3 MB, free: 51.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.3359, allocations: 3.656 kB / 453.3 MB, free: 51.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.3359, allocations: 6.75 kB / 453.3 MB, free: 51.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005355/0.3412, allocations: 3.39 MB / 456.7 MB, free: 49.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.3413, allocations: 0 / 456.7 MB, free: 49.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003541/0.3416, allocations: 107.4 kB / 456.8 MB, free: 49.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002662/0.3443, allocations: 0.777 MB / 457.6 MB, free: 49.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.3444, allocations: 18.69 kB / 457.6 MB, free: 49.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002209/0.3467, allocations: 1.472 MB / 459.1 MB, free: 48.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.3467, allocations: 0.875 kB / 459.1 MB, free: 48.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004548/0.3512, allocations: 2.341 MB / 461.4 MB, free: 47.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006102/0.3519, allocations: 266.7 kB / 461.7 MB, free: 47.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/0.3521, allocations: 22.53 kB / 461.7 MB, free: 47.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005172/0.3526, allocations: 41.75 kB / 461.7 MB, free: 47.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.3528, allocations: 67.89 kB / 461.8 MB, free: 47.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.948e-05/0.3528, allocations: 32.92 kB / 461.8 MB, free: 47.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001507/0.3543, allocations: 1.298 MB / 463.1 MB, free: 46.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3544, allocations: 0 / 463.1 MB, free: 46.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007284/0.3551, allocations: 248.2 kB / 463.4 MB, free: 46.72 MB / 366.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: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 58 * 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 {(16,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005133/0.3602, allocations: 3.078 MB / 466.5 MB, free: 45.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003315/0.3636, allocations: 1.347 MB / 467.8 MB, free: 44.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.3636, allocations: 0 / 467.8 MB, free: 44.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00219/0.3658, allocations: 0.8437 MB / 468.7 MB, free: 44.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008481/0.3667, allocations: 102.6 kB / 468.8 MB, free: 44.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02272/0.3894, allocations: 15 MB / 483.8 MB, free: 37.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00057/0.39, allocations: 1.184 MB / 484.9 MB, free: 36.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000392/0.3904, allocations: 170 kB / 485.1 MB, free: 36.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004298/0.3908, allocations: 431.3 kB / 485.5 MB, free: 35.99 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3908, allocations: 3.938 kB / 485.5 MB, free: 35.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2259/0.6167, allocations: 26.84 MB / 0.5004 GB, free: 18.29 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/0.617, allocations: 270.6 kB / 0.5006 GB, free: 17.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.282/2.899, allocations: 0 / 0.5006 GB, free: 17.92 MB / 366.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_LoadRescuedByBattery.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)