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.0009366/0.0009364, allocations: 176.6 kB / 8.047 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 221.5 MB / 230 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009145/0.0009146, allocations: 99.05 kB / 280.9 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05581/0.05581, allocations: 8.111 MB / 339.8 MB, free: 6.988 MB / 234.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.25e-05/1.251e-05, allocations: 1.375 kB / 398.6 MB, free: 49.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09441/0.09443, allocations: 52.52 MB / 451.1 MB, free: 5.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1087/0.2032, allocations: 81.15 MB / 0.5198 GB, free: 4.023 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.2035, allocations: 63.97 kB / 0.5198 GB, free: 3.961 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3066/0.5101, allocations: 10.49 MB / 0.5301 GB, free: 79.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5101, allocations: 0 / 0.5301 GB, free: 79.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.913e-05/0.5102, allocations: 12.09 kB / 0.5301 GB, free: 79.55 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.001355/0.5115, allocations: 0.9268 MB / 0.531 GB, free: 78.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.5116, allocations: 12.95 kB / 0.531 GB, free: 78.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.5117, allocations: 92.06 kB / 0.5311 GB, free: 78.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009485/0.5127, allocations: 0.717 MB / 0.5318 GB, free: 78.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.833e-05/0.5128, allocations: 62.19 kB / 0.5318 GB, free: 78.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.5128, allocations: 10.22 kB / 0.5318 GB, free: 78.5 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002647/0.5131, allocations: 122.5 kB / 0.532 GB, free: 78.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003452/0.5134, allocations: 247.5 kB / 0.5322 GB, free: 78.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.5135, allocations: 0 / 0.5322 GB, free: 78.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/0.5135, allocations: 1.594 kB / 0.5322 GB, free: 78.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.5135, allocations: 3.688 kB / 0.5322 GB, free: 78.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.5155, allocations: 1.394 MB / 0.5336 GB, free: 77.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002805/0.5158, allocations: 232.2 kB / 0.5338 GB, free: 77.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.516, allocations: 105.6 kB / 0.5339 GB, free: 77.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.516, allocations: 2.984 kB / 0.5339 GB, free: 77.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.516, allocations: 32.69 kB / 0.5339 GB, free: 77.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.784e-06/0.516, allocations: 5.078 kB / 0.5339 GB, free: 77.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003738/0.5164, allocations: 198 kB / 0.5341 GB, free: 77.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.5165, allocations: 236 kB / 0.5343 GB, free: 77.41 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.002049/0.5185, allocations: 1.372 MB / 0.5357 GB, free: 77.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.5186, allocations: 33.39 kB / 0.5357 GB, free: 77.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003142/0.5189, allocations: 409.4 kB / 0.5361 GB, free: 77.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.029e-05/0.5189, allocations: 51.98 kB / 0.5362 GB, free: 77.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.879e-06/0.519, allocations: 0 / 0.5362 GB, free: 77.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.289e-05/0.519, allocations: 318 kB / 0.5365 GB, free: 76.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.374e-05/0.5191, allocations: 37.41 kB / 0.5365 GB, free: 76.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.5192, allocations: 142.3 kB / 0.5366 GB, free: 76.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/0.5193, allocations: 53.53 kB / 0.5367 GB, free: 76.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5193, allocations: 0 / 0.5367 GB, free: 76.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003086/0.5196, allocations: 234.4 kB / 0.5369 GB, free: 76.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.5196, allocations: 6.625 kB / 0.5369 GB, free: 76.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.842e-06/0.5197, allocations: 3.469 kB / 0.5369 GB, free: 76.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.5197, allocations: 7.156 kB / 0.5369 GB, free: 76.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007463/0.5204, allocations: 118.1 kB / 0.537 GB, free: 76.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.5204, allocations: 7.188 kB / 0.537 GB, free: 76.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.5207, allocations: 42.36 kB / 0.5371 GB, free: 76.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.5207, allocations: 9.75 kB / 0.5371 GB, free: 76.52 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 (21): * Single equations (assignments): 21 * 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.0001041/0.5208, allocations: 107.7 kB / 0.5372 GB, free: 76.42 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002952/0.5211, allocations: 211.8 kB / 0.5374 GB, free: 76.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.5213, allocations: 89.22 kB / 0.5375 GB, free: 76.28 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003344/0.5216, allocations: 240.2 kB / 0.5377 GB, free: 76.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.5216, allocations: 0 / 0.5377 GB, free: 76.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.5216, allocations: 3.375 kB / 0.5377 GB, free: 76.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.5216, allocations: 0 / 0.5377 GB, free: 76.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.5229, allocations: 0.9402 MB / 0.5386 GB, free: 75.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.523, allocations: 4.062 kB / 0.5386 GB, free: 75.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000693/0.5237, allocations: 120.9 kB / 0.5387 GB, free: 75.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.5237, allocations: 3.469 kB / 0.5388 GB, free: 75.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.5237, allocations: 5.031 kB / 0.5388 GB, free: 75.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.5237, allocations: 0 / 0.5388 GB, free: 75.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.5237, allocations: 3.5 kB / 0.5388 GB, free: 75.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004551/0.5242, allocations: 379.1 kB / 0.5391 GB, free: 75.71 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002745/0.5245, allocations: 251.5 kB / 0.5394 GB, free: 75.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.784e-05/0.5246, allocations: 0 / 0.5394 GB, free: 75.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002717/0.5248, allocations: 29.83 kB / 0.5394 GB, free: 75.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-05/0.5249, allocations: 21.39 kB / 0.5394 GB, free: 75.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.5249, allocations: 9.516 kB / 0.5394 GB, free: 75.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001051/0.526, allocations: 1.056 MB / 0.5405 GB, free: 75.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.526, allocations: 3.938 kB / 0.5405 GB, free: 75.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004646/0.5265, allocations: 119.2 kB / 0.5406 GB, free: 75.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (16): * Single equations (assignments): 16 * 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.001133/0.5276, allocations: 1.119 MB / 0.5417 GB, free: 74.53 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002236/0.5279, allocations: 120 kB / 0.5418 GB, free: 74.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5279, allocations: 0 / 0.5418 GB, free: 74.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.561e-05/0.528, allocations: 60.8 kB / 0.5418 GB, free: 74.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.5284, allocations: 67.08 kB / 0.5419 GB, free: 74.38 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.5308, allocations: 1.493 MB / 0.5434 GB, free: 72.88 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.5312, allocations: 1.024 MB / 0.5444 GB, free: 71.83 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002402/0.5314, allocations: 135 kB / 0.5445 GB, free: 71.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003063/0.5317, allocations: 303.3 kB / 0.5448 GB, free: 71.4 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5318, allocations: 3.938 kB / 0.5448 GB, free: 71.39 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/0.5623, allocations: 13.21 MB / 0.5577 GB, free: 58.18 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001239/0.5625, allocations: 138.1 kB / 0.5578 GB, free: 58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.442/3.005, allocations: 0 / 0.5578 GB, free: 58 MB / 362.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)