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.002256/0.002256, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.705/1.705, allocations: 221.4 MB / 235.1 MB, free: 14.38 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.001038/0.001038, allocations: 95.06 kB / 286.1 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.0779/0.0779, allocations: 8.101 MB / 345.1 MB, free: 1.91 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 4.209e-05/4.21e-05, allocations: 4 kB / 405.6 MB, free: 61.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1368, allocations: 52.51 MB / 458.1 MB, free: 9.363 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4936/0.6305, allocations: 82.08 MB / 0.5275 GB, free: 3.941 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.6308, allocations: 58.42 kB / 0.5275 GB, free: 3.914 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02669/0.6575, allocations: 10.67 MB / 0.538 GB, free: 10.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.6576, allocations: 0 / 0.538 GB, free: 10.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.696e-05/0.6576, allocations: 12.55 kB / 0.538 GB, free: 10.65 MB / 362.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.001437/0.6591, allocations: 0.9098 MB / 0.5389 GB, free: 9.742 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.6591, allocations: 16.02 kB / 0.5389 GB, free: 9.727 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.317e-05/0.6592, allocations: 49.67 kB / 0.5389 GB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.6593, allocations: 99.44 kB / 0.539 GB, free: 9.582 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.6604, allocations: 0.7164 MB / 0.5397 GB, free: 8.902 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.662e-05/0.6605, allocations: 77.45 kB / 0.5398 GB, free: 8.816 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/0.6606, allocations: 21.52 kB / 0.5398 GB, free: 8.801 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/0.661, allocations: 263.7 kB / 0.5401 GB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.6611, allocations: 0 / 0.5401 GB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.6611, allocations: 9.188 kB / 0.5401 GB, free: 8.578 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.6611, allocations: 12 kB / 0.5401 GB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002707/0.6614, allocations: 137.7 kB / 0.5402 GB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.6638, allocations: 1.332 MB / 0.5415 GB, free: 7.371 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/0.6643, allocations: 250.2 kB / 0.5418 GB, free: 7.156 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.6645, allocations: 111.1 kB / 0.5419 GB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001171/0.6657, allocations: 0.6894 MB / 0.5425 GB, free: 6.445 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.6658, allocations: 41.77 kB / 0.5426 GB, free: 6.398 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 2.004e-06/0.6658, allocations: 0 / 0.5426 GB, free: 6.398 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004103/0.6662, allocations: 193.7 kB / 0.5428 GB, free: 6.227 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001923/0.6664, allocations: 242.2 kB / 0.543 GB, free: 5.938 MB / 362.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.002111/0.6685, allocations: 1.411 MB / 0.5444 GB, free: 4.816 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.6686, allocations: 32.83 kB / 0.5444 GB, free: 4.781 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004123/0.669, allocations: 417.1 kB / 0.5448 GB, free: 4.562 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.6691, allocations: 42.67 kB / 0.5448 GB, free: 4.527 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.6691, allocations: 7.688 kB / 0.5448 GB, free: 4.523 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.6693, allocations: 310 kB / 0.5451 GB, free: 4.215 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.082e-05/0.6694, allocations: 41.62 kB / 0.5452 GB, free: 4.191 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.6695, allocations: 135.9 kB / 0.5453 GB, free: 4.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001023/0.6697, allocations: 53.69 kB / 0.5454 GB, free: 4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.6697, allocations: 0 / 0.5454 GB, free: 4 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003877/0.6701, allocations: 238.6 kB / 0.5456 GB, free: 3.793 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.6701, allocations: 15.92 kB / 0.5456 GB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.6701, allocations: 4 kB / 0.5456 GB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.853e-05/0.6701, allocations: 7.938 kB / 0.5456 GB, free: 3.766 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007952/0.6709, allocations: 112.1 kB / 0.5457 GB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.671, allocations: 4 kB / 0.5457 GB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.6712, allocations: 50.78 kB / 0.5458 GB, free: 3.605 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.6712, allocations: 11 kB / 0.5458 GB, free: 3.598 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(start = battery.SOC_start ) "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 () * 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.0001589/0.6714, allocations: 126 kB / 0.5459 GB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.6716, allocations: 86.92 kB / 0.546 GB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004358/0.672, allocations: 239.8 kB / 0.5462 GB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.672, allocations: 4 kB / 0.5462 GB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.672, allocations: 0 / 0.5462 GB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.672, allocations: 0 / 0.5462 GB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007322/0.6728, allocations: 0.599 MB / 0.5468 GB, free: 2.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.6728, allocations: 3.938 kB / 0.5468 GB, free: 2.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008628/0.6737, allocations: 111.8 kB / 0.5469 GB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.6737, allocations: 0 / 0.5469 GB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.931e-05/0.6737, allocations: 3.953 kB / 0.5469 GB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.6737, allocations: 0 / 0.5469 GB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.6737, allocations: 0 / 0.5469 GB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005289/0.6743, allocations: 355.9 kB / 0.5473 GB, free: 2.254 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004823/0.6748, allocations: 248.5 kB / 0.5475 GB, free: 2.016 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9e-05/0.6749, allocations: 7.438 kB / 0.5475 GB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003299/0.6752, allocations: 35.92 kB / 0.5475 GB, free: 1.977 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.01e-05/0.6753, allocations: 23.47 kB / 0.5476 GB, free: 1.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.6753, allocations: 0 / 0.5476 GB, free: 1.957 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001594/0.6769, allocations: 1.106 MB / 0.5486 GB, free: 1.113 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.6769, allocations: 0 / 0.5486 GB, free: 1.113 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005296/0.6775, allocations: 129.3 kB / 0.5488 GB, free: 0.9961 MB / 362.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 () * 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.001493/0.679, allocations: 1.053 MB / 0.5498 GB, free: 44 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003215/0.6793, allocations: 107.8 kB / 0.5499 GB, free: 15.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.6793, allocations: 0 / 0.5499 GB, free: 15.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.6794, allocations: 60.67 kB / 0.55 GB, free: 15.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004067/0.6798, allocations: 66.88 kB / 0.55 GB, free: 15.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.6827, allocations: 1.49 MB / 0.5515 GB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006372/0.6833, allocations: 1.025 MB / 0.5525 GB, free: 13.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000278/0.6836, allocations: 134.3 kB / 0.5526 GB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003659/0.684, allocations: 291.5 kB / 0.5529 GB, free: 13.31 MB / 378.7 MB Notification: Performance of SimCode: time 6.62e-07/0.684, allocations: 0 / 0.5529 GB, free: 13.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03296/0.717, allocations: 14.98 MB / 0.5675 GB, free: 14.39 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/0.7172, allocations: 169 kB / 0.5677 GB, free: 14.17 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.618/3.335, allocations: 0 / 0.5677 GB, free: 14.17 MB / 394.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)