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.0008311/0.0008312, allocations: 102.6 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008438/0.0008438, allocations: 180.8 kB / 16.96 MB, free: 6.902 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.287/1.287, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1557/0.1557, allocations: 8.091 MB / 300.2 MB, free: 2.902 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.000333, allocations: 8 kB / 363.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08701/0.08736, allocations: 52.51 MB / 416.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003005/0.0904, allocations: 2.793 MB / 418.9 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.09213, allocations: 1.144 MB / 420.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.09229, allocations: 4 kB / 420.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006912/0.09299, allocations: 423.1 kB / 420.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003924/0.09339, allocations: 251.1 kB / 420.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001523/0.09492, allocations: 0.9305 MB / 421.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004939/0.09543, allocations: 0.4905 MB / 422.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/0.09565, allocations: 128.6 kB / 422.3 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.09584, allocations: 203.3 kB / 422.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003965/0.09624, allocations: 342.9 kB / 422.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.578e-05/0.0963, allocations: 20 kB / 422.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004195/0.09673, allocations: 247.8 kB / 423.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002417/0.09698, allocations: 315.1 kB / 423.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003098/0.09729, allocations: 431.1 kB / 423.8 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1691/0.2664, allocations: 1.252 MB / 425 MB, free: 36.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.2664, allocations: 0 / 425 MB, free: 36.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.047e-06/0.2664, allocations: 1.781 kB / 425 MB, free: 36.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.559e-05/0.2665, allocations: 0 / 425 MB, free: 36.88 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.002991/0.2695, allocations: 1.388 MB / 426.4 MB, free: 36.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.2695, allocations: 13.03 kB / 426.4 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.885e-05/0.2696, allocations: 67.47 kB / 426.5 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.2698, allocations: 109 kB / 426.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.2708, allocations: 0.8752 MB / 427.5 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.041e-05/0.2709, allocations: 80.84 kB / 427.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-05/0.271, allocations: 23.84 kB / 427.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000706/0.2717, allocations: 467 kB / 428 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2717, allocations: 0 / 428 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.906e-05/0.2717, allocations: 13.69 kB / 428.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.2718, allocations: 6.094 kB / 428.1 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005462/0.2723, allocations: 333 kB / 428.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002632/0.2749, allocations: 2.149 MB / 430.5 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009182/0.2759, allocations: 496.9 kB / 431 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004136/0.2763, allocations: 218.1 kB / 431.2 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.2764, allocations: 94.03 kB / 431.3 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.2765, allocations: 37.27 kB / 431.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.913e-06/0.2765, allocations: 4.656 kB / 431.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002184/0.2787, allocations: 0.8425 MB / 432.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.2787, allocations: 240.3 kB / 432.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.2805, allocations: 1.735 MB / 434.2 MB, free: 33.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.568e-05/0.2805, allocations: 36.22 kB / 434.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003387/0.2809, allocations: 432.9 kB / 434.6 MB, free: 33.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.679e-05/0.281, allocations: 99.2 kB / 434.7 MB, free: 33.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.281, allocations: 39.06 kB / 434.8 MB, free: 33.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.352e-05/0.2811, allocations: 321.9 kB / 435.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002968/0.2814, allocations: 165.8 kB / 435.3 MB, free: 33.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.2817, allocations: 251.8 kB / 435.5 MB, free: 33.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003436/0.2851, allocations: 0.979 MB / 436.5 MB, free: 33.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2852, allocations: 0 / 436.5 MB, free: 33.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001384/0.2866, allocations: 0.6271 MB / 437.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.2866, allocations: 6.531 kB / 437.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.2866, allocations: 3.094 kB / 437.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006291/0.2872, allocations: 149.8 kB / 437.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.2875, allocations: 73.52 kB / 437.3 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/0.2894, allocations: 1.882 MB / 439.2 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005158/0.29, allocations: 55.25 kB / 439.3 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/0.29, allocations: 10.34 kB / 439.3 MB, free: 31.87 MB / 350.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.0005377/0.2905, allocations: 410.9 kB / 439.7 MB, free: 31.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.2907, allocations: 92.12 kB / 439.8 MB, free: 31.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.2919, allocations: 0.611 MB / 440.4 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.292, allocations: 3.094 kB / 440.4 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.292, allocations: 0 / 440.4 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.292, allocations: 3.562 kB / 440.4 MB, free: 31.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.2939, allocations: 1.493 MB / 441.9 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2939, allocations: 0 / 441.9 MB, free: 30.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.2942, allocations: 71.88 kB / 442 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005836/0.2948, allocations: 146 kB / 442.1 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.2948, allocations: 10.38 kB / 442.1 MB, free: 30.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001568/0.2964, allocations: 1.864 MB / 444 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2964, allocations: 0 / 444 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001426/0.2978, allocations: 0.8453 MB / 444.8 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002302/0.2981, allocations: 244.5 kB / 445.1 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.699e-05/0.2982, allocations: 13.59 kB / 445.1 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003722/0.2986, allocations: 52.14 kB / 445.1 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.571e-05/0.2987, allocations: 29.56 kB / 445.1 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.2987, allocations: 6.281 kB / 445.2 MB, free: 28.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001237/0.2999, allocations: 1.265 MB / 446.4 MB, free: 27.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2999, allocations: 0 / 446.4 MB, free: 27.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005295/0.3005, allocations: 153.5 kB / 446.6 MB, free: 27.93 MB / 350.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.002106/0.3026, allocations: 1.565 MB / 448.1 MB, free: 26.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001013/0.3036, allocations: 0.53 MB / 448.7 MB, free: 26.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.3036, allocations: 4 kB / 448.7 MB, free: 26.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006013/0.3042, allocations: 353.8 kB / 449 MB, free: 26.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006222/0.3049, allocations: 80.39 kB / 449.1 MB, free: 26.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01494/0.3198, allocations: 10.97 MB / 460.1 MB, free: 21.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000477/0.3203, allocations: 1.077 MB / 461.1 MB, free: 20.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003181/0.3207, allocations: 134.8 kB / 461.3 MB, free: 20.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003531/0.321, allocations: 323.2 kB / 461.6 MB, free: 20.21 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.321, allocations: 2.625 kB / 461.6 MB, free: 20.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03712/0.3581, allocations: 19.25 MB / 480.8 MB, free: 16.74 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/0.3583, allocations: 285.8 kB / 481.1 MB, free: 16.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.064/2.422, allocations: 0 / 481.1 MB, free: 16.36 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)