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.0009246/0.0009247, allocations: 96.7 kB / 15.74 MB, free: 424 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.0009586/0.0009586, allocations: 174.7 kB / 16.62 MB, free: 6.43 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.576/1.576, allocations: 223.3 MB / 240.7 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1962/0.1962, allocations: 8.086 MB / 299.8 MB, free: 2.941 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003261/0.0003263, allocations: 8 kB / 362.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1234, allocations: 52.51 MB / 415.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.003517/0.1269, allocations: 2.073 MB / 417.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.1284, allocations: 0.8296 MB / 418.3 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.1285, allocations: 4 kB / 418.3 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006516/0.1292, allocations: 359.1 kB / 418.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003075/0.1295, allocations: 187.4 kB / 418.8 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000774/0.1303, allocations: 338.9 kB / 419.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004837/0.1307, allocations: 302.9 kB / 419.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.131, allocations: 81.67 kB / 419.5 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.1312, allocations: 147.5 kB / 419.7 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004139/0.1316, allocations: 239.3 kB / 419.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.787e-05/0.1316, allocations: 16 kB / 419.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003101/0.132, allocations: 135.9 kB / 420 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004315/0.1324, allocations: 307.2 kB / 420.3 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.1326, allocations: 137.3 kB / 420.5 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.1336, allocations: 0.7292 MB / 421.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.1336, allocations: 0 / 421.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.1336, allocations: 4 kB / 421.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.1337, allocations: 0 / 421.2 MB, free: 2.867 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.002305/0.136, allocations: 1.131 MB / 422.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.136, allocations: 8.031 kB / 422.3 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.1362, allocations: 98.73 kB / 422.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.1373, allocations: 0.6875 MB / 423.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-05/0.1374, allocations: 75.72 kB / 423.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.475e-05/0.1375, allocations: 20 kB / 423.2 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000603/0.1381, allocations: 311.4 kB / 423.5 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.1381, allocations: 0 / 423.5 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.1381, allocations: 11.94 kB / 423.5 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.1382, allocations: 4 kB / 423.5 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003751/0.1385, allocations: 183.6 kB / 423.7 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2733/0.4119, allocations: 1.296 MB / 425 MB, free: 40.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007129/0.4127, allocations: 341.3 kB / 425.4 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003332/0.413, allocations: 147.5 kB / 425.5 MB, free: 40.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008998/0.4139, allocations: 0.66 MB / 426.2 MB, free: 40.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.414, allocations: 38.59 kB / 426.2 MB, free: 40.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.825e-06/0.414, allocations: 0 / 426.2 MB, free: 40.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007059/0.4147, allocations: 313.6 kB / 426.5 MB, free: 40.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.689e-05/0.4148, allocations: 243.7 kB / 426.7 MB, free: 39.94 MB / 350.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.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.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.001782/0.4166, allocations: 1.58 MB / 428.3 MB, free: 39.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.4166, allocations: 29.2 kB / 428.3 MB, free: 39.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003982/0.417, allocations: 420 kB / 428.8 MB, free: 39.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.4171, allocations: 40.27 kB / 428.8 MB, free: 39.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.074e-05/0.4171, allocations: 1.375 kB / 428.8 MB, free: 39.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.863e-05/0.4172, allocations: 317.3 kB / 429.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.4174, allocations: 64.89 kB / 429.2 MB, free: 39.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002633/0.4176, allocations: 171.5 kB / 429.3 MB, free: 39.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.4179, allocations: 77.38 kB / 429.4 MB, free: 39.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.4179, allocations: 0 / 429.4 MB, free: 39.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005576/0.4184, allocations: 302 kB / 429.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.4185, allocations: 5.344 kB / 429.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.4185, allocations: 6.438 kB / 429.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.638e-05/0.4185, allocations: 3.344 kB / 429.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006794/0.4192, allocations: 120.3 kB / 429.8 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.4192, allocations: 11.05 kB / 429.9 MB, free: 39.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.4195, allocations: 45.22 kB / 429.9 MB, free: 39.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.4195, allocations: 3.156 kB / 429.9 MB, free: 39.09 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003754/0.4199, allocations: 344.3 kB / 430.2 MB, free: 38.97 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.725e-05/0.42, allocations: 89.33 kB / 430.3 MB, free: 38.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000538/0.4205, allocations: 292.5 kB / 430.6 MB, free: 38.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.4206, allocations: 3.031 kB / 430.6 MB, free: 38.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.4206, allocations: 0.625 kB / 430.6 MB, free: 38.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.4206, allocations: 3.953 kB / 430.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006548/0.4212, allocations: 0.574 MB / 431.2 MB, free: 38.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4212, allocations: 0 / 431.2 MB, free: 38.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005943/0.4218, allocations: 107.3 kB / 431.3 MB, free: 38.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4219, allocations: 3.094 kB / 431.3 MB, free: 38.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.4219, allocations: 3.312 kB / 431.3 MB, free: 38.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4219, allocations: 4 kB / 431.3 MB, free: 38.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.4219, allocations: 2.938 kB / 431.3 MB, free: 38.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000695/0.4226, allocations: 441.8 kB / 431.7 MB, free: 38.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.4228, allocations: 213 kB / 431.9 MB, free: 38.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.292e-05/0.4229, allocations: 6.375 kB / 432 MB, free: 38.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002446/0.4231, allocations: 41.5 kB / 432 MB, free: 38.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.341e-05/0.4232, allocations: 19.64 kB / 432 MB, free: 38.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.666e-05/0.4233, allocations: 6.531 kB / 432 MB, free: 38.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001339/0.4246, allocations: 1.132 MB / 433.2 MB, free: 38.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4246, allocations: 2.969 kB / 433.2 MB, free: 38.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004317/0.4251, allocations: 103.6 kB / 433.3 MB, free: 38.21 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006383/0.4257, allocations: 271.2 kB / 433.5 MB, free: 38.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004942/0.4262, allocations: 173.2 kB / 433.7 MB, free: 38.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.4262, allocations: 0.75 kB / 433.7 MB, free: 38.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002089/0.4264, allocations: 88.53 kB / 433.8 MB, free: 38.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005017/0.427, allocations: 73.22 kB / 433.9 MB, free: 38.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.4295, allocations: 1.751 MB / 435.6 MB, free: 37.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.43, allocations: 1.01 MB / 436.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002332/0.4303, allocations: 116.6 kB / 436.7 MB, free: 36.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.4304, allocations: 47.36 kB / 436.8 MB, free: 36.69 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4304, allocations: 3.938 kB / 436.8 MB, free: 36.69 MB / 350.1 MB Notification: Performance of Templates: time 0.01097/0.4414, allocations: 6.311 MB / 443.1 MB, free: 36.25 MB / 350.1 MB make -j1 -f PowerSysPro_PowerSysPro.Components.myBattery.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: