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-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001633/0.001633, allocations: 98.81 kB / 16.31 MB, free: 5.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 190.5 kB / 17.24 MB, free: 5.539 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.469/1.469, allocations: 222.9 MB / 240.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0535/0.0535, allocations: 8.098 MB / 299.2 MB, free: 6.707 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 60.09 kB / 361.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2511, allocations: 51.52 MB / 413.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.003539/0.2547, allocations: 2.471 MB / 415.8 MB, free: 23.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.2559, allocations: 0.8912 MB / 416.7 MB, free: 22.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.256, allocations: 7.938 kB / 416.7 MB, free: 22.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006038/0.2566, allocations: 397.1 kB / 417.1 MB, free: 21.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002709/0.2569, allocations: 195.2 kB / 417.3 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006428/0.2576, allocations: 429.8 kB / 417.7 MB, free: 21.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002322/0.2578, allocations: 346.9 kB / 418.1 MB, free: 20.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.258, allocations: 103.8 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.2581, allocations: 171.5 kB / 418.3 MB, free: 20.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.2584, allocations: 287.2 kB / 418.6 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.541e-05/0.2585, allocations: 28 kB / 418.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002343/0.2587, allocations: 155.9 kB / 418.8 MB, free: 20.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001867/0.2589, allocations: 323.1 kB / 419.1 MB, free: 19.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002346/0.2591, allocations: 345.7 kB / 419.4 MB, free: 19.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006131/0.2598, allocations: 0.9306 MB / 420.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2598, allocations: 0 / 420.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2598, allocations: 0 / 420.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.2598, allocations: 0 / 420.4 MB, free: 18.52 MB / 302.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.001736/0.2615, allocations: 1.236 MB / 421.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2616, allocations: 15.89 kB / 421.6 MB, free: 17.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.533e-05/0.2616, allocations: 54.73 kB / 421.7 MB, free: 17.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.2617, allocations: 95.81 kB / 421.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006843/0.2624, allocations: 0.7345 MB / 422.5 MB, free: 16.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.046e-05/0.2625, allocations: 80.22 kB / 422.6 MB, free: 16.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.422e-05/0.2626, allocations: 16.38 kB / 422.6 MB, free: 16.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004537/0.263, allocations: 299.8 kB / 422.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.263, allocations: 0 / 422.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.404e-05/0.2631, allocations: 12 kB / 422.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.2631, allocations: 4 kB / 422.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003431/0.2634, allocations: 167.7 kB / 423.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.2651, allocations: 1.29 MB / 424.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006091/0.2657, allocations: 315.7 kB / 424.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003232/0.266, allocations: 140.7 kB / 424.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007618/0.2668, allocations: 0.6612 MB / 425.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.2668, allocations: 38.56 kB / 425.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.2668, allocations: 0 / 425.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007188/0.2676, allocations: 304.8 kB / 425.8 MB, free: 12.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/0.2676, allocations: 239.3 kB / 426 MB, free: 12.47 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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-master/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) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/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.001441/0.2691, allocations: 1.569 MB / 427.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.2691, allocations: 25.7 kB / 427.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/0.2694, allocations: 423 kB / 428 MB, free: 10.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.2694, allocations: 43.38 kB / 428.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-05/0.2695, allocations: 41.7 kB / 428.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.052e-05/0.2695, allocations: 314 kB / 428.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.2697, allocations: 63.95 kB / 428.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002071/0.2699, allocations: 167.8 kB / 428.7 MB, free: 9.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000896/0.2708, allocations: 317.9 kB / 429 MB, free: 9.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2708, allocations: 0 / 429 MB, free: 9.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005301/0.2714, allocations: 288.4 kB / 429.3 MB, free: 9.141 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.2714, allocations: 4 kB / 429.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2714, allocations: 3.984 kB / 429.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.2714, allocations: 4.188 kB / 429.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006971/0.2721, allocations: 103.8 kB / 429.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.2721, allocations: 4 kB / 429.4 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002522/0.2724, allocations: 35.81 kB / 429.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.2724, allocations: 12 kB / 429.4 MB, free: 8.977 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004105/0.2728, allocations: 345.6 kB / 429.8 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.273, allocations: 86.81 kB / 429.8 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005175/0.2735, allocations: 276.7 kB / 430.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2735, allocations: 4 kB / 430.1 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.2735, allocations: 0 / 430.1 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.2735, allocations: 3.938 kB / 430.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004699/0.274, allocations: 0.58 MB / 430.7 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.274, allocations: 0 / 430.7 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006528/0.2747, allocations: 91.91 kB / 430.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.2747, allocations: 0 / 430.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.2747, allocations: 0 / 430.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.2747, allocations: 0 / 430.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2747, allocations: 3.938 kB / 430.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006758/0.2754, allocations: 430.6 kB / 431.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000202/0.2756, allocations: 212 kB / 431.4 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.638e-05/0.2757, allocations: 3.984 kB / 431.4 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000247/0.2759, allocations: 31.92 kB / 431.5 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.104e-05/0.276, allocations: 24.03 kB / 431.5 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.131e-05/0.276, allocations: 4 kB / 431.5 MB, free: 6.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009938/0.277, allocations: 1.137 MB / 432.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2771, allocations: 0 / 432.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003933/0.2775, allocations: 95.84 kB / 432.7 MB, free: 5.57 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00139/0.2788, allocations: 1.125 MB / 433.8 MB, free: 4.496 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004926/0.2794, allocations: 160 kB / 434 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2794, allocations: 0 / 434 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.2796, allocations: 79.89 kB / 434.1 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/0.2801, allocations: 65.84 kB / 434.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.2912, allocations: 8.924 MB / 443.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006976/0.292, allocations: 1.009 MB / 444.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003327/0.2923, allocations: 122.9 kB / 444.2 MB, free: 9.898 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003671/0.2927, allocations: 279.3 kB / 444.5 MB, free: 9.625 MB / 318.1 MB Notification: Performance of SimCode: time 1.142e-06/0.2927, allocations: 0 / 444.5 MB, free: 9.625 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03561/0.3283, allocations: 15.15 MB / 459.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/7.986, allocations: 15.81 kB / 459.6 MB, free: 10.49 MB / 334.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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Components.myBattery_res.csv --start-time 0 --stop-time 144000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 57.6 PowerSysPro_PowerSysPro_Components_myBattery.fmu > PowerSysPro_PowerSysPro.Components.myBattery.pipe 2>&1)