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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004177/0.004177, allocations: 93.11 kB / 15.91 MB, free: 6.277 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.001061/0.001061, allocations: 199.1 kB / 16.84 MB, free: 6.191 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.243/1.243, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1359/0.1359, allocations: 8.087 MB / 298.7 MB, free: 2.102 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 55.91 kB / 361.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07419/0.07535, allocations: 51.52 MB / 412.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.ChargingBatteries): time 0.005127/0.08051, allocations: 4.789 MB / 417.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.08253, allocations: 1.596 MB / 419.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001913/0.08273, allocations: 19.94 kB / 419.1 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000912/0.08366, allocations: 0.7209 MB / 419.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007094/0.08438, allocations: 0.6035 MB / 420.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001648/0.08604, allocations: 1.102 MB / 421.5 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000914/0.08696, allocations: 1.192 MB / 422.7 MB, free: 8 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004148/0.08738, allocations: 357.9 kB / 423 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003734/0.08776, allocations: 0.5022 MB / 423.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007709/0.08854, allocations: 0.8959 MB / 424.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.08868, allocations: 72 kB / 424.5 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004477/0.08913, allocations: 291.8 kB / 424.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005776/0.08972, allocations: 0.931 MB / 425.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007577/0.09048, allocations: 1.087 MB / 426.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002213/0.0927, allocations: 3.252 MB / 430.1 MB, free: 8.598 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.09272, allocations: 0 / 430.1 MB, free: 8.598 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.09273, allocations: 0 / 430.1 MB, free: 8.598 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.818e-05/0.09275, allocations: 0 / 430.1 MB, free: 8.598 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.005982/0.09873, allocations: 3.401 MB / 433.5 MB, free: 5.125 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.09879, allocations: 15.97 kB / 433.5 MB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001418/0.09894, allocations: 114.7 kB / 433.6 MB, free: 4.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003671/0.09931, allocations: 293.3 kB / 433.9 MB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002635/0.102, allocations: 2.179 MB / 436.1 MB, free: 2.461 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.1021, allocations: 224.1 kB / 436.3 MB, free: 2.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-05/0.1022, allocations: 60.38 kB / 436.3 MB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.104, allocations: 1 MB / 437.3 MB, free: 1.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.104, allocations: 0 / 437.3 MB, free: 1.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-05/0.1041, allocations: 35.98 kB / 437.4 MB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.1041, allocations: 16 kB / 437.4 MB, free: 1.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.1054, allocations: 0.6845 MB / 438.1 MB, free: 344 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1384/0.2439, allocations: 4.836 MB / 442.9 MB, free: 54.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/0.2457, allocations: 1.37 MB / 444.3 MB, free: 53.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008208/0.2465, allocations: 0.5175 MB / 444.8 MB, free: 53.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001191/0.2466, allocations: 97.61 kB / 444.9 MB, free: 53.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.825e-05/0.2466, allocations: 49.84 kB / 444.9 MB, free: 52.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.595e-06/0.2466, allocations: 0 / 444.9 MB, free: 52.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.003738/0.2504, allocations: 1.66 MB / 446.6 MB, free: 52.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.83e-05/0.2505, allocations: 0.5946 MB / 447.2 MB, free: 51.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004081/0.2546, allocations: 4.886 MB / 452.1 MB, free: 50.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.332e-05/0.2546, allocations: 44.3 kB / 452.1 MB, free: 50.15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006888/0.2553, allocations: 1.127 MB / 453.2 MB, free: 49.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.2555, allocations: 215.7 kB / 453.5 MB, free: 49.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/0.2556, allocations: 122.3 kB / 453.6 MB, free: 49.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.399e-05/0.2557, allocations: 333.9 kB / 453.9 MB, free: 48.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006078/0.2563, allocations: 318.8 kB / 454.2 MB, free: 48.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006831/0.257, allocations: 0.5504 MB / 454.8 MB, free: 48.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00489/0.2619, allocations: 1.658 MB / 456.4 MB, free: 47.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2619, allocations: 3.625 kB / 456.4 MB, free: 47.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002349/0.2643, allocations: 1.243 MB / 457.7 MB, free: 47.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.2643, allocations: 5.969 kB / 457.7 MB, free: 47.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.2643, allocations: 2.875 kB / 457.7 MB, free: 47.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.2653, allocations: 263.1 kB / 457.9 MB, free: 47.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000599/0.2659, allocations: 165.6 kB / 458.1 MB, free: 47.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002511/0.2684, allocations: 2.485 MB / 460.6 MB, free: 45.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007676/0.2692, allocations: 111 kB / 460.7 MB, free: 45.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.27e-05/0.2693, allocations: 27.28 kB / 460.7 MB, free: 45.25 MB / 366.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.0008294/0.2701, allocations: 0.9389 MB / 461.7 MB, free: 44.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002404/0.2704, allocations: 256.2 kB / 461.9 MB, free: 44.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/0.2727, allocations: 1.274 MB / 463.2 MB, free: 44.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.2727, allocations: 6.656 kB / 463.2 MB, free: 44.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-06/0.2727, allocations: 0 / 463.2 MB, free: 44.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2727, allocations: 4.656 kB / 463.2 MB, free: 44.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004105/0.2768, allocations: 3.381 MB / 466.6 MB, free: 42.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2768, allocations: 3.75 kB / 466.6 MB, free: 42.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005374/0.2774, allocations: 140.7 kB / 466.7 MB, free: 42.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009532/0.2783, allocations: 251.9 kB / 467 MB, free: 42.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.714e-05/0.2784, allocations: 22.06 kB / 467 MB, free: 42.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002205/0.2806, allocations: 2.447 MB / 469.4 MB, free: 40.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.2806, allocations: 5.25 kB / 469.4 MB, free: 40.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002725/0.2833, allocations: 1.696 MB / 471.1 MB, free: 40.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005597/0.2839, allocations: 0.5258 MB / 471.7 MB, free: 39.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/0.2841, allocations: 21.28 kB / 471.7 MB, free: 39.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006841/0.2848, allocations: 80.61 kB / 471.8 MB, free: 39.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.285, allocations: 80.48 kB / 471.8 MB, free: 39.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.661e-05/0.285, allocations: 20.44 kB / 471.9 MB, free: 39.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003391/0.2884, allocations: 3.512 MB / 475.4 MB, free: 38.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2884, allocations: 0 / 475.4 MB, free: 38.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008231/0.2892, allocations: 353.3 kB / 475.7 MB, free: 38.43 MB / 366.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.003579/0.2928, allocations: 2.441 MB / 478.2 MB, free: 37.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.2946, allocations: 0.965 MB / 479.1 MB, free: 36.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.2947, allocations: 3.016 kB / 479.1 MB, free: 36.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.2957, allocations: 0.6154 MB / 479.7 MB, free: 36.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009949/0.2967, allocations: 212.8 kB / 479.9 MB, free: 36.24 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.042/0.3387, allocations: 31.24 MB / 0.4992 GB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/0.34, allocations: 1.823 MB / 0.501 GB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000732/0.3407, allocations: 358.4 kB / 0.5013 GB, free: 12.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009117/0.3417, allocations: 0.9561 MB / 0.5023 GB, free: 11.54 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3417, allocations: 7.938 kB / 0.5023 GB, free: 11.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2374/0.5791, allocations: 48.89 MB / 0.55 GB, free: 11.75 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/0.5794, allocations: 278.2 kB / 0.5503 GB, free: 11.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.087/3.666, allocations: 0 / 0.5503 GB, free: 11.39 MB / 414.1 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/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)