Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 122.5 kB / 17.13 MB, free: 5.914 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.001466/0.001467, allocations: 192.2 kB / 18.06 MB, free: 5 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.386/1.386, allocations: 222.9 MB / 241.8 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04433/0.04433, allocations: 8.097 MB / 300 MB, free: 6.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 59.91 kB / 415.2 MB, free: 21.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07805/0.07926, allocations: 51.53 MB / 466.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.004199/0.08349, allocations: 3.131 MB / 469.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.08535, allocations: 1.175 MB / 471 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002365/0.08563, allocations: 4 kB / 471 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008218/0.08646, allocations: 446.4 kB / 471.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005189/0.087, allocations: 262.8 kB / 471.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001775/0.08878, allocations: 0.9997 MB / 472.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006675/0.08946, allocations: 0.5061 MB / 473.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002606/0.08973, allocations: 161.4 kB / 473.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002648/0.09001, allocations: 243.2 kB / 473.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004732/0.09049, allocations: 355 kB / 473.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.262e-05/0.09059, allocations: 48 kB / 474 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004978/0.0911, allocations: 279.8 kB / 474.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002686/0.09138, allocations: 351.1 kB / 474.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003872/0.09177, allocations: 457.3 kB / 475 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.09306, allocations: 1.32 MB / 476.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09308, allocations: 0 / 476.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09309, allocations: 0 / 476.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.128e-05/0.09312, allocations: 0 / 476.4 MB, free: 8.422 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003601/0.09673, allocations: 1.545 MB / 477.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.09678, allocations: 19.89 kB / 477.9 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.097, allocations: 111.5 kB / 478 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.09816, allocations: 0.8719 MB / 478.9 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.515e-05/0.09825, allocations: 80.52 kB / 479 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.483e-05/0.09832, allocations: 28.38 kB / 479 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008428/0.09917, allocations: 453 kB / 479.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.09919, allocations: 0 / 479.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.635e-05/0.09924, allocations: 12 kB / 479.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.09926, allocations: 8 kB / 479.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006369/0.0999, allocations: 326.1 kB / 479.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003089/0.103, allocations: 2.115 MB / 481.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.104, allocations: 480.3 kB / 482.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004385/0.1045, allocations: 213.2 kB / 482.6 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001272/0.1046, allocations: 97.2 kB / 482.7 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.1047, allocations: 38.8 kB / 482.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.713e-06/0.1047, allocations: 0 / 482.7 MB, free: 1.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002391/0.1071, allocations: 0.8246 MB / 483.5 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.742e-05/0.1072, allocations: 239.3 kB / 483.8 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0021/0.1093, allocations: 1.737 MB / 485.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.1094, allocations: 33.7 kB / 485.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003694/0.1097, allocations: 440.6 kB / 486 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.312e-05/0.1098, allocations: 94.56 kB / 486.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.11, allocations: 69.44 kB / 486.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.1101, allocations: 322 kB / 486.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003375/0.1104, allocations: 159.9 kB / 486.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003995/0.1108, allocations: 250 kB / 486.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003678/0.1145, allocations: 0.9423 MB / 487.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1145, allocations: 0 / 487.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001442/0.116, allocations: 0.61 MB / 488.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.116, allocations: 4 kB / 488.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.116, allocations: 0 / 488.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006681/0.1167, allocations: 152.6 kB / 488.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/0.117, allocations: 63.95 kB / 488.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/0.1196, allocations: 2.039 MB / 490.7 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004808/0.1201, allocations: 51.72 kB / 490.7 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.1202, allocations: 12 kB / 490.7 MB, free: 9.41 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: 4 * 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 (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005021/0.1207, allocations: 402.5 kB / 491.1 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.1209, allocations: 94.78 kB / 491.2 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.1223, allocations: 0.5896 MB / 491.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1223, allocations: 7.938 kB / 491.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.1223, allocations: 0 / 491.8 MB, free: 8.305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.1224, allocations: 4 kB / 491.8 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.1248, allocations: 1.467 MB / 493.3 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1248, allocations: 0 / 493.3 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.1251, allocations: 59.89 kB / 493.3 MB, free: 6.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006303/0.1257, allocations: 148.7 kB / 493.5 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.1257, allocations: 4 kB / 493.5 MB, free: 6.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002151/0.1279, allocations: 2.024 MB / 495.5 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1279, allocations: 7.875 kB / 495.5 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001718/0.1296, allocations: 0.8375 MB / 496.4 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003296/0.13, allocations: 235.8 kB / 496.6 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.1301, allocations: 4 kB / 496.6 MB, free: 3.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004131/0.1305, allocations: 39.89 kB / 496.6 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.371e-05/0.1306, allocations: 35.95 kB / 496.7 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.1307, allocations: 8 kB / 496.7 MB, free: 3.191 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001588/0.1323, allocations: 1.264 MB / 497.9 MB, free: 1.918 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1323, allocations: 0 / 497.9 MB, free: 1.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005784/0.1329, allocations: 147.8 kB / 498.1 MB, free: 1.773 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006402/0.1335, allocations: 286.9 kB / 498.4 MB, free: 1.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.1347, allocations: 0.514 MB / 498.9 MB, free: 1.039 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1347, allocations: 0 / 498.9 MB, free: 1.039 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006991/0.1354, allocations: 350.7 kB / 499.2 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006129/0.1361, allocations: 80.41 kB / 499.3 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003415/0.1395, allocations: 1.949 MB / 0.4895 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006543/0.1402, allocations: 1.076 MB / 0.4905 GB, free: 13.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.1404, allocations: 55.42 kB / 0.4906 GB, free: 13.46 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1404, allocations: 7.938 kB / 0.4906 GB, free: 13.45 MB / 382.1 MB Notification: Performance of Templates: time 0.1913/0.3317, allocations: 14.93 MB / 0.5052 GB, free: 45.91 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)