Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.ChargingBatteries,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 221.4 MB / 235.1 MB, free: 14.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000954/0.000954, allocations: 98.53 kB / 286.1 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04614/0.04614, allocations: 8.095 MB / 345.1 MB, free: 1.926 MB / 282.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.963e-05/2.967e-05, allocations: 4 kB / 405.6 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1119, allocations: 52.52 MB / 458.1 MB, free: 9.355 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4172/0.5291, allocations: 83.51 MB / 0.5289 GB, free: 2.555 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.5293, allocations: 70.31 kB / 0.529 GB, free: 2.523 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07465/0.604, allocations: 30.73 MB / 0.559 GB, free: 8.234 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.604, allocations: 3.938 kB / 0.559 GB, free: 8.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.952e-05/0.6041, allocations: 36 kB / 0.559 GB, free: 8.195 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.004785/0.6089, allocations: 2.223 MB / 0.5612 GB, free: 6.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.609, allocations: 8.031 kB / 0.5612 GB, free: 6.062 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001587/0.6092, allocations: 108.2 kB / 0.5613 GB, free: 5.988 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006724/0.6098, allocations: 304.2 kB / 0.5616 GB, free: 5.688 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003497/0.6133, allocations: 2.13 MB / 0.5637 GB, free: 3.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002189/0.6136, allocations: 221.2 kB / 0.5639 GB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.6137, allocations: 68.69 kB / 0.564 GB, free: 3.707 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.6154, allocations: 0.9008 MB / 0.5648 GB, free: 3.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.6154, allocations: 4 kB / 0.5648 GB, free: 3.016 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.188e-05/0.6155, allocations: 29.38 kB / 0.5649 GB, free: 3.008 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.6155, allocations: 23.95 kB / 0.5649 GB, free: 2.984 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.6165, allocations: 0.5832 MB / 0.5655 GB, free: 2.645 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008476/0.625, allocations: 5.041 MB / 0.5704 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001557/0.6266, allocations: 1.195 MB / 0.5715 GB, free: 13.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007467/0.6274, allocations: 470.1 kB / 0.572 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-05/0.6275, allocations: 8.562 kB / 0.572 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.618e-05/0.6276, allocations: 47.31 kB / 0.572 GB, free: 12.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=64): time 2.705e-06/0.6276, allocations: 0 / 0.572 GB, free: 12.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=64): time 0.002443/0.63, allocations: 0.9922 MB / 0.573 GB, free: 11.64 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002761/0.6303, allocations: 0.5937 MB / 0.5736 GB, free: 10.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00712/0.6374, allocations: 4.403 MB / 0.5779 GB, free: 6.488 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002266/0.6377, allocations: 41.64 kB / 0.5779 GB, free: 6.441 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001092/0.6388, allocations: 1.139 MB / 0.579 GB, free: 5.297 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/0.639, allocations: 216.8 kB / 0.5793 GB, free: 5.082 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/0.6391, allocations: 16 kB / 0.5793 GB, free: 5.066 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.6392, allocations: 325.9 kB / 0.5796 GB, free: 4.742 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.6396, allocations: 233.5 kB / 0.5798 GB, free: 4.516 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005665/0.6402, allocations: 485.3 kB / 0.5803 GB, free: 3.953 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004242/0.6406, allocations: 262.1 kB / 0.5805 GB, free: 3.699 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.6406, allocations: 8 kB / 0.5805 GB, free: 3.691 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002616/0.6433, allocations: 1.07 MB / 0.5816 GB, free: 2.605 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.6433, allocations: 9.562 kB / 0.5816 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.6433, allocations: 0 / 0.5816 GB, free: 2.598 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.6445, allocations: 264.6 kB / 0.5818 GB, free: 2.336 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006993/0.6452, allocations: 183.7 kB / 0.582 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/0.6486, allocations: 2.461 MB / 0.5844 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.6503, allocations: 131.6 kB / 0.5845 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.527e-05/0.6504, allocations: 27.98 kB / 0.5846 GB, free: 15.41 MB / 410.7 MB Warning: Assuming fixed start value for the following 3 variables: bat3.battery.integrator.q:VARIABLE(start = bat3.battery.SOC_start ) "Charge as current integration" type: Real bat2.battery.integrator.q:VARIABLE(start = bat2.battery.SOC_start ) "Charge as current integration" type: Real bat1.battery.integrator.q:VARIABLE(start = bat1.battery.SOC_start ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 6} Notification: Performance of prepare postOptimizeDAE: time 0.00025/0.6506, allocations: 155.6 kB / 0.5847 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005578/0.6512, allocations: 264.7 kB / 0.585 GB, free: 14.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002889/0.6541, allocations: 1.127 MB / 0.5861 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.6541, allocations: 4 kB / 0.5861 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.6541, allocations: 0 / 0.5861 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.6541, allocations: 3.984 kB / 0.5861 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006304/0.6604, allocations: 3.603 MB / 0.5896 GB, free: 10.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.6605, allocations: 4 kB / 0.5896 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006601/0.6611, allocations: 159.9 kB / 0.5897 GB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.6622, allocations: 264.8 kB / 0.59 GB, free: 9.746 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.315e-05/0.6623, allocations: 19.94 kB / 0.59 GB, free: 9.727 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003256/0.6656, allocations: 2.448 MB / 0.5924 GB, free: 7.141 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.6656, allocations: 0 / 0.5924 GB, free: 7.141 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004452/0.6701, allocations: 1.556 MB / 0.5939 GB, free: 5.531 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002309/0.6724, allocations: 0.6226 MB / 0.5945 GB, free: 4.887 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003987/0.6728, allocations: 16 kB / 0.5945 GB, free: 4.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.674, allocations: 111.9 kB / 0.5947 GB, free: 4.762 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/0.6743, allocations: 76.44 kB / 0.5947 GB, free: 4.688 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.643e-05/0.6743, allocations: 19.98 kB / 0.5947 GB, free: 4.668 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006502/0.6808, allocations: 3.411 MB / 0.5981 GB, free: 1.258 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.6809, allocations: 0 / 0.5981 GB, free: 1.258 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001758/0.6826, allocations: 411.4 kB / 0.5985 GB, free: 0.8555 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (bat1.battery.integrator.q,bat2.battery.integrator.q,bat3.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003812/0.6865, allocations: 2.482 MB / 0.6009 GB, free: 14.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.6881, allocations: 0.7947 MB / 0.6017 GB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6881, allocations: 0.6719 kB / 0.6017 GB, free: 13.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009466/0.689, allocations: 0.5443 MB / 0.6022 GB, free: 13.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.6903, allocations: 198.3 kB / 0.6024 GB, free: 12.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009764/0.7001, allocations: 4.942 MB / 0.6072 GB, free: 7.809 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001674/0.7018, allocations: 1.871 MB / 0.609 GB, free: 5.906 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00119/0.703, allocations: 416.1 kB / 0.6094 GB, free: 5.492 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/0.7044, allocations: 0.9718 MB / 0.6104 GB, free: 4.52 MB / 426.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7044, allocations: 0 / 0.6104 GB, free: 4.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3535/1.058, allocations: 49.4 MB / 0.6586 GB, free: 140 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/1.058, allocations: 215.2 kB / 0.6588 GB, free: 139.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.49/4.549, allocations: 0 / 0.6588 GB, free: 139.8 MB / 458.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1)