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.001472/0.001471, allocations: 100.7 kB / 16.45 MB, free: 6.445 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.001427/0.001427, allocations: 188.9 kB / 17.39 MB, free: 5.684 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.428/1.428, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05716/0.05716, allocations: 8.095 MB / 299.3 MB, free: 6.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 67.89 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08855/0.09047, allocations: 51.52 MB / 465.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.006366/0.09688, allocations: 4.692 MB / 470.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.09937, allocations: 1.436 MB / 471.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002142/0.0996, allocations: 8 kB / 471.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009735/0.1006, allocations: 0.4979 MB / 472.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008937/0.1015, allocations: 425.8 kB / 472.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002115/0.1036, allocations: 1.074 MB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.1048, allocations: 0.8482 MB / 474.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000484/0.1053, allocations: 318.8 kB / 474.8 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003946/0.1057, allocations: 378.7 kB / 475.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007391/0.1064, allocations: 0.5724 MB / 475.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001233/0.1066, allocations: 80 kB / 475.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005846/0.1071, allocations: 307.8 kB / 476.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004059/0.1076, allocations: 426.8 kB / 476.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005854/0.1082, allocations: 0.6098 MB / 477.1 MB, free: 6.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002053/0.1102, allocations: 1.673 MB / 478.8 MB, free: 5.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1102, allocations: 4 kB / 478.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1102, allocations: 0 / 478.8 MB, free: 5.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.1103, allocations: 0 / 478.8 MB, free: 5.293 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.006033/0.1163, allocations: 2.16 MB / 481 MB, free: 3.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.118e-05/0.1164, allocations: 15.89 kB / 481 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001818/0.1166, allocations: 102.7 kB / 481.1 MB, free: 2.945 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003245/0.1169, allocations: 152 kB / 481.2 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.1185, allocations: 0.9989 MB / 482.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.1187, allocations: 194.4 kB / 482.4 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.1188, allocations: 60.38 kB / 482.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.1204, allocations: 0.8594 MB / 483.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.1204, allocations: 0 / 483.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.018e-05/0.1205, allocations: 24 kB / 483.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.1205, allocations: 15.98 kB / 483.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.1219, allocations: 0.7236 MB / 484.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006082/0.128, allocations: 4.042 MB / 488.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002317/0.1303, allocations: 1.298 MB / 489.5 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009885/0.1313, allocations: 0.5465 MB / 490 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.635e-05/0.1315, allocations: 20.97 kB / 490 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.1315, allocations: 55.5 kB / 490.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 2.625e-06/0.1315, allocations: 0 / 490.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.0121/0.1436, allocations: 3.146 MB / 493.2 MB, free: 6.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000239/0.1439, allocations: 244.3 kB / 493.5 MB, free: 6.027 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002626/0.1465, allocations: 1.817 MB / 495.3 MB, free: 4.195 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.14e-05/0.1466, allocations: 45.7 kB / 495.3 MB, free: 4.145 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005544/0.1472, allocations: 494.2 kB / 495.8 MB, free: 3.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/0.1475, allocations: 297.3 kB / 496.1 MB, free: 3.367 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/0.1478, allocations: 150.6 kB / 496.2 MB, free: 3.215 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.148, allocations: 334 kB / 496.6 MB, free: 2.883 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008276/0.1488, allocations: 429.8 kB / 497 MB, free: 2.461 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009272/0.1497, allocations: 0.5423 MB / 497.5 MB, free: 1.891 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009884/0.1596, allocations: 2.592 MB / 0.4884 GB, free: 15.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1597, allocations: 0 / 0.4884 GB, free: 15.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.004727/0.1644, allocations: 1.715 MB / 0.4901 GB, free: 13.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.575e-05/0.1645, allocations: 8 kB / 0.4901 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/0.1645, allocations: 0 / 0.4901 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003094/0.1676, allocations: 0.8203 MB / 0.4909 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.1681, allocations: 115.9 kB / 0.491 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002828/0.171, allocations: 1.471 MB / 0.4924 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007769/0.1718, allocations: 91.56 kB / 0.4925 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.106e-05/0.1718, allocations: 31.98 kB / 0.4926 GB, free: 10.99 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.0007871/0.1726, allocations: 438.5 kB / 0.493 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003147/0.173, allocations: 135.1 kB / 0.4931 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004645/0.1776, allocations: 1.76 MB / 0.4948 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.1777, allocations: 8 kB / 0.4948 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1777, allocations: 8 kB / 0.4948 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.1777, allocations: 3.984 kB / 0.4948 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007217/0.1849, allocations: 3.385 MB / 0.4981 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.1849, allocations: 0 / 0.4981 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004207/0.1854, allocations: 107.9 kB / 0.4982 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002985/0.1884, allocations: 0.7732 MB / 0.499 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.995e-05/0.1885, allocations: 24 kB / 0.499 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002781/0.1912, allocations: 1.467 MB / 0.5005 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1913, allocations: 0 / 0.5005 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005689/0.197, allocations: 2.345 MB / 0.5027 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005714/0.1976, allocations: 284.1 kB / 0.503 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002409/0.1978, allocations: 16 kB / 0.503 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007121/0.1985, allocations: 48.03 kB / 0.5031 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2031/0.4017, allocations: 67.7 kB / 0.5031 GB, free: 46.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/0.4019, allocations: 27.47 kB / 0.5032 GB, free: 46.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001895/0.4038, allocations: 1.305 MB / 0.5044 GB, free: 46.74 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4038, allocations: 0 / 0.5044 GB, free: 46.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008108/0.4046, allocations: 246.8 kB / 0.5047 GB, free: 46.74 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.00582/0.4104, allocations: 3.082 MB / 0.5077 GB, free: 45.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00366/0.4141, allocations: 1.367 MB / 0.509 GB, free: 45.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4141, allocations: 0 / 0.509 GB, free: 45.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002654/0.4168, allocations: 0.8608 MB / 0.5099 GB, free: 44.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008073/0.4176, allocations: 112.4 kB / 0.51 GB, free: 44.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02344/0.441, allocations: 13.76 MB / 0.5234 GB, free: 39.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005117/0.4416, allocations: 1.181 MB / 0.5246 GB, free: 38.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003436/0.4419, allocations: 164.3 kB / 0.5247 GB, free: 38.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.4424, allocations: 436.7 kB / 0.5251 GB, free: 37.99 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4424, allocations: 0 / 0.5251 GB, free: 37.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05224/0.4946, allocations: 28.54 MB / 0.553 GB, free: 10.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/14.65, allocations: 0 / 0.553 GB, free: 10.06 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)