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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 186.9 kB / 16.68 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 240.3 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009667/0.0009665, allocations: 103.4 kB / 290.6 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05438/0.05438, allocations: 8.091 MB / 348.8 MB, free: 0.6914 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001008, allocations: 51.27 kB / 411.1 MB, free: 57.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08563/0.08665, allocations: 51.53 MB / 462.6 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.003508/0.09022, allocations: 2.516 MB / 465.1 MB, free: 3.527 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001332/0.09158, allocations: 0.8992 MB / 466 MB, free: 2.625 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.0918, allocations: 4 kB / 466 MB, free: 2.621 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006897/0.0925, allocations: 375 kB / 466.4 MB, free: 2.254 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.09284, allocations: 191.4 kB / 466.6 MB, free: 2.066 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007699/0.09362, allocations: 394.5 kB / 467 MB, free: 1.684 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003505/0.09398, allocations: 350.8 kB / 467.3 MB, free: 1.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.09415, allocations: 95.88 kB / 467.4 MB, free: 1.242 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.09435, allocations: 155.5 kB / 467.6 MB, free: 1.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000322/0.09467, allocations: 295.1 kB / 467.8 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.141e-05/0.09474, allocations: 20 kB / 467.9 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002757/0.09502, allocations: 143.9 kB / 468 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.0952, allocations: 307.1 kB / 468.3 MB, free: 348 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002011/0.09541, allocations: 333.6 kB / 468.6 MB, free: 12 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008985/0.09631, allocations: 0.9111 MB / 469.5 MB, free: 15.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.09633, allocations: 0 / 469.5 MB, free: 15.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.09634, allocations: 0 / 469.5 MB, free: 15.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.641e-05/0.09637, allocations: 0 / 469.5 MB, free: 15.1 MB / 314.7 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.002545/0.09892, allocations: 1.236 MB / 470.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.09897, allocations: 12.03 kB / 470.8 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.09914, allocations: 95.72 kB / 470.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009858/0.1001, allocations: 0.7346 MB / 471.6 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.144e-05/0.1002, allocations: 68.34 kB / 471.7 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.837e-05/0.1003, allocations: 28.3 kB / 471.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005114/0.1008, allocations: 292 kB / 472 MB, free: 12.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.537e-06/0.1008, allocations: 3.938 kB / 472 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.1008, allocations: 11.98 kB / 472 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1009, allocations: 4 kB / 472 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003848/0.1012, allocations: 179.5 kB / 472.2 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.1033, allocations: 1.286 MB / 473.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006533/0.104, allocations: 311.7 kB / 473.8 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003459/0.1043, allocations: 137.1 kB / 473.9 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000989/0.1053, allocations: 0.6608 MB / 474.6 MB, free: 9.766 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.1054, allocations: 42.56 kB / 474.6 MB, free: 9.715 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 1.532e-06/0.1054, allocations: 0 / 474.6 MB, free: 9.715 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007431/0.1061, allocations: 292.5 kB / 474.9 MB, free: 9.422 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.1062, allocations: 239.3 kB / 475.1 MB, free: 9.133 MB / 314.7 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.001869/0.1081, allocations: 1.573 MB / 476.7 MB, free: 7.539 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.1082, allocations: 29.7 kB / 476.7 MB, free: 7.504 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003089/0.1085, allocations: 419 kB / 477.1 MB, free: 7.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.346e-05/0.1085, allocations: 43.44 kB / 477.2 MB, free: 7.047 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.129e-05/0.1086, allocations: 41.61 kB / 477.2 MB, free: 7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.554e-05/0.1087, allocations: 310 kB / 477.5 MB, free: 6.691 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.1089, allocations: 71.89 kB / 477.6 MB, free: 6.621 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000255/0.1092, allocations: 171 kB / 477.8 MB, free: 6.414 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.1102, allocations: 318.1 kB / 478.1 MB, free: 6.082 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1102, allocations: 0 / 478.1 MB, free: 6.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006018/0.1108, allocations: 280.4 kB / 478.4 MB, free: 5.801 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.1109, allocations: 4 kB / 478.4 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1109, allocations: 0 / 478.4 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1109, allocations: 4 kB / 478.4 MB, free: 5.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007078/0.1116, allocations: 108 kB / 478.5 MB, free: 5.688 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1116, allocations: 7.984 kB / 478.5 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002556/0.1119, allocations: 31.73 kB / 478.5 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.1119, allocations: 12 kB / 478.5 MB, free: 5.637 MB / 314.7 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.0003712/0.1123, allocations: 350.3 kB / 478.9 MB, free: 5.285 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.1124, allocations: 82.91 kB / 478.9 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000551/0.113, allocations: 280.5 kB / 479.2 MB, free: 4.922 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.113, allocations: 4 kB / 479.2 MB, free: 4.918 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.113, allocations: 4 kB / 479.2 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.113, allocations: 0 / 479.2 MB, free: 4.914 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005594/0.1136, allocations: 0.5685 MB / 479.8 MB, free: 4.297 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.1136, allocations: 3.938 kB / 479.8 MB, free: 4.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006736/0.1143, allocations: 95.78 kB / 479.9 MB, free: 4.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.1143, allocations: 0 / 479.9 MB, free: 4.199 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.1143, allocations: 11.98 kB / 479.9 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.1143, allocations: 0 / 479.9 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1143, allocations: 0 / 479.9 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003613/0.1179, allocations: 2.484 MB / 482.4 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003175/0.1183, allocations: 212 kB / 482.6 MB, free: 1.332 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.723e-05/0.1183, allocations: 7.984 kB / 482.6 MB, free: 1.324 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002944/0.1186, allocations: 19.98 kB / 482.6 MB, free: 1.305 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.351e-05/0.1187, allocations: 23.91 kB / 482.6 MB, free: 1.281 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.1187, allocations: 12.08 kB / 482.7 MB, free: 1.27 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001319/0.1201, allocations: 1.134 MB / 483.8 MB, free: 128 kB / 314.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1201, allocations: 0 / 483.8 MB, free: 128 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.1673/0.2874, allocations: 147.9 kB / 483.9 MB, free: 28.45 MB / 314.7 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.0006407/0.288, allocations: 259.4 kB / 484.2 MB, free: 28.35 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005879/0.2886, allocations: 164.5 kB / 484.3 MB, free: 28.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.2887, allocations: 0.9688 kB / 484.3 MB, free: 28.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002238/0.2889, allocations: 82.75 kB / 484.4 MB, free: 28.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006291/0.2895, allocations: 64.55 kB / 484.5 MB, free: 28.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.2928, allocations: 1.971 MB / 486.5 MB, free: 27.49 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005618/0.2934, allocations: 1.01 MB / 487.5 MB, free: 26.75 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002974/0.2937, allocations: 126.7 kB / 487.6 MB, free: 26.74 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.2939, allocations: 48.64 kB / 487.6 MB, free: 26.73 MB / 314.7 MB Notification: Performance of SimCode: time 8.81e-07/0.2939, allocations: 0 / 487.6 MB, free: 26.73 MB / 314.7 MB Notification: Performance of Templates: time 0.01264/0.3065, allocations: 6.87 MB / 494.5 MB, free: 25.67 MB / 314.7 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)