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/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.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.00125/0.00125, allocations: 103.1 kB / 16.02 MB, free: 6.305 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.001192/0.001192, allocations: 193.5 kB / 16.95 MB, free: 6.145 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.35/1.35, allocations: 222.9 MB / 240.6 MB, free: 13.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05969/0.05969, allocations: 8.098 MB / 298.9 MB, free: 6.66 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 59.91 kB / 361.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2663, allocations: 51.53 MB / 412.7 MB, free: 25.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003786/0.2701, allocations: 3.169 MB / 415.9 MB, free: 22.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.2715, allocations: 1.14 MB / 417.1 MB, free: 21.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001516/0.2717, allocations: 4 kB / 417.1 MB, free: 21.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006862/0.2724, allocations: 424.9 kB / 417.5 MB, free: 21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003628/0.2728, allocations: 247.1 kB / 417.7 MB, free: 20.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.2741, allocations: 0.9379 MB / 418.7 MB, free: 19.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004126/0.2745, allocations: 0.5061 MB / 419.2 MB, free: 19.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.2747, allocations: 157.4 kB / 419.3 MB, free: 19.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.2749, allocations: 243.2 kB / 419.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003112/0.2752, allocations: 375 kB / 419.9 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.282e-05/0.2752, allocations: 48 kB / 420 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003591/0.2756, allocations: 275.8 kB / 420.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001819/0.2758, allocations: 355 kB / 420.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002273/0.276, allocations: 457.3 kB / 421 MB, free: 17.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008129/0.2768, allocations: 1.309 MB / 422.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2769, allocations: 0 / 422.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2769, allocations: 3.938 kB / 422.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2769, allocations: 0 / 422.3 MB, free: 16.12 MB / 302.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.002628/0.2795, allocations: 1.552 MB / 423.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2796, allocations: 8.031 kB / 423.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.2797, allocations: 111.6 kB / 424 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008055/0.2805, allocations: 0.8719 MB / 424.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.94e-05/0.2806, allocations: 84.52 kB / 425 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.2806, allocations: 28.38 kB / 425 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000634/0.2813, allocations: 449 kB / 425.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.2813, allocations: 4 kB / 425.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.2813, allocations: 12 kB / 425.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.2814, allocations: 4 kB / 425.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004887/0.2819, allocations: 326 kB / 425.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002359/0.2842, allocations: 2.131 MB / 427.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008437/0.2851, allocations: 484.4 kB / 428.4 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003594/0.2855, allocations: 209.2 kB / 428.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.2856, allocations: 93.28 kB / 428.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.992e-05/0.2856, allocations: 38.8 kB / 428.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.353e-06/0.2856, allocations: 0 / 428.7 MB, free: 9.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002097/0.2877, allocations: 0.8246 MB / 429.5 MB, free: 8.574 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.403e-05/0.2878, allocations: 243.3 kB / 429.8 MB, free: 8.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/0.2897, allocations: 1.733 MB / 431.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.2897, allocations: 29.7 kB / 431.5 MB, free: 6.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003476/0.2901, allocations: 440.8 kB / 432 MB, free: 6.055 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.832e-05/0.2902, allocations: 94.64 kB / 432.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.2903, allocations: 69.59 kB / 432.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.2904, allocations: 318 kB / 432.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002855/0.2907, allocations: 159.9 kB / 432.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.2911, allocations: 246.3 kB / 432.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003245/0.2943, allocations: 0.9347 MB / 433.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.2943, allocations: 0 / 433.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00123/0.2956, allocations: 0.6098 MB / 434.4 MB, free: 3.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.2956, allocations: 12.09 kB / 434.4 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.2956, allocations: 0 / 434.4 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006132/0.2962, allocations: 148.7 kB / 434.5 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/0.2965, allocations: 71.89 kB / 434.6 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.2986, allocations: 2.037 MB / 436.6 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004918/0.2991, allocations: 47.73 kB / 436.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.2991, allocations: 15.98 kB / 436.7 MB, free: 1.109 MB / 302.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.0005393/0.2996, allocations: 401.6 kB / 437.1 MB, free: 0.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.2998, allocations: 94.78 kB / 437.2 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001178/0.301, allocations: 0.5978 MB / 437.8 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.301, allocations: 7.938 kB / 437.8 MB, free: 0 / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.301, allocations: 0 / 437.8 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.623e-05/0.301, allocations: 4.047 kB / 437.8 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.3034, allocations: 1.47 MB / 439.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3034, allocations: 0 / 439.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.3036, allocations: 63.98 kB / 439.3 MB, free: 14.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000613/0.3043, allocations: 148.6 kB / 439.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.3043, allocations: 8 kB / 439.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/0.3065, allocations: 2.009 MB / 441.5 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.3065, allocations: 7.938 kB / 441.5 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.3081, allocations: 0.8173 MB / 442.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003217/0.3085, allocations: 239.8 kB / 442.5 MB, free: 11 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.031e-05/0.3085, allocations: 11.94 kB / 442.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000361/0.3089, allocations: 35.91 kB / 442.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.309, allocations: 35.95 kB / 442.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.3091, allocations: 4 kB / 442.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00154/0.3106, allocations: 1.272 MB / 443.9 MB, free: 9.629 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3106, allocations: 0 / 443.9 MB, free: 9.629 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005781/0.3112, allocations: 151.8 kB / 444.1 MB, free: 9.48 MB / 318.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.0006513/0.3119, allocations: 279.8 kB / 444.3 MB, free: 9.277 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.3131, allocations: 0.5298 MB / 444.9 MB, free: 8.734 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3131, allocations: 0 / 444.9 MB, free: 8.734 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006344/0.3137, allocations: 354.6 kB / 445.2 MB, free: 8.375 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005791/0.3143, allocations: 76.41 kB / 445.3 MB, free: 8.297 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/0.3174, allocations: 2.155 MB / 447.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006257/0.3181, allocations: 1.068 MB / 448.5 MB, free: 5.012 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002971/0.3184, allocations: 137.1 kB / 448.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.3185, allocations: 55.42 kB / 448.7 MB, free: 4.824 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3185, allocations: 0 / 448.7 MB, free: 4.824 MB / 318.1 MB Notification: Performance of Templates: time 0.0194/0.338, allocations: 10.91 MB / 459.6 MB, free: 9.938 MB / 334.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)