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.001161/0.001161, allocations: 104.2 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.00118/0.00118, allocations: 186.9 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.327/1.327, allocations: 222.9 MB / 240.9 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0512/0.0512, allocations: 8.093 MB / 299.2 MB, free: 6.719 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 67.89 kB / 361.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2062, allocations: 51.52 MB / 413.4 MB, free: 25.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.003045/0.2092, allocations: 2.471 MB / 415.8 MB, free: 23.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.2103, allocations: 0.899 MB / 416.7 MB, free: 22.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.47e-05/0.2104, allocations: 7.938 kB / 416.7 MB, free: 22.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005482/0.2109, allocations: 397.1 kB / 417.1 MB, free: 21.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002489/0.2112, allocations: 199.2 kB / 417.3 MB, free: 21.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006457/0.2119, allocations: 418.4 kB / 417.7 MB, free: 21.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002299/0.2121, allocations: 346.9 kB / 418.1 MB, free: 20.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.2123, allocations: 103.8 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.2124, allocations: 171.5 kB / 418.3 MB, free: 20.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.2127, allocations: 283.2 kB / 418.6 MB, free: 20.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.2127, allocations: 31.98 kB / 418.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002266/0.2129, allocations: 159.9 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000164/0.2131, allocations: 315.2 kB / 419.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001997/0.2133, allocations: 353.6 kB / 419.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005508/0.2139, allocations: 0.9228 MB / 420.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2139, allocations: 0 / 420.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2139, allocations: 0 / 420.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.2139, allocations: 0 / 420.4 MB, free: 18.54 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.001689/0.2156, allocations: 1.24 MB / 421.6 MB, free: 17.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.2157, allocations: 15.89 kB / 421.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.809e-05/0.2157, allocations: 54.73 kB / 421.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.2158, allocations: 95.8 kB / 421.8 MB, free: 17.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006624/0.2165, allocations: 0.7306 MB / 422.5 MB, free: 16.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.298e-05/0.2166, allocations: 76.33 kB / 422.6 MB, free: 16.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.2166, allocations: 24.38 kB / 422.6 MB, free: 16.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004461/0.217, allocations: 295.8 kB / 422.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2171, allocations: 11.94 kB / 422.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.2171, allocations: 4 kB / 422.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.2171, allocations: 4 kB / 422.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003504/0.2175, allocations: 175.6 kB / 423.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.219, allocations: 1.286 MB / 424.4 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005961/0.2196, allocations: 315.6 kB / 424.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003123/0.2199, allocations: 132.8 kB / 424.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007461/0.2207, allocations: 0.6651 MB / 425.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.2207, allocations: 42.5 kB / 425.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.2207, allocations: 0 / 425.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007141/0.2214, allocations: 296.5 kB / 425.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.954e-05/0.2215, allocations: 235.3 kB / 426 MB, free: 12.5 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.001429/0.223, allocations: 1.571 MB / 427.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.223, allocations: 33.69 kB / 427.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.2232, allocations: 419 kB / 428 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.875e-05/0.2233, allocations: 43.38 kB / 428.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.068e-05/0.2233, allocations: 41.7 kB / 428.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.988e-05/0.2234, allocations: 310 kB / 428.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.2236, allocations: 63.95 kB / 428.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.2238, allocations: 179.8 kB / 428.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009068/0.2247, allocations: 301.7 kB / 429 MB, free: 9.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2247, allocations: 0 / 429 MB, free: 9.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000489/0.2252, allocations: 295.9 kB / 429.2 MB, free: 9.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.2253, allocations: 4 kB / 429.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.2253, allocations: 0 / 429.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.2253, allocations: 4 kB / 429.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006857/0.226, allocations: 108 kB / 429.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.226, allocations: 4 kB / 429.4 MB, free: 9.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.2262, allocations: 31.81 kB / 429.4 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.2263, allocations: 12 kB / 429.4 MB, free: 9 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.0002889/0.2266, allocations: 346.1 kB / 429.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.54e-05/0.2267, allocations: 90.81 kB / 429.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005045/0.2272, allocations: 273.5 kB / 430.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2272, allocations: 3.984 kB / 430.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2272, allocations: 0 / 430.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2272, allocations: 4 kB / 430.1 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/0.2277, allocations: 0.5761 MB / 430.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2277, allocations: 0 / 430.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006606/0.2283, allocations: 87.91 kB / 430.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2283, allocations: 0 / 430.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.2284, allocations: 7.984 kB / 430.8 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2284, allocations: 8.156 kB / 430.8 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2284, allocations: 7.875 kB / 430.8 MB, free: 7.547 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000648/0.229, allocations: 418.7 kB / 431.2 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001944/0.2292, allocations: 216 kB / 431.4 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.558e-05/0.2293, allocations: 4 kB / 431.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.2296, allocations: 27.95 kB / 431.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.899e-05/0.2296, allocations: 15.98 kB / 431.5 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.2297, allocations: 7.984 kB / 431.5 MB, free: 6.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009539/0.2306, allocations: 1.137 MB / 432.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2306, allocations: 4.062 kB / 432.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003685/0.231, allocations: 99.84 kB / 432.7 MB, free: 5.586 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.001286/0.2323, allocations: 1.127 MB / 433.8 MB, free: 4.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004469/0.2328, allocations: 167.5 kB / 434 MB, free: 4.352 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.2328, allocations: 8 kB / 434 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001891/0.233, allocations: 75.89 kB / 434.1 MB, free: 4.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004507/0.2334, allocations: 67.48 kB / 434.1 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.2435, allocations: 8.909 MB / 443.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.2441, allocations: 1.008 MB / 444.1 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002556/0.2444, allocations: 118.9 kB / 444.2 MB, free: 9.914 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003473/0.2447, allocations: 283.3 kB / 444.5 MB, free: 9.637 MB / 318.1 MB Notification: Performance of SimCode: time 5.62e-07/0.2447, allocations: 0 / 444.5 MB, free: 9.637 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03517/0.2799, allocations: 15.15 MB / 459.6 MB, free: 10.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.498/7.778, allocations: 11.5 kB / 459.6 MB, free: 10.5 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 & /home/hudson/saved_omc/OMSimulator/install/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)