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: "" <> buildModelFMU(PowerSysPro.Components.myBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Components_myBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Components.myBattery,fileNamePrefix="PowerSysPro_PowerSysPro_Components_myBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 180.7 kB / 15.8 MB, free: 6.34 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.36/1.36, allocations: 223.2 MB / 239.7 MB, free: 76 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008804/0.0008802, allocations: 92.23 kB / 290.9 MB, free: 4.578 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04682/0.04682, allocations: 8.115 MB / 350.1 MB, free: 4.855 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000321/0.0003211, allocations: 8 kB / 413.2 MB, free: 5.715 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2128, allocations: 52.51 MB / 465.7 MB, free: 69.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08606/0.299, allocations: 81.89 MB / 0.5348 GB, free: 3.641 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/0.2992, allocations: 51.98 kB / 0.5348 GB, free: 3.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02445/0.3237, allocations: 10.68 MB / 0.5452 GB, free: 8.871 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.997e-06/0.3237, allocations: 4 kB / 0.5452 GB, free: 8.867 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.3237, allocations: 8 kB / 0.5452 GB, free: 8.859 MB / 378.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.001728/0.3254, allocations: 1.151 MB / 0.5464 GB, free: 7.656 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.3255, allocations: 8.031 kB / 0.5464 GB, free: 7.648 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.596e-05/0.3255, allocations: 54.55 kB / 0.5464 GB, free: 7.586 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.3257, allocations: 98.77 kB / 0.5465 GB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.3267, allocations: 0.7148 MB / 0.5472 GB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-05/0.3268, allocations: 71.78 kB / 0.5473 GB, free: 6.633 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.801e-05/0.3268, allocations: 27.86 kB / 0.5473 GB, free: 6.605 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005153/0.3274, allocations: 303.5 kB / 0.5476 GB, free: 6.281 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3274, allocations: 0 / 0.5476 GB, free: 6.281 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.691e-05/0.3274, allocations: 8 kB / 0.5476 GB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.3274, allocations: 4 kB / 0.5476 GB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004042/0.3278, allocations: 187.6 kB / 0.5478 GB, free: 6.086 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002024/0.3299, allocations: 1.337 MB / 0.5491 GB, free: 4.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006471/0.3305, allocations: 331.7 kB / 0.5494 GB, free: 4.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001034/0.3316, allocations: 0.6847 MB / 0.5501 GB, free: 3.598 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.3316, allocations: 42.56 kB / 0.5501 GB, free: 3.547 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.3316, allocations: 0 / 0.5501 GB, free: 3.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007758/0.3324, allocations: 344.6 kB / 0.5505 GB, free: 3.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.053e-05/0.3325, allocations: 235.3 kB / 0.5507 GB, free: 2.918 MB / 378.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.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.001724/0.3342, allocations: 1.429 MB / 0.5521 GB, free: 1.469 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.3343, allocations: 29.7 kB / 0.5521 GB, free: 1.434 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003155/0.3346, allocations: 411.1 kB / 0.5525 GB, free: 1.023 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.194e-05/0.3346, allocations: 59.28 kB / 0.5526 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.089e-05/0.3347, allocations: 4 kB / 0.5526 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.061e-05/0.3348, allocations: 310 kB / 0.5529 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.335, allocations: 71.95 kB / 0.5529 GB, free: 0.582 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.3352, allocations: 171 kB / 0.5531 GB, free: 384 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.3354, allocations: 79.97 kB / 0.5532 GB, free: 304 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3354, allocations: 7.875 kB / 0.5532 GB, free: 296 kB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.2511/0.5866, allocations: 305.3 kB / 0.5535 GB, free: 88.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.626e-05/0.5867, allocations: 5.594 kB / 0.5535 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.5867, allocations: 1.875 kB / 0.5535 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.863e-05/0.5867, allocations: 3.328 kB / 0.5535 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.5878, allocations: 121.7 kB / 0.5536 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.5878, allocations: 4.438 kB / 0.5536 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006651/0.5885, allocations: 41.03 kB / 0.5536 GB, free: 88.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.5886, allocations: 10.64 kB / 0.5536 GB, free: 88.76 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(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: 6 * 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 (20): * Single equations (assignments): 20 * 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.0009941/0.5896, allocations: 344.9 kB / 0.554 GB, free: 88.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.5898, allocations: 91.53 kB / 0.5541 GB, free: 88.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009678/0.5907, allocations: 306.9 kB / 0.5543 GB, free: 88.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.5908, allocations: 2.125 kB / 0.5544 GB, free: 88.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.5908, allocations: 0.6094 kB / 0.5544 GB, free: 88.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.5908, allocations: 1.797 kB / 0.5544 GB, free: 88.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.5919, allocations: 0.6154 MB / 0.555 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.5919, allocations: 2.266 kB / 0.555 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007739/0.5927, allocations: 109.2 kB / 0.5551 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.782e-06/0.5927, allocations: 4.875 kB / 0.5551 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.5928, allocations: 2.328 kB / 0.5551 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.5928, allocations: 1.344 kB / 0.5551 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.5928, allocations: 2.719 kB / 0.5551 GB, free: 88.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009579/0.5938, allocations: 470.1 kB / 0.5555 GB, free: 88.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004884/0.5943, allocations: 238.2 kB / 0.5557 GB, free: 88.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.987e-05/0.5943, allocations: 6.688 kB / 0.5558 GB, free: 88.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.5947, allocations: 37.92 kB / 0.5558 GB, free: 88.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.5948, allocations: 19.31 kB / 0.5558 GB, free: 88.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.5948, allocations: 4.75 kB / 0.5558 GB, free: 88.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00194/0.5967, allocations: 1.117 MB / 0.5569 GB, free: 87.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5968, allocations: 1.969 kB / 0.5569 GB, free: 87.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006582/0.5974, allocations: 122.3 kB / 0.557 GB, free: 87.99 MB / 378.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 (15): * Single equations (assignments): 15 * 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.001905/0.5993, allocations: 1.188 MB / 0.5582 GB, free: 87.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006108/0.6, allocations: 187.7 kB / 0.5584 GB, free: 87.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.6, allocations: 0 / 0.5584 GB, free: 87.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002561/0.6002, allocations: 96.31 kB / 0.5585 GB, free: 87.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004989/0.6007, allocations: 64.31 kB / 0.5585 GB, free: 87.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005158/0.6059, allocations: 3.42 MB / 0.5619 GB, free: 85.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005765/0.6065, allocations: 1.026 MB / 0.5629 GB, free: 84.62 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002965/0.6068, allocations: 134.9 kB / 0.563 GB, free: 84.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000398/0.6072, allocations: 297.2 kB / 0.5633 GB, free: 84.61 MB / 378.7 MB Notification: Performance of SimCode: time 5.982e-06/0.6072, allocations: 0 / 0.5633 GB, free: 84.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.6339, allocations: 14.89 MB / 0.5778 GB, free: 76.7 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001219/0.6341, allocations: 187 kB / 0.578 GB, free: 76.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.53/3.164, allocations: 4 kB / 0.578 GB, free: 76.46 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Components_myBattery_fmu --startTime=0 --stopTime=144000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Components_myBattery.fmu > PowerSysPro_PowerSysPro.Components.myBattery.pipe 2>&1)