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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001287, allocations: 96.67 kB / 15.73 MB, free: 440 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.001045/0.001045, allocations: 179 kB / 16.61 MB, free: 6.891 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.268/1.268, allocations: 223.2 MB / 240.5 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1558/0.1558, allocations: 8.083 MB / 299.7 MB, free: 2.965 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002893/0.0002893, allocations: 8 kB / 362.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08752/0.08783, allocations: 52.51 MB / 415.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.002396/0.09026, allocations: 2.012 MB / 417.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.09138, allocations: 0.818 MB / 418.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.022e-05/0.09148, allocations: 4 kB / 418.2 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000559/0.09205, allocations: 355 kB / 418.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002506/0.09231, allocations: 195.5 kB / 418.7 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006188/0.09294, allocations: 330.9 kB / 419.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002489/0.0932, allocations: 219.5 kB / 419.3 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.09336, allocations: 89.66 kB / 419.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.09351, allocations: 139.6 kB / 419.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002778/0.0938, allocations: 223.3 kB / 419.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.017e-05/0.09384, allocations: 12 kB / 419.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002101/0.09407, allocations: 127.8 kB / 419.8 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002331/0.09431, allocations: 303.2 kB / 420.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.09443, allocations: 141.3 kB / 420.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006242/0.09506, allocations: 0.7136 MB / 421 MB, free: 2.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.003e-06/0.09507, allocations: 0 / 421 MB, free: 2.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09508, allocations: 3.938 kB / 421 MB, free: 2.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.09509, allocations: 0 / 421 MB, free: 2.977 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.001884/0.09698, allocations: 1.131 MB / 422.1 MB, free: 1.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.09703, allocations: 12.03 kB / 422.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.542e-05/0.0971, allocations: 54.55 kB / 422.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.09722, allocations: 98.73 kB / 422.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000947/0.09818, allocations: 0.6952 MB / 423 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.259e-05/0.09827, allocations: 71.78 kB / 423.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.177e-05/0.09831, allocations: 12 kB / 423.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005231/0.09884, allocations: 303.5 kB / 423.4 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.09886, allocations: 0 / 423.4 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.09889, allocations: 12 kB / 423.4 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.09891, allocations: 11.89 kB / 423.4 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003965/0.09931, allocations: 183.7 kB / 423.6 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1535/0.2528, allocations: 1.297 MB / 424.9 MB, free: 41.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007118/0.2536, allocations: 337.9 kB / 425.2 MB, free: 40.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000949/0.2546, allocations: 0.6695 MB / 425.9 MB, free: 40.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.2546, allocations: 34.19 kB / 425.9 MB, free: 40.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.933e-06/0.2546, allocations: 3.125 kB / 425.9 MB, free: 40.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0007105/0.2553, allocations: 336.2 kB / 426.2 MB, free: 40.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.2554, allocations: 237 kB / 426.5 MB, free: 40.15 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.001455/0.2569, allocations: 1.569 MB / 428 MB, free: 40 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.2569, allocations: 28.92 kB / 428.1 MB, free: 39.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000228/0.2571, allocations: 415.3 kB / 428.5 MB, free: 39.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.2572, allocations: 51.41 kB / 428.5 MB, free: 39.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.358e-06/0.2572, allocations: 6.219 kB / 428.5 MB, free: 39.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.361e-05/0.2572, allocations: 317.1 kB / 428.8 MB, free: 39.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.2574, allocations: 71.5 kB / 428.9 MB, free: 39.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.2576, allocations: 167.9 kB / 429.1 MB, free: 39.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.2579, allocations: 84.22 kB / 429.1 MB, free: 39.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2579, allocations: 0 / 429.1 MB, free: 39.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005117/0.2584, allocations: 305.7 kB / 429.4 MB, free: 39.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2584, allocations: 8.594 kB / 429.4 MB, free: 39.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.2584, allocations: 0.5 kB / 429.4 MB, free: 39.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2584, allocations: 4.016 kB / 429.5 MB, free: 39.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007169/0.2592, allocations: 130.2 kB / 429.6 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.2592, allocations: 0.5625 kB / 429.6 MB, free: 39.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.2594, allocations: 48.23 kB / 429.6 MB, free: 39.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.2595, allocations: 6.969 kB / 429.6 MB, free: 39.33 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: 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.0003222/0.2598, allocations: 342.8 kB / 430 MB, free: 39.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.996e-05/0.2599, allocations: 90.61 kB / 430.1 MB, free: 39.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005525/0.2604, allocations: 306.1 kB / 430.4 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2605, allocations: 0.7031 kB / 430.4 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2605, allocations: 0 / 430.4 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.2605, allocations: 6.188 kB / 430.4 MB, free: 39.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.261, allocations: 0.5862 MB / 430.9 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.261, allocations: 0 / 430.9 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006656/0.2616, allocations: 114.8 kB / 431.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.2617, allocations: 3.375 kB / 431.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.2617, allocations: 3.25 kB / 431.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.2617, allocations: 3.125 kB / 431.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.2617, allocations: 4.875 kB / 431.1 MB, free: 38.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006679/0.2624, allocations: 459.2 kB / 431.5 MB, free: 38.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002681/0.2626, allocations: 214.3 kB / 431.7 MB, free: 38.58 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/0.2627, allocations: 9.703 kB / 431.7 MB, free: 38.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002574/0.263, allocations: 36.52 kB / 431.8 MB, free: 38.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.765e-05/0.2631, allocations: 20.31 kB / 431.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.2631, allocations: 8.062 kB / 431.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001085/0.2642, allocations: 1.132 MB / 432.9 MB, free: 38.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2642, allocations: 0 / 432.9 MB, free: 38.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003848/0.2646, allocations: 102.2 kB / 433 MB, free: 38.46 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 (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.00136/0.2659, allocations: 1.18 MB / 434.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000427/0.2664, allocations: 184.9 kB / 434.4 MB, free: 37.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.2664, allocations: 3.562 kB / 434.4 MB, free: 37.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.2666, allocations: 98.33 kB / 434.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.2669, allocations: 62.33 kB / 434.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.2698, allocations: 3.371 MB / 437.9 MB, free: 35.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.2703, allocations: 1.024 MB / 439 MB, free: 34.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002054/0.2705, allocations: 118.9 kB / 439.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003496/0.2708, allocations: 287.7 kB / 439.4 MB, free: 34.97 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2708, allocations: 0 / 439.4 MB, free: 34.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.2938, allocations: 13.91 MB / 453.3 MB, free: 34.05 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001285/0.2939, allocations: 203 kB / 453.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.885/2.179, allocations: 0 / 453.5 MB, free: 33.82 MB / 350.1 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) Environment - environmentSimulation: