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: translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") translateModel(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 120.2 kB / 17.13 MB, free: 5.895 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.00162/0.00162, allocations: 194.3 kB / 18.06 MB, free: 4.977 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.274/1.274, allocations: 222.9 MB / 241.8 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04386/0.04386, allocations: 8.09 MB / 300 MB, free: 6.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 63.91 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08165/0.08285, allocations: 51.51 MB / 466.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery): time 0.005565/0.08845, allocations: 4.699 MB / 471.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.09086, allocations: 1.44 MB / 472.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002539/0.09113, allocations: 12 kB / 472.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009309/0.09207, allocations: 0.4941 MB / 473.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000723/0.09284, allocations: 417.8 kB / 473.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001847/0.09469, allocations: 1.085 MB / 474.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008881/0.09559, allocations: 0.8482 MB / 475.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004935/0.09609, allocations: 306.8 kB / 476 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004556/0.09656, allocations: 386.7 kB / 476.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007339/0.0973, allocations: 0.5685 MB / 476.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.09743, allocations: 80 kB / 477 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007059/0.09815, allocations: 315.8 kB / 477.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003523/0.09851, allocations: 422.8 kB / 477.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004928/0.09902, allocations: 0.606 MB / 478.3 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001472/0.1005, allocations: 1.671 MB / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1005, allocations: 0 / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1005, allocations: 0 / 480 MB, free: 4.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.1005, allocations: 0 / 480 MB, free: 4.789 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.005262/0.1058, allocations: 2.111 MB / 482.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.1059, allocations: 15.89 kB / 482.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/0.1061, allocations: 147.2 kB / 482.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.1073, allocations: 0.9861 MB / 483.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.1075, allocations: 194.4 kB / 483.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-05/0.1076, allocations: 60.38 kB / 483.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.109, allocations: 0.8518 MB / 484.3 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.109, allocations: 3.938 kB / 484.3 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.837e-05/0.1091, allocations: 28 kB / 484.4 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.1091, allocations: 12 kB / 484.4 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.1103, allocations: 0.7236 MB / 485.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00546/0.1158, allocations: 4.05 MB / 489.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.118, allocations: 1.29 MB / 490.4 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008881/0.1189, allocations: 0.5582 MB / 491 MB, free: 9.242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.08e-05/0.119, allocations: 16.97 kB / 491 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.119, allocations: 47.5 kB / 491.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=85): time 2.545e-06/0.119, allocations: 4 kB / 491.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=85): time 0.01131/0.1304, allocations: 3.134 MB / 494.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.1305, allocations: 248.3 kB / 494.4 MB, free: 5.707 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002357/0.1329, allocations: 1.805 MB / 496.3 MB, free: 3.887 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.133, allocations: 45.7 kB / 496.3 MB, free: 3.836 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004197/0.1334, allocations: 493.8 kB / 496.8 MB, free: 3.352 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002543/0.1337, allocations: 287.6 kB / 497.1 MB, free: 3.066 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002672/0.134, allocations: 150.6 kB / 497.2 MB, free: 2.914 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1341, allocations: 337.9 kB / 497.5 MB, free: 2.578 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007654/0.1349, allocations: 425.8 kB / 498 MB, free: 2.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008547/0.1357, allocations: 0.5384 MB / 498.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009382/0.1451, allocations: 2.604 MB / 0.4894 GB, free: 14.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1452, allocations: 0 / 0.4894 GB, free: 14.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00458/0.1498, allocations: 1.706 MB / 0.491 GB, free: 13.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.1498, allocations: 4 kB / 0.491 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1498, allocations: 0 / 0.491 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003054/0.1529, allocations: 0.8203 MB / 0.4918 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/0.1534, allocations: 119.8 kB / 0.4919 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/0.1562, allocations: 1.479 MB / 0.4934 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008555/0.157, allocations: 83.39 kB / 0.4935 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.456e-05/0.1571, allocations: 31.98 kB / 0.4935 GB, free: 10.69 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.0008605/0.158, allocations: 441.6 kB / 0.4939 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003843/0.1584, allocations: 118.5 kB / 0.494 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004517/0.1629, allocations: 1.764 MB / 0.4957 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.163, allocations: 12 kB / 0.4958 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.163, allocations: 0 / 0.4958 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.163, allocations: 7.969 kB / 0.4958 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006797/0.1698, allocations: 3.377 MB / 0.4991 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.932e-06/0.1698, allocations: 4 kB / 0.4991 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004356/0.1703, allocations: 111.8 kB / 0.4992 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002837/0.1731, allocations: 0.7771 MB / 0.4999 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-05/0.1732, allocations: 19.98 kB / 0.5 GB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002493/0.1757, allocations: 1.459 MB / 0.5014 GB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.1757, allocations: 7.938 kB / 0.5014 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005091/0.1808, allocations: 2.329 MB / 0.5037 GB, free: 140 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2112/0.3921, allocations: 270.4 kB / 0.5039 GB, free: 46.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000432/0.3925, allocations: 19.94 kB / 0.5039 GB, free: 46.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.3937, allocations: 49.58 kB / 0.504 GB, free: 46.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003234/0.3941, allocations: 68.92 kB / 0.5041 GB, free: 46.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.3942, allocations: 25.77 kB / 0.5041 GB, free: 46.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003057/0.3973, allocations: 1.299 MB / 0.5053 GB, free: 46.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3973, allocations: 0 / 0.5053 GB, free: 46.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001294/0.3986, allocations: 249.6 kB / 0.5056 GB, free: 46.55 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.000992/0.3996, allocations: 294.1 kB / 0.5059 GB, free: 46.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006016/0.4057, allocations: 1.366 MB / 0.5072 GB, free: 46.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.4057, allocations: 1.219 kB / 0.5072 GB, free: 46.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004437/0.4101, allocations: 0.852 MB / 0.508 GB, free: 46.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/0.4116, allocations: 115.9 kB / 0.5081 GB, free: 46.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007326/0.4189, allocations: 2.644 MB / 0.5107 GB, free: 44.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001119/0.42, allocations: 1.176 MB / 0.5119 GB, free: 44.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004353/0.4205, allocations: 79.86 kB / 0.5119 GB, free: 44.12 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4205, allocations: 0 / 0.5119 GB, free: 44.12 MB / 382.1 MB Notification: Performance of Templates: time 0.03934/0.4599, allocations: 19.83 MB / 0.5313 GB, free: 32.56 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.makefile (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 & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.LoadRescuedByBattery.pipe 2>&1)