Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Components.myBattery.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.Components.myBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Components.myBattery") translateModel(PowerSysPro.Components.myBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Components.myBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004078/0.004078, allocations: 88.92 kB / 15.91 MB, free: 6.301 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.00109/0.00109, allocations: 199 kB / 16.83 MB, free: 6.234 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.219/1.219, allocations: 222.9 MB / 240.5 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1491/0.1491, allocations: 8.082 MB / 298.7 MB, free: 2.055 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 59.89 kB / 361 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08448/0.08552, allocations: 51.51 MB / 412.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.003177/0.08873, allocations: 2.519 MB / 415.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.08987, allocations: 0.8992 MB / 416 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.648e-05/0.08996, allocations: 4 kB / 416 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005742/0.09056, allocations: 375.1 kB / 416.3 MB, free: 6.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002637/0.09083, allocations: 187.4 kB / 416.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006807/0.09152, allocations: 401.4 kB / 416.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002776/0.09181, allocations: 342.9 kB / 417.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.09197, allocations: 95.88 kB / 417.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.0921, allocations: 159.5 kB / 417.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002858/0.09239, allocations: 275.2 kB / 417.8 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.173e-05/0.09244, allocations: 20 kB / 417.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002306/0.09268, allocations: 151.9 kB / 417.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000212/0.0929, allocations: 311.1 kB / 418.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002311/0.09314, allocations: 333.7 kB / 418.6 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006506/0.09379, allocations: 0.9033 MB / 419.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.09381, allocations: 0 / 419.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.09382, allocations: 4 kB / 419.5 MB, free: 3.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.09383, allocations: 3.938 kB / 419.5 MB, free: 3.207 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: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001803/0.09564, allocations: 1.246 MB / 420.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.09568, allocations: 8.031 kB / 420.7 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.0958, allocations: 91.81 kB / 420.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000753/0.09656, allocations: 0.7346 MB / 421.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.786e-05/0.09664, allocations: 72.22 kB / 421.6 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.09668, allocations: 20.38 kB / 421.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005029/0.09719, allocations: 300 kB / 421.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.09721, allocations: 3.938 kB / 421.9 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.53e-05/0.09724, allocations: 8 kB / 421.9 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.922e-06/0.09725, allocations: 4 kB / 421.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003598/0.09761, allocations: 175.6 kB / 422.1 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.0993, allocations: 1.294 MB / 423.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006/0.09992, allocations: 309.9 kB / 423.7 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003122/0.1002, allocations: 148.7 kB / 423.9 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008162/0.1011, allocations: 0.6573 MB / 424.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.368e-05/0.1011, allocations: 34.56 kB / 424.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.1011, allocations: 0 / 424.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006888/0.1018, allocations: 300.6 kB / 424.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.427e-05/0.1019, allocations: 239.3 kB / 425.1 MB, free: 13.23 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:54:7-55:59:writable] Warning: Parameter SOC_start has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:53:7-53:73:writable] Warning: Parameter Np has no value, and is fixed during initialization (fixed=true), using available start value (start=0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:52:7-52:71:writable] Warning: Parameter Ns has no value, and is fixed during initialization (fixed=true), using available start value (start=0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:425:9-425:73:writable] Warning: Parameter UNom has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001579/0.1035, allocations: 1.572 MB / 426.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.1035, allocations: 25.7 kB / 426.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002843/0.1038, allocations: 422.9 kB / 427.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.1038, allocations: 43.44 kB / 427.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.288e-05/0.1039, allocations: 41.7 kB / 427.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.55e-05/0.104, allocations: 314 kB / 427.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.1042, allocations: 63.95 kB / 427.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.1044, allocations: 156 kB / 427.7 MB, free: 10.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009345/0.1054, allocations: 309.6 kB / 428 MB, free: 10.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1054, allocations: 0 / 428 MB, free: 10.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005249/0.1059, allocations: 290.8 kB / 428.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.106, allocations: 11.98 kB / 428.3 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.106, allocations: 192 / 428.3 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.106, allocations: 8 kB / 428.3 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006768/0.1067, allocations: 99.84 kB / 428.4 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.1067, allocations: 0 / 428.4 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.1069, allocations: 39.81 kB / 428.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.1069, allocations: 8 kB / 428.4 MB, free: 9.754 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = 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: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003241/0.1073, allocations: 337.7 kB / 428.8 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.1074, allocations: 90.81 kB / 428.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005179/0.1079, allocations: 281.5 kB / 429.1 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1079, allocations: 7.984 kB / 429.1 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1079, allocations: 0 / 429.1 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1079, allocations: 3.938 kB / 429.1 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004987/0.1084, allocations: 0.5646 MB / 429.7 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1085, allocations: 7.938 kB / 429.7 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000668/0.1091, allocations: 91.91 kB / 429.8 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1091, allocations: 0 / 429.8 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.1092, allocations: 8 kB / 429.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1092, allocations: 0 / 429.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1092, allocations: 0 / 429.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006921/0.1099, allocations: 426.6 kB / 430.2 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.1101, allocations: 211.9 kB / 430.4 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.45e-05/0.1102, allocations: 11.94 kB / 430.4 MB, free: 7.641 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.1104, allocations: 32.12 kB / 430.5 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.911e-05/0.1105, allocations: 19.97 kB / 430.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.1105, allocations: 3.984 kB / 430.5 MB, free: 7.586 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001119/0.1117, allocations: 1.134 MB / 431.6 MB, free: 6.441 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1117, allocations: 0 / 431.6 MB, free: 6.441 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003626/0.112, allocations: 103.8 kB / 431.7 MB, free: 6.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005158/0.1126, allocations: 266.5 kB / 432 MB, free: 6.148 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004424/0.113, allocations: 159.8 kB / 432.2 MB, free: 5.992 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.113, allocations: 4 kB / 432.2 MB, free: 5.988 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.1132, allocations: 71.95 kB / 432.2 MB, free: 5.918 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004478/0.1137, allocations: 75.42 kB / 432.3 MB, free: 5.844 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.1162, allocations: 1.822 MB / 434.1 MB, free: 3.996 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004892/0.1167, allocations: 1.005 MB / 435.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002367/0.1169, allocations: 118.9 kB / 435.2 MB, free: 2.844 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001196/0.117, allocations: 47.42 kB / 435.3 MB, free: 2.797 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.117, allocations: 0 / 435.3 MB, free: 2.797 MB / 366.1 MB Notification: Performance of Templates: time 0.138/0.2551, allocations: 6.627 MB / 441.9 MB, free: 56.14 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Components.myBattery.makefile (rm -f PowerSysPro_PowerSysPro.Components.myBattery.pipe ; mkfifo PowerSysPro_PowerSysPro.Components.myBattery.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Components.myBattery.pipe >> ../files/PowerSysPro_PowerSysPro.Components.myBattery.sim & ./PowerSysPro_PowerSysPro.Components.myBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Components.myBattery.pipe 2>&1)