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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 110 kB / 17.17 MB, free: 5.867 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 195.6 kB / 20.12 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 225.6 MB / 248.5 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05042/0.05042, allocations: 8.224 MB / 311.6 MB, free: 2.176 MB / 238.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 63.91 kB / 434 MB, free: 11.8 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2543, allocations: 54.36 MB / 488.3 MB, free: 27.45 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.00383/0.2581, allocations: 3.166 MB / 491.5 MB, free: 24.97 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.2597, allocations: 1.18 MB / 492.7 MB, free: 24.03 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.2598, allocations: 5.625 kB / 492.7 MB, free: 24.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007271/0.2605, allocations: 443.9 kB / 493.1 MB, free: 23.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003964/0.2609, allocations: 269.6 kB / 493.4 MB, free: 23.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00144/0.2624, allocations: 0.9995 MB / 494.4 MB, free: 22.87 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004945/0.2629, allocations: 0.5094 MB / 494.9 MB, free: 22.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.2631, allocations: 115.9 kB / 495 MB, free: 22.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.2632, allocations: 238.3 kB / 495.2 MB, free: 22.35 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003773/0.2636, allocations: 379.4 kB / 495.6 MB, free: 22.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.053e-05/0.2637, allocations: 53.03 kB / 495.6 MB, free: 22.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004153/0.2641, allocations: 273 kB / 495.9 MB, free: 22.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002383/0.2643, allocations: 351.6 kB / 496.3 MB, free: 21.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002706/0.2646, allocations: 449.7 kB / 496.7 MB, free: 21.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.2657, allocations: 1.333 MB / 498 MB, free: 20.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2657, allocations: 0 / 498 MB, free: 20.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2657, allocations: 1.062 kB / 498 MB, free: 20.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.2657, allocations: 4 kB / 498 MB, free: 20.58 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003111/0.2688, allocations: 1.583 MB / 499.6 MB, free: 19.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.2689, allocations: 13.52 kB / 499.6 MB, free: 19.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.379e-05/0.2689, allocations: 68.94 kB / 499.7 MB, free: 19.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.2691, allocations: 116.4 kB / 499.8 MB, free: 19.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.2703, allocations: 0.8839 MB / 0.489 GB, free: 18.62 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.817e-05/0.2704, allocations: 75.94 kB / 0.489 GB, free: 18.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.43e-05/0.2704, allocations: 30.94 kB / 0.4891 GB, free: 18.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006889/0.2711, allocations: 454.8 kB / 0.4895 GB, free: 18.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.2711, allocations: 0 / 0.4895 GB, free: 18.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.542e-05/0.2712, allocations: 11.41 kB / 0.4895 GB, free: 18.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.2712, allocations: 7.562 kB / 0.4895 GB, free: 18.23 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005547/0.2717, allocations: 315.2 kB / 0.4898 GB, free: 18.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002744/0.2745, allocations: 2.127 MB / 0.4919 GB, free: 16.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008838/0.2754, allocations: 456.2 kB / 0.4923 GB, free: 16.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003777/0.2757, allocations: 197.2 kB / 0.4925 GB, free: 16.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001135/0.2759, allocations: 95.14 kB / 0.4926 GB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.2759, allocations: 37.67 kB / 0.4926 GB, free: 15.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 1.443e-06/0.2759, allocations: 0 / 0.4926 GB, free: 15.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002072/0.2779, allocations: 0.8178 MB / 0.4934 GB, free: 15.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/0.278, allocations: 246.6 kB / 0.4937 GB, free: 15.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/0.2798, allocations: 1.737 MB / 0.4954 GB, free: 14.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.2798, allocations: 32.52 kB / 0.4954 GB, free: 14.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.2801, allocations: 442 kB / 0.4958 GB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.482e-05/0.2802, allocations: 94.36 kB / 0.4959 GB, free: 13.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.2803, allocations: 76.23 kB / 0.496 GB, free: 13.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.379e-05/0.2803, allocations: 316.5 kB / 0.4963 GB, free: 13.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002779/0.2806, allocations: 164 kB / 0.4964 GB, free: 13.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003206/0.2809, allocations: 249.2 kB / 0.4967 GB, free: 13.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003114/0.284, allocations: 0.938 MB / 0.4976 GB, free: 12.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.284, allocations: 5.375 kB / 0.4976 GB, free: 12.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001265/0.2853, allocations: 0.6043 MB / 0.4982 GB, free: 12.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.2853, allocations: 4.812 kB / 0.4982 GB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.2853, allocations: 1.125 kB / 0.4982 GB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005702/0.2859, allocations: 151.4 kB / 0.4983 GB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.2862, allocations: 69.86 kB / 0.4984 GB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.2881, allocations: 2.039 MB / 0.5004 GB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004313/0.2885, allocations: 43.83 kB / 0.5004 GB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.2885, allocations: 19.56 kB / 0.5005 GB, free: 10.32 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.0004932/0.289, allocations: 401.5 kB / 0.5008 GB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001778/0.2892, allocations: 99.91 kB / 0.5009 GB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001264/0.2905, allocations: 0.5782 MB / 0.5015 GB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.2905, allocations: 10.19 kB / 0.5015 GB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.2905, allocations: 1.188 kB / 0.5015 GB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2905, allocations: 3.984 kB / 0.5015 GB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.2928, allocations: 1.462 MB / 0.5029 GB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2928, allocations: 1.375 kB / 0.5029 GB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.293, allocations: 62.2 kB / 0.503 GB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005447/0.2935, allocations: 145.9 kB / 0.5031 GB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.2936, allocations: 10.44 kB / 0.5032 GB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.2952, allocations: 2.019 MB / 0.5051 GB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2952, allocations: 5.188 kB / 0.5051 GB, free: 6.664 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.2965, allocations: 0.824 MB / 0.5059 GB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003754/0.2969, allocations: 252.4 kB / 0.5062 GB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.297, allocations: 8 kB / 0.5062 GB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003493/0.2974, allocations: 35.91 kB / 0.5062 GB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.2974, allocations: 31.95 kB / 0.5062 GB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.2975, allocations: 8 kB / 0.5063 GB, free: 5.508 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001265/0.2987, allocations: 1.264 MB / 0.5075 GB, free: 4.234 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2987, allocations: 0 / 0.5075 GB, free: 4.234 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005344/0.2993, allocations: 159.8 kB / 0.5076 GB, free: 4.078 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.002193/0.3014, allocations: 1.546 MB / 0.5092 GB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009592/0.3024, allocations: 0.4945 MB / 0.5096 GB, free: 2.078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3024, allocations: 0 / 0.5096 GB, free: 2.078 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005289/0.3029, allocations: 323.3 kB / 0.5099 GB, free: 1.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005495/0.3035, allocations: 84.41 kB / 0.51 GB, free: 1.668 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01532/0.3188, allocations: 10.16 MB / 0.5199 GB, free: 7.348 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009035/0.3197, allocations: 1.08 MB / 0.521 GB, free: 6.242 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003441/0.3201, allocations: 141 kB / 0.5211 GB, free: 6.102 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004815/0.3205, allocations: 319.3 kB / 0.5214 GB, free: 5.789 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3205, allocations: 0 / 0.5214 GB, free: 5.789 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0569/0.3774, allocations: 20.92 MB / 0.5419 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.33, allocations: 26.05 kB / 0.5419 GB, free: 0.9492 MB / 398.1 MB " [Timeout remaining time 647] (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 --stepSize=144 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_UsingBatteries_OneBatteryOneLineOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.800703919958323] Failed to read output from testmodel.py, exit status != 0: 13.49007585318759 13.514040108 13.243941222 Calling exit ...