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.001144/0.001144, allocations: 104.8 kB / 16.31 MB, free: 6.391 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.001141/0.001141, allocations: 190.7 kB / 17.24 MB, free: 5.922 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.328/1.328, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0462/0.0462, allocations: 8.101 MB / 299.2 MB, free: 6.73 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 71.89 kB / 361.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1894, allocations: 51.51 MB / 413.4 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003282/0.1927, allocations: 3.124 MB / 416.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.1939, allocations: 1.179 MB / 417.7 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.194, allocations: 8 kB / 417.7 MB, free: 21.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005557/0.1946, allocations: 440.7 kB / 418.1 MB, free: 20.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002956/0.1949, allocations: 270.8 kB / 418.4 MB, free: 20.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001222/0.1961, allocations: 0.9842 MB / 419.3 MB, free: 19.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003377/0.1964, allocations: 0.5022 MB / 419.8 MB, free: 19.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001874/0.1966, allocations: 165.4 kB / 420 MB, free: 18.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.1968, allocations: 235.3 kB / 420.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002913/0.1971, allocations: 363 kB / 420.6 MB, free: 18.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-05/0.1971, allocations: 51.94 kB / 420.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003207/0.1975, allocations: 279.8 kB / 420.9 MB, free: 18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001699/0.1976, allocations: 347.1 kB / 421.3 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002282/0.1979, allocations: 453.3 kB / 421.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007199/0.1986, allocations: 1.309 MB / 423 MB, free: 15.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1986, allocations: 0 / 423 MB, free: 15.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1986, allocations: 0 / 423 MB, free: 15.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.278e-06/0.1986, allocations: 0 / 423 MB, free: 15.9 MB / 302.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.002582/0.2012, allocations: 1.556 MB / 424.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.2013, allocations: 11.89 kB / 424.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.6e-05/0.2013, allocations: 70.72 kB / 424.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.2014, allocations: 103.6 kB / 424.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008159/0.2023, allocations: 0.8796 MB / 425.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.469e-05/0.2023, allocations: 76.53 kB / 425.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.2024, allocations: 36.38 kB / 425.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005928/0.203, allocations: 444.8 kB / 426.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.203, allocations: 4 kB / 426.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.203, allocations: 12 kB / 426.2 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2031, allocations: 8 kB / 426.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004872/0.2036, allocations: 318.1 kB / 426.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.2058, allocations: 2.143 MB / 428.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009131/0.2067, allocations: 483 kB / 429.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000355/0.2071, allocations: 213.2 kB / 429.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.2072, allocations: 89.28 kB / 429.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.2072, allocations: 42.78 kB / 429.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.523e-06/0.2072, allocations: 0 / 429.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001942/0.2092, allocations: 0.8214 MB / 430.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.2093, allocations: 239.3 kB / 430.5 MB, free: 7.977 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.2107, allocations: 1.741 MB / 432.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.2107, allocations: 33.7 kB / 432.3 MB, free: 6.176 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002663/0.211, allocations: 436.8 kB / 432.7 MB, free: 5.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.92e-05/0.211, allocations: 94.59 kB / 432.8 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.698e-05/0.2111, allocations: 73.59 kB / 432.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.548e-05/0.2112, allocations: 314 kB / 433.2 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.2115, allocations: 159.9 kB / 433.3 MB, free: 5.102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.2118, allocations: 246.3 kB / 433.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003207/0.215, allocations: 0.9379 MB / 434.5 MB, free: 3.879 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.215, allocations: 0 / 434.5 MB, free: 3.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001175/0.2162, allocations: 0.6098 MB / 435.1 MB, free: 3.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.2162, allocations: 4 kB / 435.1 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2162, allocations: 4 kB / 435.1 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006135/0.2169, allocations: 152.7 kB / 435.3 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/0.2172, allocations: 67.95 kB / 435.4 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.2191, allocations: 2.042 MB / 437.4 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00037/0.2195, allocations: 43.73 kB / 437.4 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.2195, allocations: 15.98 kB / 437.5 MB, free: 0.7969 MB / 302.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.0003724/0.2199, allocations: 400.8 kB / 437.8 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.22, allocations: 94.78 kB / 437.9 MB, free: 312 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.2214, allocations: 0.5973 MB / 438.5 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.2214, allocations: 11.94 kB / 438.5 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.2214, allocations: 3.984 kB / 438.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.2214, allocations: 0 / 438.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00251/0.2239, allocations: 1.466 MB / 440 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.2239, allocations: 0 / 440 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002667/0.2242, allocations: 67.92 kB / 440.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006154/0.2248, allocations: 144.7 kB / 440.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.634e-05/0.2249, allocations: 8 kB / 440.2 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002248/0.2271, allocations: 2.016 MB / 442.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2271, allocations: 0 / 442.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/0.2291, allocations: 0.8333 MB / 443.1 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003634/0.2295, allocations: 243.8 kB / 443.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.195e-05/0.2296, allocations: 8 kB / 443.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003754/0.2299, allocations: 39.89 kB / 443.4 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.2301, allocations: 27.97 kB / 443.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/0.2301, allocations: 11.98 kB / 443.4 MB, free: 10.58 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001504/0.2316, allocations: 1.26 MB / 444.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2316, allocations: 4 kB / 444.7 MB, free: 9.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000552/0.2322, allocations: 155.8 kB / 444.8 MB, free: 9.156 MB / 318.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.002426/0.2346, allocations: 1.541 MB / 446.4 MB, free: 7.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.2358, allocations: 0.5258 MB / 446.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.2359, allocations: 0 / 446.9 MB, free: 7.121 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006735/0.2365, allocations: 355.1 kB / 447.2 MB, free: 6.762 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005722/0.2371, allocations: 86.59 kB / 447.3 MB, free: 6.676 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01416/0.2513, allocations: 10.71 MB / 458 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000657/0.252, allocations: 1.076 MB / 459.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003034/0.2523, allocations: 133.1 kB / 459.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004067/0.2527, allocations: 323.3 kB / 459.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.2527, allocations: 0 / 459.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.117/0.3697, allocations: 20.46 MB / 480 MB, free: 5.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.1, allocations: 15.94 kB / 480 MB, free: 5.805 MB / 350.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)