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.001117/0.001117, allocations: 103 kB / 16.07 MB, free: 32 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.001505/0.001505, allocations: 182.5 kB / 16.96 MB, free: 6.879 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.309/1.309, allocations: 223.3 MB / 241 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1744/0.1744, allocations: 8.08 MB / 300.2 MB, free: 3 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002614/0.0002614, allocations: 8 kB / 363.6 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08112/0.08139, allocations: 52.52 MB / 416.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.002397/0.08382, allocations: 2.153 MB / 418.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.08503, allocations: 0.8759 MB / 419.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.581e-05/0.08512, allocations: 4 kB / 419.1 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005574/0.08569, allocations: 375.3 kB / 419.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002668/0.08596, allocations: 191.4 kB / 419.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006755/0.08665, allocations: 382.7 kB / 420.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003066/0.08696, allocations: 342.9 kB / 420.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.08714, allocations: 99.58 kB / 420.5 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.08729, allocations: 151.5 kB / 420.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00032/0.08761, allocations: 267.2 kB / 420.9 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.08766, allocations: 19.98 kB / 420.9 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002337/0.0879, allocations: 143.9 kB / 421.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002365/0.08814, allocations: 307.1 kB / 421.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002473/0.0884, allocations: 351.4 kB / 421.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007306/0.08913, allocations: 0.8875 MB / 422.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.08915, allocations: 4 kB / 422.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.08915, allocations: 4 kB / 422.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.08916, allocations: 3.938 kB / 422.6 MB, free: 1.738 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.001699/0.09087, allocations: 1.116 MB / 423.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.09091, allocations: 8.031 kB / 423.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.559e-05/0.09098, allocations: 54.73 kB / 423.8 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.0911, allocations: 95.72 kB / 423.9 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1362/0.2273, allocations: 0.7276 MB / 424.6 MB, free: 41.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.495e-05/0.2274, allocations: 72.69 kB / 424.7 MB, free: 41.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.751e-05/0.2275, allocations: 15.97 kB / 424.7 MB, free: 41.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004946/0.228, allocations: 308.9 kB / 425 MB, free: 41.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.228, allocations: 0 / 425 MB, free: 41.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/0.2281, allocations: 16.98 kB / 425 MB, free: 41.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.2281, allocations: 5.719 kB / 425 MB, free: 41.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003469/0.2284, allocations: 179 kB / 425.2 MB, free: 41.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.23, allocations: 1.31 MB / 426.5 MB, free: 40.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005759/0.2306, allocations: 337.2 kB / 426.8 MB, free: 40.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.2309, allocations: 145.2 kB / 427 MB, free: 40.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006948/0.2316, allocations: 0.667 MB / 427.6 MB, free: 40.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.391e-05/0.2317, allocations: 33.88 kB / 427.7 MB, free: 40.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.203e-06/0.2317, allocations: 0 / 427.7 MB, free: 40.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006659/0.2323, allocations: 324.6 kB / 428 MB, free: 40.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.2324, allocations: 238 kB / 428.2 MB, free: 39.75 MB / 350.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.001428/0.2338, allocations: 1.574 MB / 429.8 MB, free: 39.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.2339, allocations: 29.08 kB / 429.8 MB, free: 39.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.2341, allocations: 425 kB / 430.2 MB, free: 39.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.2341, allocations: 37.41 kB / 430.3 MB, free: 39.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.729e-05/0.2341, allocations: 26.42 kB / 430.3 MB, free: 39.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.562e-05/0.2342, allocations: 313 kB / 430.6 MB, free: 39.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.2344, allocations: 71.5 kB / 430.7 MB, free: 39.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.2346, allocations: 166.4 kB / 430.8 MB, free: 38.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008691/0.2354, allocations: 345.2 kB / 431.2 MB, free: 38.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2355, allocations: 0 / 431.2 MB, free: 38.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004858/0.236, allocations: 306 kB / 431.5 MB, free: 38.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.236, allocations: 4.969 kB / 431.5 MB, free: 38.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.236, allocations: 7.156 kB / 431.5 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.236, allocations: 3.188 kB / 431.5 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006657/0.2367, allocations: 117.8 kB / 431.6 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.2367, allocations: 3 kB / 431.6 MB, free: 38.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.2369, allocations: 42.61 kB / 431.7 MB, free: 38.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.333e-05/0.2369, allocations: 10.09 kB / 431.7 MB, free: 38.79 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: 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.00028/0.2372, allocations: 341.6 kB / 432 MB, free: 38.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.504e-05/0.2373, allocations: 86.16 kB / 432.1 MB, free: 38.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004994/0.2378, allocations: 295.8 kB / 432.4 MB, free: 38.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-06/0.2378, allocations: 3 kB / 432.4 MB, free: 38.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2379, allocations: 0 / 432.4 MB, free: 38.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2379, allocations: 0 / 432.4 MB, free: 38.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004274/0.2383, allocations: 0.5687 MB / 432.9 MB, free: 38.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2383, allocations: 4 kB / 432.9 MB, free: 38.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006429/0.2389, allocations: 111.8 kB / 433.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.239, allocations: 0 / 433.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.239, allocations: 3.938 kB / 433.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.239, allocations: 3.219 kB / 433.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.239, allocations: 1.562 kB / 433.1 MB, free: 38.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006665/0.2397, allocations: 441.5 kB / 433.5 MB, free: 38.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001842/0.2399, allocations: 220.6 kB / 433.7 MB, free: 38.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.428e-05/0.2399, allocations: 12.03 kB / 433.7 MB, free: 38.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.2402, allocations: 30.39 kB / 433.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.702e-05/0.2403, allocations: 18.78 kB / 433.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.2403, allocations: 8.188 kB / 433.8 MB, free: 38.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001016/0.2413, allocations: 1.139 MB / 434.9 MB, free: 37.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.2413, allocations: 0 / 434.9 MB, free: 37.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003523/0.2417, allocations: 100.5 kB / 435 MB, free: 37.9 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 (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.00123/0.2429, allocations: 1.154 MB / 436.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000426/0.2433, allocations: 177.3 kB / 436.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2433, allocations: 0 / 436.3 MB, free: 37.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.2435, allocations: 83.27 kB / 436.4 MB, free: 37.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004521/0.244, allocations: 70.7 kB / 436.5 MB, free: 37.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009768/0.2538, allocations: 9.115 MB / 445.6 MB, free: 33.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.2542, allocations: 1.006 MB / 446.6 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002073/0.2544, allocations: 120.4 kB / 446.7 MB, free: 32.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002582/0.2546, allocations: 278.5 kB / 447 MB, free: 32.34 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2546, allocations: 3.938 kB / 447 MB, free: 32.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4026/0.6572, allocations: 14.29 MB / 461.3 MB, free: 31.4 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/0.6574, allocations: 210.8 kB / 461.5 MB, free: 31.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.949/2.607, allocations: 0 / 461.5 MB, free: 31.15 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/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)