Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad",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.001711/0.001711, allocations: 176.6 kB / 8.047 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 221.5 MB / 230 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008386/0.0008386, allocations: 88.33 kB / 280.9 MB, free: 5.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.04934/0.04934, allocations: 8.098 MB / 339.8 MB, free: 7 MB / 234.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 2.618e-05/2.632e-05, allocations: 3.672 kB / 398.6 MB, free: 49.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09666, allocations: 52.53 MB / 451.1 MB, free: 5.266 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.106/0.2027, allocations: 83.19 MB / 0.5218 GB, free: 1.961 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.203, allocations: 71.97 kB / 0.5218 GB, free: 1.891 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2936/0.4966, allocations: 14.57 MB / 0.5361 GB, free: 79.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.4967, allocations: 3.938 kB / 0.5361 GB, free: 79.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.596e-05/0.4967, allocations: 11.47 kB / 0.5361 GB, free: 79.21 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002244/0.499, allocations: 1.072 MB / 0.5371 GB, free: 78.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.411e-05/0.4991, allocations: 11.83 kB / 0.5371 GB, free: 78.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002129/0.4993, allocations: 110.8 kB / 0.5372 GB, free: 78.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001274/0.5006, allocations: 0.8528 MB / 0.5381 GB, free: 78.01 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.2e-05/0.5007, allocations: 71.06 kB / 0.5381 GB, free: 77.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.366e-05/0.5008, allocations: 15.06 kB / 0.5382 GB, free: 77.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004448/0.5012, allocations: 282.7 kB / 0.5384 GB, free: 77.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005697/0.5018, allocations: 371.5 kB / 0.5388 GB, free: 77.74 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.5018, allocations: 0 / 0.5388 GB, free: 77.74 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.5019, allocations: 7.766 kB / 0.5388 GB, free: 77.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.5019, allocations: 9.531 kB / 0.5388 GB, free: 77.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002821/0.5047, allocations: 2.177 MB / 0.5409 GB, free: 76.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006437/0.5054, allocations: 404.1 kB / 0.5413 GB, free: 75.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002767/0.5057, allocations: 177.3 kB / 0.5415 GB, free: 75.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.804e-05/0.5057, allocations: 16.17 kB / 0.5415 GB, free: 75.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.5058, allocations: 38.8 kB / 0.5415 GB, free: 75.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.713e-06/0.5058, allocations: 0 / 0.5415 GB, free: 75.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.001141/0.5069, allocations: 461 kB / 0.542 GB, free: 74.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.507, allocations: 243.3 kB / 0.5422 GB, free: 74.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.5087, allocations: 1.522 MB / 0.5437 GB, free: 73.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.814e-05/0.5088, allocations: 25.7 kB / 0.5437 GB, free: 73.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002927/0.5091, allocations: 448.5 kB / 0.5441 GB, free: 72.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.98e-05/0.5092, allocations: 86.66 kB / 0.5442 GB, free: 72.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.766e-05/0.5092, allocations: 0 / 0.5442 GB, free: 72.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.02e-05/0.5093, allocations: 322 kB / 0.5445 GB, free: 72.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.5094, allocations: 112.5 kB / 0.5446 GB, free: 72.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001812/0.5096, allocations: 194.3 kB / 0.5448 GB, free: 71.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003256/0.5099, allocations: 136.9 kB / 0.545 GB, free: 71.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5099, allocations: 4 kB / 0.545 GB, free: 71.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0009996/0.5109, allocations: 0.5094 MB / 0.5455 GB, free: 71.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.511, allocations: 4 kB / 0.5455 GB, free: 71.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.511, allocations: 0 / 0.5455 GB, free: 71.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006055/0.5116, allocations: 144.7 kB / 0.5456 GB, free: 71.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002904/0.5119, allocations: 67.89 kB / 0.5457 GB, free: 71.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.5136, allocations: 1.803 MB / 0.5474 GB, free: 69.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004231/0.5141, allocations: 43.73 kB / 0.5475 GB, free: 69.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.5141, allocations: 15.98 kB / 0.5475 GB, free: 69.05 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(start = bat.battery.SOC_start ) "Charge as current integration" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001574/0.5143, allocations: 113 kB / 0.5476 GB, free: 68.93 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009108/0.5152, allocations: 469.4 kB / 0.548 GB, free: 68.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.5153, allocations: 94.78 kB / 0.5481 GB, free: 68.37 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001147/0.5165, allocations: 0.529 MB / 0.5486 GB, free: 67.83 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.5165, allocations: 4 kB / 0.5486 GB, free: 67.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.5165, allocations: 4 kB / 0.5487 GB, free: 67.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.788e-06/0.5165, allocations: 3.984 kB / 0.5487 GB, free: 67.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002046/0.5186, allocations: 1.489 MB / 0.5501 GB, free: 66.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.5186, allocations: 0 / 0.5501 GB, free: 66.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/0.5188, allocations: 63.89 kB / 0.5502 GB, free: 66.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005242/0.5194, allocations: 140.7 kB / 0.5503 GB, free: 66.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.5194, allocations: 0 / 0.5503 GB, free: 66.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.521, allocations: 1.815 MB / 0.5521 GB, free: 64.15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.521, allocations: 192 / 0.5521 GB, free: 64.15 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.5222, allocations: 0.7411 MB / 0.5528 GB, free: 63.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002961/0.5225, allocations: 275.8 kB / 0.5531 GB, free: 63.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.5226, allocations: 4 kB / 0.5531 GB, free: 63.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003864/0.523, allocations: 44.02 kB / 0.5531 GB, free: 63.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.922e-05/0.5231, allocations: 31.95 kB / 0.5531 GB, free: 63.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.5231, allocations: 11.94 kB / 0.5532 GB, free: 63.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001298/0.5244, allocations: 1.17 MB / 0.5543 GB, free: 61.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5244, allocations: 4 kB / 0.5543 GB, free: 61.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005905/0.525, allocations: 159.8 kB / 0.5545 GB, free: 61.67 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001772/0.5268, allocations: 1.515 MB / 0.5559 GB, free: 60.17 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007623/0.5276, allocations: 426.1 kB / 0.5563 GB, free: 59.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5276, allocations: 4 kB / 0.5563 GB, free: 59.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004504/0.5281, allocations: 301.5 kB / 0.5566 GB, free: 59.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000522/0.5286, allocations: 74.72 kB / 0.5567 GB, free: 59.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.5315, allocations: 1.709 MB / 0.5584 GB, free: 57.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004831/0.532, allocations: 1.092 MB / 0.5594 GB, free: 56.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000326/0.5324, allocations: 149.1 kB / 0.5596 GB, free: 56.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004287/0.5328, allocations: 323.3 kB / 0.5599 GB, free: 56.02 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5328, allocations: 0 / 0.5599 GB, free: 56.02 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03719/0.57, allocations: 17.48 MB / 0.577 GB, free: 38.55 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001317/0.5702, allocations: 178.7 kB / 0.5771 GB, free: 38.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.364/2.934, allocations: 4 kB / 0.5771 GB, free: 38.35 MB / 362.7 MB (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad_fmu --startTime=0 --stopTime=360000 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1)