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.001106/0.001106, allocations: 104.2 kB / 16.45 MB, free: 6.398 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.001898/0.001899, allocations: 182.9 kB / 17.38 MB, free: 5.676 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.276/1.276, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04741/0.04741, allocations: 8.088 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 60.12 kB / 414 MB, free: 22.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09106/0.09231, allocations: 51.51 MB / 465.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.006398/0.09876, allocations: 4.688 MB / 470.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002502/0.1013, allocations: 1.435 MB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000584/0.1019, allocations: 8 kB / 471.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.1031, allocations: 0.5058 MB / 472.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001093/0.1043, allocations: 425.7 kB / 472.6 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002179/0.1065, allocations: 1.074 MB / 473.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001226/0.1077, allocations: 0.8521 MB / 474.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000499/0.1082, allocations: 314.8 kB / 474.8 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006208/0.1088, allocations: 386.7 kB / 475.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008783/0.1097, allocations: 0.5647 MB / 475.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002002/0.1099, allocations: 80 kB / 475.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007572/0.1107, allocations: 311.8 kB / 476.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004038/0.1111, allocations: 418.8 kB / 476.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007546/0.1119, allocations: 0.6137 MB / 477.1 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002007/0.1139, allocations: 1.672 MB / 478.8 MB, free: 5.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1139, allocations: 0 / 478.8 MB, free: 5.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1139, allocations: 0 / 478.8 MB, free: 5.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.482e-05/0.114, allocations: 0 / 478.8 MB, free: 5.289 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: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.006169/0.1202, allocations: 2.111 MB / 480.9 MB, free: 3.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.1202, allocations: 11.89 kB / 480.9 MB, free: 3.105 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001853/0.1204, allocations: 106.7 kB / 481 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003109/0.1207, allocations: 151.2 kB / 481.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.1223, allocations: 0.9783 MB / 482.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001909/0.1225, allocations: 198.4 kB / 482.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.1227, allocations: 56.38 kB / 482.4 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.1241, allocations: 0.8594 MB / 483.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.1242, allocations: 0 / 483.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.1e-05/0.1242, allocations: 28 kB / 483.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.1243, allocations: 15.94 kB / 483.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.1255, allocations: 0.7236 MB / 484 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005643/0.1312, allocations: 4.046 MB / 488.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002034/0.1332, allocations: 1.294 MB / 489.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008988/0.1341, allocations: 0.5582 MB / 489.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.116e-05/0.1342, allocations: 16.98 kB / 490 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.99e-05/0.1343, allocations: 51.5 kB / 490 MB, free: 9.555 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 2.635e-06/0.1343, allocations: 0 / 490 MB, free: 9.555 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01052/0.1448, allocations: 3.142 MB / 493.1 MB, free: 6.383 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.145, allocations: 248.3 kB / 493.4 MB, free: 6.086 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002558/0.1475, allocations: 1.809 MB / 495.2 MB, free: 4.262 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.582e-05/0.1476, allocations: 41.7 kB / 495.2 MB, free: 4.215 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004305/0.1481, allocations: 489.8 kB / 495.7 MB, free: 3.734 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002443/0.1483, allocations: 287.8 kB / 496 MB, free: 3.449 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002617/0.1486, allocations: 150.6 kB / 496.1 MB, free: 3.297 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.1487, allocations: 330 kB / 496.5 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007261/0.1495, allocations: 433.8 kB / 496.9 MB, free: 2.543 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008155/0.1503, allocations: 0.5384 MB / 497.4 MB, free: 1.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008598/0.1589, allocations: 2.589 MB / 0.4883 GB, free: 15.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.1589, allocations: 0 / 0.4883 GB, free: 15.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004312/0.1633, allocations: 1.714 MB / 0.49 GB, free: 13.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.1633, allocations: 4 kB / 0.49 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1633, allocations: 0 / 0.49 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002763/0.1661, allocations: 0.8203 MB / 0.4908 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004488/0.1665, allocations: 115.9 kB / 0.4909 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002521/0.1691, allocations: 1.479 MB / 0.4923 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007978/0.1699, allocations: 83.39 kB / 0.4924 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.623e-05/0.17, allocations: 31.98 kB / 0.4924 GB, free: 11.08 MB / 382.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.0007927/0.1708, allocations: 438.5 kB / 0.4929 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003471/0.1711, allocations: 126.4 kB / 0.493 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004193/0.1753, allocations: 1.76 MB / 0.4947 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.1754, allocations: 12 kB / 0.4947 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.1754, allocations: 4 kB / 0.4947 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.1754, allocations: 3.984 kB / 0.4947 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006473/0.1819, allocations: 3.388 MB / 0.498 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.1819, allocations: 0 / 0.498 GB, free: 5.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003803/0.1823, allocations: 99.89 kB / 0.4981 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002642/0.1849, allocations: 0.7849 MB / 0.4989 GB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.716e-05/0.185, allocations: 20 kB / 0.4989 GB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002341/0.1874, allocations: 1.463 MB / 0.5003 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.1874, allocations: 0 / 0.5003 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004934/0.1923, allocations: 2.329 MB / 0.5026 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005457/0.1929, allocations: 275.4 kB / 0.5029 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002468/0.1931, allocations: 19.94 kB / 0.5029 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006144/0.1937, allocations: 55.97 kB / 0.5029 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.1939, allocations: 64.84 kB / 0.503 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.748e-05/0.194, allocations: 31.98 kB / 0.503 GB, free: 72 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2175/0.4114, allocations: 1.295 MB / 0.5043 GB, free: 46.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.4115, allocations: 1.562 kB / 0.5043 GB, free: 46.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009984/0.4125, allocations: 243 kB / 0.5045 GB, free: 46.39 MB / 382.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.005615/0.4181, allocations: 3.077 MB / 0.5075 GB, free: 45.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003532/0.4217, allocations: 1.362 MB / 0.5089 GB, free: 44.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.4217, allocations: 0 / 0.5089 GB, free: 44.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002528/0.4242, allocations: 0.8589 MB / 0.5097 GB, free: 44.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008836/0.4251, allocations: 120.8 kB / 0.5098 GB, free: 44.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0211/0.4462, allocations: 13.72 MB / 0.5232 GB, free: 39.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.4468, allocations: 1.177 MB / 0.5244 GB, free: 38.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003411/0.4472, allocations: 164.9 kB / 0.5245 GB, free: 38.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004166/0.4476, allocations: 435.6 kB / 0.5249 GB, free: 37.82 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4476, allocations: 0 / 0.5249 GB, free: 37.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04862/0.4962, allocations: 29.26 MB / 0.5535 GB, free: 9.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.41, allocations: 3.938 kB / 0.5535 GB, free: 9.199 MB / 382.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)