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-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.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.001493/0.001493, allocations: 113.6 kB / 17.09 MB, free: 6.004 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.001486/0.001486, allocations: 191.5 kB / 18.02 MB, free: 5.086 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.512/1.512, allocations: 222.9 MB / 241.7 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.04768/0.04768, allocations: 8.089 MB / 300 MB, free: 6.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 63.91 kB / 363.2 MB, free: 7.398 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2617, allocations: 51.52 MB / 414.7 MB, free: 25.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005747/0.2675, allocations: 4.788 MB / 419.5 MB, free: 20.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002453/0.27, allocations: 1.623 MB / 421.1 MB, free: 19.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002875/0.2703, allocations: 12 kB / 421.1 MB, free: 19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.2713, allocations: 0.7647 MB / 421.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007404/0.2721, allocations: 0.6498 MB / 422.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001628/0.2737, allocations: 1.156 MB / 423.7 MB, free: 16.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.2748, allocations: 1.257 MB / 424.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004357/0.2753, allocations: 406.2 kB / 425.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003725/0.2756, allocations: 0.5803 MB / 425.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006558/0.2763, allocations: 0.9115 MB / 426.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.2764, allocations: 128 kB / 427 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000478/0.2769, allocations: 359.8 kB / 427.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000414/0.2774, allocations: 0.9701 MB / 428.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006301/0.278, allocations: 1.204 MB / 429.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001926/0.2799, allocations: 3.337 MB / 432.8 MB, free: 7.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2799, allocations: 4 kB / 432.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.28, allocations: 0 / 432.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.005e-05/0.28, allocations: 0 / 432.8 MB, free: 7.25 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.005892/0.2859, allocations: 3.395 MB / 436.2 MB, free: 3.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.2859, allocations: 11.89 kB / 436.2 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.2862, allocations: 293.3 kB / 436.5 MB, free: 3.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.2887, allocations: 2.179 MB / 438.7 MB, free: 1.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001365/0.2889, allocations: 228.1 kB / 438.9 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.674e-05/0.2889, allocations: 68.31 kB / 439 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.2904, allocations: 1.006 MB / 440 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.2904, allocations: 0 / 440 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.486e-05/0.2905, allocations: 32 kB / 440 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.2905, allocations: 12 kB / 440 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.2919, allocations: 0.6884 MB / 440.7 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006994/0.2989, allocations: 4.823 MB / 445.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002247/0.3012, allocations: 1.373 MB / 446.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009843/0.3022, allocations: 0.5185 MB / 447.4 MB, free: 8.125 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001648/0.3023, allocations: 93.61 kB / 447.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.3024, allocations: 51.05 kB / 447.6 MB, free: 7.957 MB / 318.1 MB Notification: Performance of pre-optimization done (n=64): time 2.394e-06/0.3024, allocations: 0 / 447.6 MB, free: 7.957 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004331/0.3067, allocations: 1.653 MB / 449.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002805/0.307, allocations: 0.5935 MB / 449.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005931/0.313, allocations: 4.881 MB / 454.7 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.3131, allocations: 41.7 kB / 454.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009147/0.314, allocations: 1.135 MB / 455.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.3142, allocations: 216.8 kB / 456.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002124/0.3144, allocations: 126.2 kB / 456.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3145, allocations: 333.8 kB / 456.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006662/0.3152, allocations: 317.2 kB / 456.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008258/0.316, allocations: 0.5506 MB / 457.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005268/0.3213, allocations: 1.673 MB / 459.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3213, allocations: 0 / 459.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003279/0.3246, allocations: 1.248 MB / 460.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3247, allocations: 4 kB / 460.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.3247, allocations: 4 kB / 460.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/0.3258, allocations: 252.5 kB / 460.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006719/0.3264, allocations: 167.8 kB / 460.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003603/0.3301, allocations: 2.705 MB / 463.5 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.3313, allocations: 107.5 kB / 463.6 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.3314, allocations: 24 kB / 463.6 MB, free: 7.469 MB / 334.1 MB Warning: Assuming fixed start value for the following 3 variables: bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.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 bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.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 (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 {(6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.00151/0.3329, allocations: 0.9321 MB / 464.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004942/0.3334, allocations: 264.6 kB / 464.8 MB, free: 6.262 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002914/0.3363, allocations: 1.267 MB / 466 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3363, allocations: 4.109 kB / 466 MB, free: 4.977 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.3363, allocations: 3.938 kB / 466 MB, free: 4.973 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.3364, allocations: 3.984 kB / 466 MB, free: 4.969 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005986/0.3424, allocations: 3.373 MB / 469.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/0.3424, allocations: 4 kB / 469.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006406/0.343, allocations: 143.9 kB / 469.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.3441, allocations: 252.5 kB / 469.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.938e-05/0.3442, allocations: 15.98 kB / 469.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003586/0.3478, allocations: 2.662 MB / 472.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3478, allocations: 7.938 kB / 472.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003688/0.3515, allocations: 1.691 MB / 474.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.3527, allocations: 0.5288 MB / 474.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002306/0.353, allocations: 20 kB / 474.7 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007511/0.3537, allocations: 79.92 kB / 474.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.354, allocations: 76.45 kB / 474.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.581e-05/0.354, allocations: 23.94 kB / 474.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.005314/0.3593, allocations: 3.519 MB / 478.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3593, allocations: 4 kB / 478.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001064/0.3604, allocations: 347.5 kB / 478.8 MB, free: 7.961 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 (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 {(6,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007029/0.3611, allocations: 294.2 kB / 479.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002111/0.3633, allocations: 0.9791 MB / 480 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/0.3633, allocations: 8.297 kB / 480.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00123/0.3645, allocations: 0.6189 MB / 480.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.3656, allocations: 206.4 kB / 480.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008431/0.3741, allocations: 5.169 MB / 486 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001627/0.3757, allocations: 1.82 MB / 487.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008752/0.3766, allocations: 364.1 kB / 488.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003753/0.377, allocations: 119.4 kB / 488.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of SimCode: time 1.323e-06/0.377, allocations: 4 kB / 488.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of Templates: time 0.04104/0.4181, allocations: 23.7 MB / 0.5 GB, free: 6.715 MB / 382.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.makefile (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 -s cvode -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)