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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004353/0.004354, allocations: 93.86 kB / 15.91 MB, free: 6.285 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.001119/0.001119, allocations: 196.4 kB / 16.84 MB, free: 6.199 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.245/1.245, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1446/0.1446, allocations: 8.091 MB / 298.7 MB, free: 2.039 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001103/0.001103, allocations: 55.91 kB / 361.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08172/0.08283, allocations: 51.52 MB / 412.7 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003947/0.08682, allocations: 3.163 MB / 415.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.08854, allocations: 1.16 MB / 417 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.08879, allocations: 4 kB / 417 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007936/0.08961, allocations: 423.1 kB / 417.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004163/0.09004, allocations: 247.1 kB / 417.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.0916, allocations: 0.9577 MB / 418.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005145/0.09212, allocations: 0.4944 MB / 419.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.09234, allocations: 136.6 kB / 419.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002571/0.0926, allocations: 211.3 kB / 419.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003948/0.09301, allocations: 347 kB / 419.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.296e-05/0.09309, allocations: 35.94 kB / 419.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000423/0.09352, allocations: 243.8 kB / 420.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002523/0.09378, allocations: 335 kB / 420.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003326/0.09412, allocations: 417.4 kB / 420.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.09518, allocations: 1.277 MB / 422.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.09519, allocations: 4 kB / 422.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.0952, allocations: 0 / 422.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.09522, allocations: 0 / 422.1 MB, free: 0.6172 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003202/0.09843, allocations: 1.552 MB / 423.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.09847, allocations: 8.031 kB / 423.6 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.674e-05/0.09856, allocations: 66.72 kB / 423.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.09872, allocations: 107.6 kB / 423.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/0.09977, allocations: 0.8719 MB / 424.7 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.226e-05/0.09986, allocations: 80.53 kB / 424.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.721e-05/0.09991, allocations: 32.38 kB / 424.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007193/0.1006, allocations: 452.8 kB / 425.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.1007, allocations: 7.938 kB / 425.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.666e-05/0.1007, allocations: 12 kB / 425.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.1007, allocations: 8 kB / 425.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005673/0.1013, allocations: 314.1 kB / 425.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002987/0.1043, allocations: 2.143 MB / 427.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.1054, allocations: 474.6 kB / 428.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004838/0.1059, allocations: 217.2 kB / 428.4 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001437/0.106, allocations: 85.33 kB / 428.5 MB, free: 9.902 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/0.1061, allocations: 42.8 kB / 428.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.933e-06/0.1061, allocations: 0 / 428.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002252/0.1083, allocations: 0.8207 MB / 429.3 MB, free: 9.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.1084, allocations: 235.3 kB / 429.6 MB, free: 8.719 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/0.1104, allocations: 1.745 MB / 431.3 MB, free: 6.953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.1105, allocations: 33.7 kB / 431.3 MB, free: 6.914 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003484/0.1108, allocations: 432.8 kB / 431.8 MB, free: 6.488 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.226e-05/0.1109, allocations: 102.6 kB / 431.9 MB, free: 6.387 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.111, allocations: 69.36 kB / 431.9 MB, free: 6.312 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1111, allocations: 314 kB / 432.2 MB, free: 6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003108/0.1115, allocations: 159.9 kB / 432.4 MB, free: 5.844 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003913/0.1119, allocations: 242.3 kB / 432.6 MB, free: 5.574 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003526/0.1154, allocations: 0.9417 MB / 433.6 MB, free: 4.621 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1154, allocations: 0 / 433.6 MB, free: 4.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001314/0.1167, allocations: 0.6099 MB / 434.2 MB, free: 4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1168, allocations: 8 kB / 434.2 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.1168, allocations: 0 / 434.2 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006492/0.1174, allocations: 148.7 kB / 434.3 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003053/0.1177, allocations: 71.89 kB / 434.4 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.12, allocations: 1.894 MB / 436.3 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.1204, allocations: 43.72 kB / 436.3 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.1204, allocations: 15.94 kB / 436.4 MB, free: 1.688 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 4 * 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 (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004119/0.1208, allocations: 411.6 kB / 436.8 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.121, allocations: 94.78 kB / 436.8 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001306/0.1223, allocations: 0.5935 MB / 437.4 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.1223, allocations: 0 / 437.4 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1223, allocations: 4 kB / 437.4 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.1223, allocations: 11.86 kB / 437.5 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1254/0.2477, allocations: 1.467 MB / 438.9 MB, free: 56.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2478, allocations: 1.75 kB / 438.9 MB, free: 56.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.248, allocations: 53.97 kB / 439 MB, free: 56.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005927/0.2486, allocations: 150.8 kB / 439.1 MB, free: 56.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.2486, allocations: 3.875 kB / 439.1 MB, free: 56.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.2502, allocations: 1.865 MB / 441 MB, free: 55.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.2502, allocations: 0.625 kB / 441 MB, free: 55.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.2516, allocations: 0.8334 MB / 441.8 MB, free: 54.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/0.2519, allocations: 242.4 kB / 442.1 MB, free: 54.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.689e-05/0.252, allocations: 6.5 kB / 442.1 MB, free: 54.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003433/0.2523, allocations: 31.66 kB / 442.1 MB, free: 54.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.151e-05/0.2524, allocations: 35.31 kB / 442.1 MB, free: 54.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.2524, allocations: 6.375 kB / 442.1 MB, free: 54.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00112/0.2535, allocations: 1.268 MB / 443.4 MB, free: 54.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2536, allocations: 0 / 443.4 MB, free: 54.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004804/0.254, allocations: 151.3 kB / 443.6 MB, free: 54.63 MB / 366.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001962/0.256, allocations: 1.545 MB / 445.1 MB, free: 53.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009324/0.257, allocations: 0.5093 MB / 445.6 MB, free: 53.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.257, allocations: 3.094 kB / 445.6 MB, free: 53.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005493/0.2575, allocations: 348.7 kB / 446 MB, free: 53.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000533/0.2581, allocations: 86.47 kB / 446 MB, free: 53.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/0.2713, allocations: 10.89 MB / 456.9 MB, free: 48.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.2717, allocations: 1.074 MB / 458 MB, free: 47.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002592/0.272, allocations: 135.2 kB / 458.1 MB, free: 47.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003233/0.2723, allocations: 324.6 kB / 458.4 MB, free: 47.16 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2723, allocations: 1.312 kB / 458.5 MB, free: 47.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2242/0.4965, allocations: 19.7 MB / 478.2 MB, free: 45.66 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/0.4967, allocations: 284 kB / 478.4 MB, free: 45.28 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.219/2.716, allocations: 0 / 478.4 MB, free: 45.28 MB / 366.1 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/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)