Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.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/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") translateModel(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009743/0.0009743, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 176 kB / 16.63 MB, free: 6.887 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.553/1.553, allocations: 223.3 MB / 240.7 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.2201/0.2201, allocations: 8.091 MB / 299.9 MB, free: 2.879 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003445, allocations: 8 kB / 362.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.135, allocations: 52.52 MB / 415.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.006152/0.1413, allocations: 4.119 MB / 419.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003627/0.1449, allocations: 1.488 MB / 421 MB, free: 3.066 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009325/0.1459, allocations: 12 kB / 421 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.1475, allocations: 0.6973 MB / 421.7 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001469/0.149, allocations: 0.5917 MB / 422.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.1514, allocations: 0.8762 MB / 423.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2752/0.4266, allocations: 1.089 MB / 424.3 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007783/0.4274, allocations: 303.5 kB / 424.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008929/0.4283, allocations: 481.7 kB / 425 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009937/0.4293, allocations: 0.7594 MB / 425.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001175/0.4295, allocations: 57.88 kB / 425.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007856/0.4303, allocations: 272 kB / 426.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006985/0.431, allocations: 0.915 MB / 427 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003846/0.4314, allocations: 451.7 kB / 427.5 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002123/0.4335, allocations: 2.651 MB / 430.1 MB, free: 35.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.4335, allocations: 4.219 kB / 430.1 MB, free: 35.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4336, allocations: 3.094 kB / 430.1 MB, free: 35.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.683e-05/0.4336, allocations: 0 / 430.1 MB, free: 35.27 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.006329/0.4399, allocations: 2.993 MB / 433.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.44, allocations: 11.88 kB / 433.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006047/0.4406, allocations: 290.8 kB / 433.4 MB, free: 33.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003247/0.4439, allocations: 2.046 MB / 435.5 MB, free: 33.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.4441, allocations: 227.2 kB / 435.7 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.4442, allocations: 67.34 kB / 435.7 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.4459, allocations: 1.019 MB / 436.8 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.446, allocations: 0 / 436.8 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.588e-05/0.4461, allocations: 30 kB / 436.8 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.4461, allocations: 24.72 kB / 436.8 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.4474, allocations: 0.7122 MB / 437.5 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007982/0.4554, allocations: 4.901 MB / 442.4 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.4576, allocations: 1.425 MB / 443.9 MB, free: 31.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.4588, allocations: 0.5446 MB / 444.4 MB, free: 31.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002172/0.459, allocations: 100.8 kB / 444.5 MB, free: 31.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.032e-05/0.4591, allocations: 42.53 kB / 444.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 4.128e-06/0.4591, allocations: 3 kB / 444.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.005726/0.4648, allocations: 1.711 MB / 446.3 MB, free: 30.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000318/0.4652, allocations: 0.5912 MB / 446.8 MB, free: 29.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01288/0.4781, allocations: 4.892 MB / 451.7 MB, free: 28.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003175/0.4784, allocations: 36.64 kB / 451.8 MB, free: 28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001536/0.48, allocations: 1.132 MB / 452.9 MB, free: 27.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004232/0.4804, allocations: 216.2 kB / 453.1 MB, free: 26.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.4806, allocations: 15.5 kB / 453.1 MB, free: 26.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.4807, allocations: 336.7 kB / 453.5 MB, free: 26.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000885/0.4816, allocations: 336.9 kB / 453.8 MB, free: 26.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.4827, allocations: 0.5657 MB / 454.4 MB, free: 26.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008641/0.4836, allocations: 384.7 kB / 454.7 MB, free: 26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.4836, allocations: 0 / 454.7 MB, free: 26 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003811/0.4874, allocations: 1.276 MB / 456 MB, free: 25.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.498e-05/0.4875, allocations: 5.875 kB / 456 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.4875, allocations: 0 / 456 MB, free: 25.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.4886, allocations: 261.2 kB / 456.3 MB, free: 25.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000664/0.4893, allocations: 181.7 kB / 456.4 MB, free: 25.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003029/0.4923, allocations: 2.476 MB / 458.9 MB, free: 23.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/0.4941, allocations: 126.4 kB / 459 MB, free: 23.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.455e-05/0.4942, allocations: 30.42 kB / 459.1 MB, free: 23.46 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(flow=false start = bat2.battery.SOC_start fixed = true ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.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: 8 * 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 (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 6} Notification: Performance of prepare postOptimizeDAE: time 0.002132/0.4963, allocations: 0.9496 MB / 460 MB, free: 23.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/0.4974, allocations: 264.8 kB / 460.3 MB, free: 22.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003715/0.5011, allocations: 1.3 MB / 461.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.5012, allocations: 10.55 kB / 461.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.5012, allocations: 0 / 461.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.5012, allocations: 4.516 kB / 461.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008062/0.5093, allocations: 3.422 MB / 465 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.5093, allocations: 1.031 kB / 465 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006713/0.51, allocations: 163.2 kB / 465.2 MB, free: 20.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.511, allocations: 258.5 kB / 465.4 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.038e-05/0.5111, allocations: 11.62 kB / 465.4 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00294/0.514, allocations: 2.445 MB / 467.9 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.514, allocations: 1.375 kB / 467.9 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004692/0.5187, allocations: 1.743 MB / 469.6 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/0.5206, allocations: 0.5253 MB / 470.2 MB, free: 17.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009495/0.5215, allocations: 26.88 kB / 470.2 MB, free: 17.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00149/0.523, allocations: 111.4 kB / 470.3 MB, free: 17.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/0.5234, allocations: 77.28 kB / 470.4 MB, free: 17.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.4e-05/0.5235, allocations: 19.84 kB / 470.4 MB, free: 17.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.009709/0.5332, allocations: 3.521 MB / 473.9 MB, free: 16.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5332, allocations: 0 / 473.9 MB, free: 16.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003423/0.5367, allocations: 354.3 kB / 474.3 MB, free: 16.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.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 (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001303/0.538, allocations: 293.7 kB / 474.5 MB, free: 16.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003683/0.5417, allocations: 1.013 MB / 475.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/0.5418, allocations: 2.766 kB / 475.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.5434, allocations: 0.6359 MB / 476.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005344/0.5488, allocations: 206.2 kB / 476.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01407/0.5629, allocations: 5.606 MB / 482 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002159/0.5651, allocations: 1.82 MB / 483.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001375/0.5665, allocations: 362.4 kB / 484.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003631/0.5669, allocations: 125 kB / 484.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of SimCode: time 1.001e-06/0.5669, allocations: 4 kB / 484.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Templates: time 0.04004/0.6069, allocations: 23.53 MB / 0.4959 GB, free: 5.715 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.makefile Environment - environmentSimulation: (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1) Environment - environmentSimulation: