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.001334/0.001334, allocations: 101.7 kB / 16.03 MB, free: 6.332 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.001488/0.001488, allocations: 197.1 kB / 16.95 MB, free: 6.152 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.281/1.281, allocations: 222.9 MB / 240.6 MB, free: 13.71 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04672/0.04672, allocations: 8.088 MB / 298.9 MB, free: 6.66 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 59.91 kB / 361.3 MB, free: 8.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1872, allocations: 51.52 MB / 412.8 MB, free: 25.71 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.002809/0.19, allocations: 2.51 MB / 415.4 MB, free: 23.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009334/0.1909, allocations: 0.8914 MB / 416.2 MB, free: 22.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.361e-05/0.191, allocations: 4 kB / 416.2 MB, free: 22.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004553/0.1915, allocations: 377.3 kB / 416.6 MB, free: 21.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.1917, allocations: 191.4 kB / 416.8 MB, free: 21.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006175/0.1924, allocations: 390.8 kB / 417.2 MB, free: 21.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002279/0.1926, allocations: 346.8 kB / 417.5 MB, free: 21.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.1927, allocations: 103.8 kB / 417.6 MB, free: 20.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.1929, allocations: 171.5 kB / 417.8 MB, free: 20.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002432/0.1931, allocations: 299.1 kB / 418.1 MB, free: 20.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.689e-05/0.1932, allocations: 32 kB / 418.1 MB, free: 20.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001985/0.1934, allocations: 155.9 kB / 418.3 MB, free: 20.26 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001616/0.1935, allocations: 315.2 kB / 418.6 MB, free: 19.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.1937, allocations: 353.6 kB / 418.9 MB, free: 19.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006277/0.1944, allocations: 0.9306 MB / 419.9 MB, free: 18.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1944, allocations: 0 / 419.9 MB, free: 18.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1944, allocations: 0 / 419.9 MB, free: 18.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1944, allocations: 0 / 419.9 MB, free: 18.67 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.001679/0.1961, allocations: 1.248 MB / 421.1 MB, free: 17.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.1961, allocations: 11.89 kB / 421.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.735e-05/0.1962, allocations: 54.73 kB / 421.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.1963, allocations: 91.81 kB / 421.3 MB, free: 17.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006332/0.1969, allocations: 0.7306 MB / 422 MB, free: 16.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.52e-05/0.197, allocations: 76.33 kB / 422.1 MB, free: 16.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/0.197, allocations: 24.38 kB / 422.1 MB, free: 16.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004705/0.1975, allocations: 295.8 kB / 422.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.1975, allocations: 11.88 kB / 422.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.1976, allocations: 8 kB / 422.4 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1976, allocations: 4 kB / 422.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003531/0.1979, allocations: 175.6 kB / 422.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001494/0.1995, allocations: 1.286 MB / 423.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005522/0.2, allocations: 307.8 kB / 424.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003197/0.2003, allocations: 132.8 kB / 424.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007091/0.2011, allocations: 0.665 MB / 424.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.506e-05/0.2011, allocations: 38.56 kB / 425 MB, free: 13.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.503e-06/0.2011, allocations: 0 / 425 MB, free: 13.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.000671/0.2018, allocations: 296.5 kB / 425.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.173e-05/0.2019, allocations: 235.3 kB / 425.5 MB, free: 12.64 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.001382/0.2032, allocations: 1.577 MB / 427.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.2033, allocations: 33.7 kB / 427.1 MB, free: 11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002177/0.2035, allocations: 418.9 kB / 427.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.2035, allocations: 39.39 kB / 427.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.039e-05/0.2036, allocations: 45.69 kB / 427.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.775e-05/0.2036, allocations: 310 kB / 427.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.2038, allocations: 63.95 kB / 428 MB, free: 10.13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.204, allocations: 171.9 kB / 428.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008668/0.2049, allocations: 317.2 kB / 428.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.2049, allocations: 0 / 428.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004692/0.2054, allocations: 284.4 kB / 428.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2054, allocations: 4 kB / 428.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2054, allocations: 11.98 kB / 428.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.2055, allocations: 0 / 428.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006813/0.2062, allocations: 108 kB / 428.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.2062, allocations: 7.984 kB / 428.9 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.2064, allocations: 27.83 kB / 428.9 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.2064, allocations: 12 kB / 428.9 MB, free: 9.137 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.0002772/0.2067, allocations: 341.6 kB / 429.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.133e-05/0.2068, allocations: 94.81 kB / 429.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004771/0.2073, allocations: 269.6 kB / 429.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2073, allocations: 0 / 429.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2073, allocations: 0 / 429.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2073, allocations: 7.938 kB / 429.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.2077, allocations: 0.5761 MB / 430.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2078, allocations: 0 / 430.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000653/0.2084, allocations: 91.84 kB / 430.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.2084, allocations: 0 / 430.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.2084, allocations: 7.984 kB / 430.3 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2085, allocations: 4 kB / 430.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2085, allocations: 4 kB / 430.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00062/0.2091, allocations: 418.1 kB / 430.7 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.2093, allocations: 216 kB / 430.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.389e-05/0.2094, allocations: 4 kB / 430.9 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.2096, allocations: 23.97 kB / 430.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.069e-05/0.2097, allocations: 19.97 kB / 430.9 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.2097, allocations: 4 kB / 430.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001006/0.2107, allocations: 1.137 MB / 432.1 MB, free: 5.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2107, allocations: 8 kB / 432.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003725/0.2111, allocations: 103.8 kB / 432.2 MB, free: 5.73 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.001301/0.2124, allocations: 1.116 MB / 433.3 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004314/0.2129, allocations: 171.7 kB / 433.5 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2129, allocations: 8 kB / 433.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.2131, allocations: 75.89 kB / 433.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.2136, allocations: 67.48 kB / 433.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/0.2245, allocations: 9.048 MB / 442.7 MB, free: 11.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005657/0.2251, allocations: 1.008 MB / 443.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002374/0.2253, allocations: 118.9 kB / 443.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003476/0.2257, allocations: 287.3 kB / 444.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2257, allocations: 0 / 444.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.2531, allocations: 14.92 MB / 459 MB, free: 10.79 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002784/0.2534, allocations: 220.9 kB / 459.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.345, allocations: 64 / 459.2 MB, free: 10.54 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)