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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 110 kB / 17.17 MB, free: 5.867 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002004/0.002004, allocations: 196.5 kB / 20.12 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 225.6 MB / 248.5 MB, free: 3.656 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05627/0.05627, allocations: 8.223 MB / 311.6 MB, free: 2.094 MB / 238.1 MB " [Timeout remaining time 180] 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001883/0.001883, allocations: 63.91 kB / 434 MB, free: 11.82 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2657, allocations: 54.36 MB / 488.3 MB, free: 27.6 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.004774/0.2705, allocations: 4.81 MB / 493.1 MB, free: 23.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.2726, allocations: 1.634 MB / 494.8 MB, free: 22.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002753/0.2729, allocations: 13.03 kB / 494.8 MB, free: 22.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009998/0.2739, allocations: 0.7616 MB / 495.6 MB, free: 22.06 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007683/0.2747, allocations: 0.6576 MB / 496.2 MB, free: 21.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.2763, allocations: 1.158 MB / 497.4 MB, free: 20.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.2774, allocations: 1.254 MB / 498.6 MB, free: 20.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003714/0.2778, allocations: 294.2 kB / 498.9 MB, free: 19.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004668/0.2783, allocations: 0.5801 MB / 499.5 MB, free: 19.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008593/0.2791, allocations: 0.9762 MB / 0.4887 GB, free: 18.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001698/0.2793, allocations: 128.5 kB / 0.4889 GB, free: 18.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000614/0.2799, allocations: 357.3 kB / 0.4892 GB, free: 18.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005707/0.2805, allocations: 0.9656 MB / 0.4901 GB, free: 18.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007126/0.2812, allocations: 1.201 MB / 0.4913 GB, free: 17.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002682/0.2839, allocations: 3.35 MB / 0.4946 GB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2839, allocations: 0 / 0.4946 GB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2839, allocations: 0 / 0.4946 GB, free: 15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.912e-05/0.2839, allocations: 0.9688 kB / 0.4946 GB, free: 15 MB / 366.1 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.006467/0.2904, allocations: 3.511 MB / 0.498 GB, free: 12.48 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.2904, allocations: 13.39 kB / 0.498 GB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.2906, allocations: 114.1 kB / 0.4981 GB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003901/0.291, allocations: 309.8 kB / 0.4984 GB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002961/0.2939, allocations: 2.2 MB / 0.5006 GB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.2941, allocations: 228.9 kB / 0.5008 GB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-05/0.2942, allocations: 61.56 kB / 0.5009 GB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.2957, allocations: 1.002 MB / 0.5018 GB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.2957, allocations: 0 / 0.5018 GB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.639e-05/0.2957, allocations: 32.47 kB / 0.5019 GB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.2958, allocations: 15.19 kB / 0.5019 GB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/0.297, allocations: 0.6904 MB / 0.5026 GB, free: 9.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00643/0.3035, allocations: 4.818 MB / 0.5073 GB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001784/0.3053, allocations: 1.318 MB / 0.5085 GB, free: 3.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008363/0.3061, allocations: 486.7 kB / 0.509 GB, free: 3.203 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001421/0.3062, allocations: 93.66 kB / 0.5091 GB, free: 3.094 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3063, allocations: 51.06 kB / 0.5092 GB, free: 3.031 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.254e-06/0.3063, allocations: 0 / 0.5092 GB, free: 3.031 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.003962/0.3102, allocations: 1.67 MB / 0.5108 GB, free: 1.332 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/0.3104, allocations: 0.5896 MB / 0.5114 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006888/0.3173, allocations: 4.885 MB / 0.5161 GB, free: 11.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/0.3174, allocations: 41.7 kB / 0.5162 GB, free: 11.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/0.3186, allocations: 1.132 MB / 0.5173 GB, free: 10.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002473/0.3189, allocations: 234 kB / 0.5175 GB, free: 10.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.3191, allocations: 126.2 kB / 0.5176 GB, free: 10.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.3193, allocations: 333.9 kB / 0.5179 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007613/0.32, allocations: 313.2 kB / 0.5182 GB, free: 9.523 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000998/0.321, allocations: 0.5623 MB / 0.5188 GB, free: 8.871 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005504/0.3265, allocations: 1.669 MB / 0.5204 GB, free: 7.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.3265, allocations: 0 / 0.5204 GB, free: 7.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00343/0.33, allocations: 1.242 MB / 0.5216 GB, free: 5.926 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.33, allocations: 7.984 kB / 0.5216 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.639e-06/0.33, allocations: 4 kB / 0.5216 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.3311, allocations: 256.5 kB / 0.5219 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006509/0.3317, allocations: 171.8 kB / 0.522 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00383/0.3355, allocations: 2.698 MB / 0.5247 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.3368, allocations: 111.6 kB / 0.5248 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.958e-05/0.3369, allocations: 23.98 kB / 0.5248 GB, free: 2.52 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: bat1.battery.integrator.q:VARIABLE(flow=false start = bat1.battery.SOC_start fixed = true ) \"Charge as current integration\" type: Real bat2.battery.integrator.q:VARIABLE(flow=false start = bat2.battery.SOC_start fixed = true ) \"Charge as current integration\" type: Real bat3.battery.integrator.q:VARIABLE(flow=false start = bat3.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: 8 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,6)} Notification: Performance of prepare postOptimizeDAE: time 0.001664/0.3385, allocations: 0.9385 MB / 0.5257 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000477/0.339, allocations: 274.2 kB / 0.526 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002773/0.3418, allocations: 1.26 MB / 0.5272 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.912e-06/0.3418, allocations: 7.938 kB / 0.5272 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.3418, allocations: 0 / 0.5272 GB, free: 24 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.3418, allocations: 11.91 kB / 0.5272 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005949/0.3478, allocations: 3.37 MB / 0.5305 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3478, allocations: 0 / 0.5305 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005969/0.3484, allocations: 139.9 kB / 0.5307 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009773/0.3493, allocations: 256.6 kB / 0.5309 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.959e-05/0.3494, allocations: 12 kB / 0.5309 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003333/0.3527, allocations: 2.668 MB / 0.5335 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3527, allocations: 4 kB / 0.5335 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003592/0.3563, allocations: 1.7 MB / 0.5352 GB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.3575, allocations: 0.5304 MB / 0.5357 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.3578, allocations: 16 kB / 0.5357 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007411/0.3585, allocations: 84.03 kB / 0.5358 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/0.3587, allocations: 84.41 kB / 0.5359 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/0.3588, allocations: 27.92 kB / 0.5359 GB, free: 6.859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005276/0.364, allocations: 3.511 MB / 0.5393 GB, free: 3.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.364, allocations: 0 / 0.5393 GB, free: 3.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001241/0.3653, allocations: 363.5 kB / 0.5397 GB, free: 2.996 MB / 398.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004822/0.3701, allocations: 2.422 MB / 0.542 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002245/0.3723, allocations: 0.9398 MB / 0.543 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.3724, allocations: 4.234 kB / 0.543 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.3736, allocations: 0.6075 MB / 0.5436 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.3749, allocations: 206.4 kB / 0.5438 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04225/0.4172, allocations: 26.31 MB / 0.5695 GB, free: 4.285 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001862/0.419, allocations: 1.816 MB / 0.5712 GB, free: 2.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008967/0.4199, allocations: 368.1 kB / 0.5716 GB, free: 2.062 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001294/0.4212, allocations: 0.9601 MB / 0.5725 GB, free: 1.102 MB / 430.1 MB Notification: Performance of SimCode: time 9.81e-07/0.4212, allocations: 0 / 0.5725 GB, free: 1.102 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2956/0.7168, allocations: 49.2 MB / 0.6206 GB, free: 103.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.12/17.84, allocations: 9.594 kB / 0.6206 GB, free: 103.1 MB / 462.1 MB " [Timeout remaining time 642] (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/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries_fmu --startTime=0 --stopTime=36000 --stepSize=14.4 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_ChargingBatteries.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.ChargingBatteries.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.42426311597228] Failed to read output from testmodel.py, exit status != 0: 18.003114874009043 18.013303635 17.727281082 Calling exit ...