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.0007408/0.0007408, allocations: 84.19 kB / 15.75 MB, free: 416 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.000862/0.0008621, allocations: 177 kB / 16.63 MB, free: 6.887 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.24/1.24, allocations: 223.3 MB / 240.7 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1742/0.1742, allocations: 8.08 MB / 299.8 MB, free: 2.961 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.0003309, allocations: 8 kB / 363 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08922/0.08957, allocations: 52.51 MB / 415.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Components.myBattery): time 0.00237/0.09198, allocations: 2.077 MB / 417.5 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.09312, allocations: 0.8218 MB / 418.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.222e-05/0.09322, allocations: 4 kB / 418.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005671/0.09379, allocations: 363.1 kB / 418.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002461/0.09405, allocations: 187.4 kB / 418.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006155/0.09468, allocations: 331 kB / 419.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.09498, allocations: 302.9 kB / 419.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.09513, allocations: 81.62 kB / 419.6 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.09527, allocations: 147.5 kB / 419.8 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002988/0.09558, allocations: 243.3 kB / 420 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.622e-05/0.09562, allocations: 16 kB / 420 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002289/0.09586, allocations: 135.9 kB / 420.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002424/0.09611, allocations: 311.2 kB / 420.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.09623, allocations: 137.3 kB / 420.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005945/0.09683, allocations: 0.7252 MB / 421.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.09684, allocations: 0 / 421.3 MB, free: 2.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09685, allocations: 4 kB / 421.3 MB, free: 2.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.291e-06/0.09686, allocations: 0 / 421.3 MB, free: 2.762 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.001673/0.09854, allocations: 1.131 MB / 422.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.09858, allocations: 12.03 kB / 422.4 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.77e-05/0.09865, allocations: 54.53 kB / 422.5 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.09877, allocations: 98.73 kB / 422.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007985/0.09958, allocations: 0.6953 MB / 423.3 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.546e-05/0.09966, allocations: 67.77 kB / 423.4 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.678e-05/0.09972, allocations: 24 kB / 423.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000514/0.1002, allocations: 307.5 kB / 423.7 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.1003, allocations: 0 / 423.7 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.1003, allocations: 4 kB / 423.7 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1003, allocations: 11.95 kB / 423.7 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000365/0.1007, allocations: 183.6 kB / 423.9 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1675/0.2682, allocations: 1.297 MB / 425.2 MB, free: 40.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005789/0.2688, allocations: 333.7 kB / 425.5 MB, free: 40.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002836/0.2691, allocations: 148.5 kB / 425.6 MB, free: 40.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007314/0.2699, allocations: 0.6603 MB / 426.3 MB, free: 40.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.2699, allocations: 47.95 kB / 426.4 MB, free: 40.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.603e-06/0.2699, allocations: 0 / 426.4 MB, free: 40.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006277/0.2705, allocations: 312.2 kB / 426.7 MB, free: 40.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.2706, allocations: 238.4 kB / 426.9 MB, free: 40.09 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.001428/0.272, allocations: 1.577 MB / 428.5 MB, free: 39.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2721, allocations: 30.78 kB / 428.5 MB, free: 39.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.2723, allocations: 417.1 kB / 428.9 MB, free: 39.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/0.2724, allocations: 40.09 kB / 428.9 MB, free: 39.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.776e-06/0.2724, allocations: 3.844 kB / 428.9 MB, free: 39.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.228e-05/0.2724, allocations: 314.2 kB / 429.3 MB, free: 39.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.2726, allocations: 66.81 kB / 429.3 MB, free: 39.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001976/0.2728, allocations: 170.8 kB / 429.5 MB, free: 39.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001801/0.273, allocations: 80.64 kB / 429.6 MB, free: 39.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.273, allocations: 0 / 429.6 MB, free: 39.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004765/0.2735, allocations: 300.2 kB / 429.9 MB, free: 39.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.2735, allocations: 7.516 kB / 429.9 MB, free: 39.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.2735, allocations: 2.844 kB / 429.9 MB, free: 39.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.2735, allocations: 3.188 kB / 429.9 MB, free: 39.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/0.2742, allocations: 122.4 kB / 430 MB, free: 39.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.2742, allocations: 11.89 kB / 430 MB, free: 39.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.2744, allocations: 41.22 kB / 430 MB, free: 39.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.2745, allocations: 7.094 kB / 430.1 MB, free: 39.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003152/0.2748, allocations: 340.9 kB / 430.4 MB, free: 39.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.203e-05/0.2749, allocations: 89.66 kB / 430.5 MB, free: 39.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005039/0.2754, allocations: 295.8 kB / 430.8 MB, free: 39.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.2754, allocations: 2.969 kB / 430.8 MB, free: 39.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2754, allocations: 0 / 430.8 MB, free: 39.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.2754, allocations: 4.703 kB / 430.8 MB, free: 39.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005286/0.276, allocations: 0.5677 MB / 431.3 MB, free: 38.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.276, allocations: 1.312 kB / 431.3 MB, free: 38.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005923/0.2766, allocations: 110.2 kB / 431.4 MB, free: 38.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.2766, allocations: 3.375 kB / 431.4 MB, free: 38.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.2766, allocations: 0 / 431.4 MB, free: 38.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2766, allocations: 3.75 kB / 431.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2766, allocations: 4 kB / 431.5 MB, free: 38.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006053/0.2772, allocations: 447.5 kB / 431.9 MB, free: 38.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001798/0.2774, allocations: 210.7 kB / 432.1 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.19e-05/0.2775, allocations: 8.844 kB / 432.1 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/0.2777, allocations: 39.28 kB / 432.1 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.361e-05/0.2778, allocations: 20.84 kB / 432.2 MB, free: 38.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.2778, allocations: 3.375 kB / 432.2 MB, free: 38.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.2789, allocations: 1.137 MB / 433.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2789, allocations: 0 / 433.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003743/0.2793, allocations: 98.75 kB / 433.4 MB, free: 38.37 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 (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.00127/0.2806, allocations: 1.152 MB / 434.6 MB, free: 37.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004038/0.281, allocations: 172.9 kB / 434.7 MB, free: 37.63 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.281, allocations: 384 / 434.7 MB, free: 37.63 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.2812, allocations: 85.34 kB / 434.8 MB, free: 37.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004315/0.2816, allocations: 69.19 kB / 434.9 MB, free: 37.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00806/0.2897, allocations: 6.161 MB / 441 MB, free: 35.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.2901, allocations: 1.001 MB / 442 MB, free: 34.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002381/0.2904, allocations: 117.5 kB / 442.2 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002763/0.2907, allocations: 288.2 kB / 442.4 MB, free: 34.63 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2907, allocations: 0 / 442.4 MB, free: 34.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02592/0.3166, allocations: 14.38 MB / 456.8 MB, free: 33.69 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001236/0.3168, allocations: 196.4 kB / 457 MB, free: 33.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.15, allocations: 0 / 457 MB, free: 33.46 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: